Totem Armor

This commit is contained in:
Anthony Calosa
2017-03-14 03:40:29 +08:00
parent bef1f6d8b8
commit 0778b13e2b
11 changed files with 389 additions and 94 deletions
+11 -1
View File
@@ -2855,7 +2855,13 @@ int AABuryCard::resolve()
MTGCardInstance * _target = (MTGCardInstance *) target;
if (_target)
{
_target->bury();
//Bury (Obsolete)
//A term that meant “put [a permanent] into its owners graveyard.”
//In general, cards that were printed with the term “bury” have received errata
//in the Oracle card reference to read, “Destroy [a permanent]. It cant be regenerated,”
//or “Sacrifice [a permanent].”
//_target->bury();
_target->destroyNoRegen();//so totem armor will take effect on wrath effects since totem armor is not regeneration..
while(_target->next)
_target = _target->next;
if(andAbility)
@@ -3221,6 +3227,10 @@ int AANewTarget::resolve()
while (_target->next)
_target = _target->next;
}
if(_target->hasSubtype(Subtypes::TYPE_AURA))
{
_target->target = source;
}
if(_target->hasSubtype(Subtypes::TYPE_EQUIPMENT))
{
for (size_t i = 1; i < game->mLayers->actionLayer()->mObjects.size(); i++)