mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-12-21 07:16:52 +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,16 +62,18 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
// 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