mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-11-09 14:12:09 +01:00
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:
parent
e24343365c
commit
055dab6d60
@ -62,15 +62,17 @@ public class ExploreEffect extends SpellAbilityEffect {
|
||||
}
|
||||
}
|
||||
if (!revealedLand) {
|
||||
// TODO need to check if card didn't blick while that was happening,
|
||||
// probably need strictlySelf in the Defined
|
||||
if (game.getZoneOf(c).is(ZoneType.Battlefield)) {
|
||||
// currently the timestamp check only works for if the card itself explore,
|
||||
// if something else can make it explore that need to be updated
|
||||
if (game.getZoneOf(c).is(ZoneType.Battlefield) && card.getTimestamp() == c.getTimestamp()) {
|
||||
c.addCounter(CounterType.P1P1, 1, card, true);
|
||||
final Map<String, Object> runParams = Maps.newHashMap();
|
||||
runParams.put("Card", c);
|
||||
game.getTriggerHandler().runTrigger(TriggerType.Explores, runParams, false);
|
||||
}
|
||||
}
|
||||
|
||||
// a creature does explore even if it isn't on the battlefield anymore
|
||||
final Map<String, Object> runParams = Maps.newHashMap();
|
||||
runParams.put("Card", c);
|
||||
game.getTriggerHandler().runTrigger(TriggerType.Explores, runParams, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user