Moved "reset damage on creatures at cleanup phase" outside of the engine and made it an ability. This is mostly because I need this for the mod I'm working on, but I hope it can be used by others
This commit is contained in:
@@ -468,11 +468,10 @@ int MTGCardInstance::initAttackersDefensers()
|
||||
return 1;
|
||||
}
|
||||
|
||||
//Function to call to remove all damages, etc to a card (generally at the end of the turn)
|
||||
//Function to cleanup flags on a card (generally at the end of the turn)
|
||||
int MTGCardInstance::cleanup()
|
||||
{
|
||||
initAttackersDefensers();
|
||||
life = toughness;
|
||||
GameObserver * game = GameObserver::GetInstance();
|
||||
if (!game || game->currentPlayer == controller())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user