Added Q06 set, improved Android downloader, fixed bug for indestructible creatures that have to go different zone after death (e.g. if they have exiledeath ability), fixed a bug when indestructible creatures have toughness = 0 (e.g. "March of the Machines" with manacost = 0 artifacts).

This commit is contained in:
Vittorio Alfieri
2021-10-20 14:52:15 +02:00
parent fcb073ccd6
commit 3130049c63
8 changed files with 80 additions and 21 deletions

View File

@@ -183,7 +183,7 @@ int Damage::resolve()
_target->counters->addCounter(-1, -1);
}
if(_target->toughness <= 0 && _target->has(Constants::INDESTRUCTIBLE))
_target->controller()->game->putInGraveyard(_target);
_target->toGrave(true); // The indestructible creatures can have different destination zone after death.
}
else if (target->type_as_damageable == Damageable::DAMAGEABLE_PLAYER && (source->has(Constants::INFECT)||source->has(Constants::POISONDAMAGER)))
{