StaticAbilityPanharmonicon remove unneeded checks

This commit is contained in:
Northmoc
2022-08-10 14:53:29 -04:00
parent 39db05f97a
commit c26d51e2fe

View File

@@ -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