mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
ONE: Elesh Norn, Mother of Machines and support (#2179)
* elesh_norn_mother_of_machines.txt * StaticAbilityDisableTriggers.java
This commit is contained in:
@@ -54,6 +54,7 @@ import forge.game.replacement.ReplacementLayer;
|
||||
import forge.game.replacement.ReplacementType;
|
||||
import forge.game.spellability.*;
|
||||
import forge.game.staticability.StaticAbility;
|
||||
import forge.game.staticability.StaticAbilityDisableTriggers;
|
||||
import forge.game.staticability.StaticAbilityMustTarget;
|
||||
import forge.game.trigger.Trigger;
|
||||
import forge.game.trigger.TriggerType;
|
||||
@@ -262,11 +263,6 @@ public class AiController {
|
||||
}
|
||||
}
|
||||
|
||||
if (card.isCreature()
|
||||
&& game.getStaticEffects().getGlobalRuleChange(GlobalRuleChange.noCreatureETBTriggers)) {
|
||||
return api == null;
|
||||
}
|
||||
|
||||
boolean rightapi = false;
|
||||
|
||||
// Trigger play improvements
|
||||
@@ -281,6 +277,12 @@ public class AiController {
|
||||
continue;
|
||||
}
|
||||
|
||||
final Map<AbilityKey, Object> runParams = AbilityKey.mapFromCard(tr.getHostCard());
|
||||
runParams.put(AbilityKey.Destination, ZoneType.Battlefield.name());
|
||||
if (StaticAbilityDisableTriggers.disabled(game, tr, runParams)) {
|
||||
return api == null;
|
||||
}
|
||||
|
||||
if (tr.hasParam("ValidCard")) {
|
||||
String validCard = tr.getParam("ValidCard");
|
||||
if (!validCard.contains("Self")) {
|
||||
|
||||
Reference in New Issue
Block a user