forked from External/mage
Corrected opponent check
Now checking game.getOpponents()
This commit is contained in:
parent
20646da985
commit
805e3f8e6b
1 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ class GhostlyPilfererTriggeredAbility extends TriggeredAbilityImpl {
|
|||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
Spell spell = game.getStack().getSpell(event.getTargetId());
|
||||
return (this.controllerId != spell.getControllerId()
|
||||
return (game.getOpponents(getControllerId()).contains(spell.getControllerId())
|
||||
&& event.getZone() != Zone.HAND);
|
||||
}
|
||||
|
||||
|
|
@ -93,4 +93,4 @@ class GhostlyPilfererTriggeredAbility extends TriggeredAbilityImpl {
|
|||
public String getRule() {
|
||||
return "Whenever an opponent casts a spell from anywhere other than their hand, draw a card.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue