Fixed Vengeful Pharaoh

This commit is contained in:
North 2011-08-23 13:53:06 +03:00
parent 082554b2c3
commit 074adb5d99

View file

@ -97,9 +97,8 @@ class VengefulPharaohTriggeredAbility extends TriggeredAbilityImpl<VengefulPhara
return true;
}
if (event.getType() == EventType.DAMAGED_PLANESWALKER) {
Card card = game.getLastKnownInformation(event.getTargetId(), Zone.BATTLEFIELD);
if (card != null && card instanceof Permanent
&& ((Permanent) card).getControllerId().equals(this.getControllerId())) {
Permanent permanent = game.getPermanent(event.getTargetId());
if (permanent != null && permanent.getControllerId().equals(this.getControllerId())) {
return true;
}
}