- Fixed Hapatra, Vizier of Poisons. Bug #3157

This commit is contained in:
Jeff 2017-04-18 12:08:15 -05:00
parent e2bd06eb4a
commit 9e1acd5daa

View file

@ -100,12 +100,14 @@ class HapatraVizierOfPoisonsTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getData().equals(CounterType.M1M1.getName())) {
if (event.getData().equals(CounterType.M1M1.getName())
&& controllerId.equals(game.getControllerId(event.getSourceId()))) {
Permanent permanent = game.getPermanentOrLKIBattlefield(event.getTargetId());
if (permanent == null) {
permanent = game.getPermanentEntering(event.getTargetId());
}
return (permanent != null && permanent.isCreature());
return (permanent != null
&& permanent.isCreature());
}
return false;