mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-11-14 04:17:19 +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) {
|
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);
|
||||||
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