- Added Arguel's Blood Fast / Temple of Aclazotz, Chart a Course, Commune with Dinosaurs, Fell Flagship, Grazing Whiptail, Growing Rites of Itlimoc / Itlimoc, Cradle of the Sun, Otepec Huntmaster, Skittering Heartstopper, Thundering Spineback.

- Temporary implementation of an Explores trigger linked to AB Dig (until AB Explore is implemented).
This commit is contained in:
Agetian
2017-09-08 04:41:35 +00:00
parent 3e4b5830be
commit 3ae7fe7f04
14 changed files with 124 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
package forge.game.ability.effects;
import com.google.common.collect.Maps;
import forge.card.CardStateName;
import forge.game.Game;
import forge.game.ability.AbilityUtils;
@@ -13,16 +14,13 @@ import forge.game.player.Player;
import forge.game.player.PlayerView;
import forge.game.spellability.SpellAbility;
import forge.game.spellability.TargetRestrictions;
import forge.game.trigger.TriggerType;
import forge.game.zone.PlayerZone;
import forge.game.zone.ZoneType;
import forge.util.Lang;
import forge.util.TextUtil;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.*;
public class DigEffect extends SpellAbilityEffect {
@@ -168,6 +166,14 @@ public class DigEffect extends SpellAbilityEffect {
}
}
if (noMove && sa.hasParam("Explore")) {
// TODO: until Explore is written as a separate effect, this param can be used to emulate "X Explores"
// by firing the relevant trigger. Once Explores is a separate effect, this code can be removed.
final Map<String, Object> runParams = Maps.newHashMap();
runParams.put("Explorer", sa.getHostCard());
game.getTriggerHandler().runTrigger(TriggerType.Explores, runParams, false);
}
if (!noMove) {
CardCollection movedCards;
CardCollection andOrCards;