mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Fix Banding NPE
This commit is contained in:
@@ -241,7 +241,7 @@ public class CombatUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Quasi-goad logic for "Kardur, Doomscourge" etc. that isn't goad but behaves the same
|
// Quasi-goad logic for "Kardur, Doomscourge" etc. that isn't goad but behaves the same
|
||||||
if (defender.hasKeyword("Creatures your opponents control attack a player other than you if able.")) {
|
if (defender != null && defender.hasKeyword("Creatures your opponents control attack a player other than you if able.")) {
|
||||||
for (GameEntity ge : getAllPossibleDefenders(attacker.getController())) {
|
for (GameEntity ge : getAllPossibleDefenders(attacker.getController())) {
|
||||||
if (!defender.equals(ge) && ge instanceof Player) {
|
if (!defender.equals(ge) && ge instanceof Player) {
|
||||||
if (canAttack(attacker, ge)) {
|
if (canAttack(attacker, ge)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user