CastAsThoughItHadFlashAllEffect applies function variant throws error instead of returning false

This commit is contained in:
Steven Knipe 2023-10-01 22:50:22 -07:00
parent 47fc192a36
commit 639aba4592

View file

@ -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() {