mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
fix incorrect runParams keys
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user