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);
|
delete (diff);
|
||||||
ability->target = t;
|
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)
|
if (ability->oneShot)
|
||||||
return ability->resolve();
|
return ability->resolve();
|
||||||
MTGAbility * a = ability->clone();
|
MTGAbility * a = ability->clone();
|
||||||
|
|||||||
Reference in New Issue
Block a user