From 639aba45920fdd3c25419bc93a0c3303f12aaecf Mon Sep 17 00:00:00 2001 From: Steven Knipe Date: Sun, 1 Oct 2023 22:50:22 -0700 Subject: [PATCH] CastAsThoughItHadFlashAllEffect applies function variant throws error instead of returning false --- .../common/continuous/CastAsThoughItHadFlashAllEffect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/continuous/CastAsThoughItHadFlashAllEffect.java b/Mage/src/main/java/mage/abilities/effects/common/continuous/CastAsThoughItHadFlashAllEffect.java index 62b29ff8e8b..6ee38dd5851 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/continuous/CastAsThoughItHadFlashAllEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/continuous/CastAsThoughItHadFlashAllEffect.java @@ -60,7 +60,7 @@ public class CastAsThoughItHadFlashAllEffect extends AsThoughEffectImpl { } @Override public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) { - return false; + throw new IllegalArgumentException("Wrong code usage: can't call applies method on empty affectedAbility"); } private String setText() {