fix incorrect runParams keys

This commit is contained in:
Ryan1729
2019-09-23 08:24:31 -06:00
parent 308c75e60e
commit 16074a65b0
3 changed files with 5 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ public class TriggerChangesZone extends Trigger {
} }
if (hasParam("ValidCause")) { if (hasParam("ValidCause")) {
if (!runParams.containsKey("Cause") ) { if (!runParams.containsKey(AbilityKey.Cause) ) {
return false; return false;
} }
SpellAbility cause = (SpellAbility) runParams.get(AbilityKey.Cause); SpellAbility cause = (SpellAbility) runParams.get(AbilityKey.Cause);

View File

@@ -64,7 +64,7 @@ public class TriggerCounterAddedOnce extends Trigger {
} }
if (hasParam("ValidCard")) { if (hasParam("ValidCard")) {
if (!runParams.containsKey("Card")) if (!runParams.containsKey(AbilityKey.Card))
return false; return false;
final Card addedTo = (Card) runParams.get(AbilityKey.Card); final Card addedTo = (Card) runParams.get(AbilityKey.Card);
@@ -75,7 +75,7 @@ public class TriggerCounterAddedOnce extends Trigger {
} }
if (hasParam("ValidPlayer")) { if (hasParam("ValidPlayer")) {
if (!runParams.containsKey("Player")) if (!runParams.containsKey(AbilityKey.Player))
return false; return false;
final Player addedTo = (Player) runParams.get(AbilityKey.Player); final Player addedTo = (Player) runParams.get(AbilityKey.Player);
@@ -86,7 +86,7 @@ public class TriggerCounterAddedOnce extends Trigger {
} }
if (hasParam("ValidSource")) { if (hasParam("ValidSource")) {
if (!runParams.containsKey("Source")) if (!runParams.containsKey(AbilityKey.Source))
return false; return false;
final Player source = (Player) runParams.get(AbilityKey.Source); final Player source = (Player) runParams.get(AbilityKey.Source);

View File

@@ -79,7 +79,7 @@ public class TriggerExiled extends Trigger {
} }
if (hasParam("ValidCause")) { if (hasParam("ValidCause")) {
if (!runParams.containsKey("Cause") ) { if (!runParams.containsKey(AbilityKey.Cause) ) {
return false; return false;
} }
SpellAbility cause = (SpellAbility) runParams.get(AbilityKey.Cause); SpellAbility cause = (SpellAbility) runParams.get(AbilityKey.Cause);