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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user