mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-11 16:26:22 +00:00
support LKI of cause (#3451)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
This commit is contained in:
@@ -70,7 +70,11 @@ public class StaticAbilityDisableTriggers {
|
||||
|
||||
if (trigMode.equals(TriggerType.ChangesZone)) {
|
||||
// Cause of the trigger – the card changing zones
|
||||
if (!stAb.matchesValidParam("ValidCause", runParams.get(AbilityKey.Card))) {
|
||||
Card moved = (Card) runParams.get(AbilityKey.Card);
|
||||
if ("Battlefield".equals(regtrig.getParam("Origin"))) {
|
||||
moved = (Card) runParams.get(AbilityKey.CardLKI);
|
||||
}
|
||||
if (!stAb.matchesValidParam("ValidCause", moved)) {
|
||||
return false;
|
||||
}
|
||||
if (!stAb.matchesValidParam("Destination", runParams.get(AbilityKey.Destination))) {
|
||||
|
||||
@@ -89,7 +89,11 @@ public class StaticAbilityPanharmonicon {
|
||||
|
||||
if (trigMode.equals(TriggerType.ChangesZone)) {
|
||||
// Cause of the trigger – the card changing zones
|
||||
if (!stAb.matchesValidParam("ValidCause", runParams.get(AbilityKey.Card))) {
|
||||
Card moved = (Card) runParams.get(AbilityKey.Card);
|
||||
if ("Battlefield".equals(trigger.getParam("Origin"))) {
|
||||
moved = (Card) runParams.get(AbilityKey.CardLKI);
|
||||
}
|
||||
if (!stAb.matchesValidParam("ValidCause", moved)) {
|
||||
return false;
|
||||
}
|
||||
if (!stAb.matchesValidParam("Origin", runParams.get(AbilityKey.Origin))) {
|
||||
|
||||
Reference in New Issue
Block a user