fixed a reported bug where a player would respond to a targeted ability by phasing out a creature and the targeted ability would still resolve on the phased card.

This commit is contained in:
omegablast2002@yahoo.com
2011-03-22 02:15:10 +00:00
parent a866adb8ea
commit 43711786fd
+5
View File
@@ -4151,6 +4151,11 @@ int TargetAbility::resolve()
}
delete (diff);
ability->target = t;
//do nothing if the target controller responded by phasing out the target.
MTGCardInstance * targeted = (MTGCardInstance*)t;
if (targeted->typeAsTarget() == TARGET_CARD && targeted->isTempPhased)
return 0;
if (ability->oneShot)
return ability->resolve();
MTGAbility * a = ability->clone();