mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
- Fixed NPE caused by High Priest of Penance.
This commit is contained in:
@@ -233,7 +233,8 @@ public class AiBlockController {
|
||||
}
|
||||
|
||||
if (mode == TriggerType.DamageDone) {
|
||||
if (TriggerReplacementBase.matchesValid(attacker, trigParams.get("ValidSource").split(","), attacker)
|
||||
if ((!trigParams.containsKey("ValidSource")
|
||||
|| TriggerReplacementBase.matchesValid(attacker, trigParams.get("ValidSource").split(","), attacker))
|
||||
&& attacker.getNetCombatDamage() > 0
|
||||
&& (!trigParams.containsKey("ValidTarget")
|
||||
|| TriggerReplacementBase.matchesValid(combat.getDefenderByAttacker(attacker), trigParams.get("ValidTarget").split(","), attacker))) {
|
||||
|
||||
Reference in New Issue
Block a user