ExploreEffect: fixed trigger and counter part

git-svn-id: http://svn.slightlymagic.net/forge/trunk@35773 269b9781-a132-4a9b-9d4e-f004f1b56b58
This commit is contained in:
Hanmac 2017-09-26 05:22:00 +00:00
parent e24343365c
commit 055dab6d60

View File

@ -62,16 +62,18 @@ public class ExploreEffect extends SpellAbilityEffect {
} }
} }
if (!revealedLand) { if (!revealedLand) {
// TODO need to check if card didn't blick while that was happening, // currently the timestamp check only works for if the card itself explore,
// probably need strictlySelf in the Defined // if something else can make it explore that need to be updated
if (game.getZoneOf(c).is(ZoneType.Battlefield)) { if (game.getZoneOf(c).is(ZoneType.Battlefield) && card.getTimestamp() == c.getTimestamp()) {
c.addCounter(CounterType.P1P1, 1, card, true); c.addCounter(CounterType.P1P1, 1, card, true);
}
}
// a creature does explore even if it isn't on the battlefield anymore
final Map<String, Object> runParams = Maps.newHashMap(); final Map<String, Object> runParams = Maps.newHashMap();
runParams.put("Card", c); runParams.put("Card", c);
game.getTriggerHandler().runTrigger(TriggerType.Explores, runParams, false); game.getTriggerHandler().runTrigger(TriggerType.Explores, runParams, false);
} }
} }
}
}
} }