mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
StaticAbilityPanharmonicon remove unneeded checks
This commit is contained in:
@@ -108,18 +108,14 @@ public class StaticAbilityPanharmonicon {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (trigMode.equals(TriggerType.Attacks)) {
|
} else if (trigMode.equals(TriggerType.Attacks)) {
|
||||||
if (stAb.hasParam("ValidCause")) {
|
|
||||||
if (!stAb.matchesValidParam("ValidCause", runParams.get(AbilityKey.Attacker))) {
|
if (!stAb.matchesValidParam("ValidCause", runParams.get(AbilityKey.Attacker))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else if (trigMode.equals(TriggerType.AttackersDeclared)
|
} else if (trigMode.equals(TriggerType.AttackersDeclared)
|
||||||
|| trigMode.equals(TriggerType.AttackersDeclaredOneTarget)) {
|
|| trigMode.equals(TriggerType.AttackersDeclaredOneTarget)) {
|
||||||
if (stAb.hasParam("ValidCause")) {
|
|
||||||
if (!stAb.matchesValidParam("ValidCause", runParams.get(AbilityKey.Attackers))) {
|
if (!stAb.matchesValidParam("ValidCause", runParams.get(AbilityKey.Attackers))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else if (trigMode.equals(TriggerType.SpellCastOrCopy)
|
} else if (trigMode.equals(TriggerType.SpellCastOrCopy)
|
||||||
|| trigMode.equals(TriggerType.SpellCast) || trigMode.equals(TriggerType.SpellCopy)) {
|
|| trigMode.equals(TriggerType.SpellCast) || trigMode.equals(TriggerType.SpellCopy)) {
|
||||||
// Check if the spell cast and the caster match
|
// Check if the spell cast and the caster match
|
||||||
|
|||||||
Reference in New Issue
Block a user