diff --git a/Mage.Sets/src/mage/cards/c/ChainerNightmareAdept.java b/Mage.Sets/src/mage/cards/c/ChainerNightmareAdept.java index 6d0ebc5af3b..2faa3d47b01 100644 --- a/Mage.Sets/src/mage/cards/c/ChainerNightmareAdept.java +++ b/Mage.Sets/src/mage/cards/c/ChainerNightmareAdept.java @@ -94,7 +94,7 @@ class ChainerNightmareAdeptContinuousEffect extends AsThoughEffectImpl { @Override public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) { - throw new IllegalArgumentException("ERROR, can't call applies method on empty affectedAbility"); + throw new IllegalArgumentException("Wrong code usage: can't call applies method on empty affectedAbility"); } @Override public boolean applies(UUID objectId, Ability affectedAbility, Ability source, Game game, UUID playerId) { diff --git a/Mage.Sets/src/mage/cards/d/DanithaNewBenaliasLight.java b/Mage.Sets/src/mage/cards/d/DanithaNewBenaliasLight.java index 7d0b3d8402c..d4a5dcbe406 100644 --- a/Mage.Sets/src/mage/cards/d/DanithaNewBenaliasLight.java +++ b/Mage.Sets/src/mage/cards/d/DanithaNewBenaliasLight.java @@ -97,7 +97,7 @@ class DanithaNewBenaliasLightCastFromGraveyardEffect extends AsThoughEffectImpl } @Override public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) { - throw new IllegalArgumentException("ERROR, can't call applies method on empty affectedAbility"); + throw new IllegalArgumentException("Wrong code usage: can't call applies method on empty affectedAbility"); } } diff --git a/Mage/src/main/java/mage/abilities/effects/ContinuousEffects.java b/Mage/src/main/java/mage/abilities/effects/ContinuousEffects.java index d6dc55e0c41..143883ddd19 100644 --- a/Mage/src/main/java/mage/abilities/effects/ContinuousEffects.java +++ b/Mage/src/main/java/mage/abilities/effects/ContinuousEffects.java @@ -512,14 +512,14 @@ public class ContinuousEffects implements Serializable { // usage check: effect must apply for specific ability only, not to full object (example: PLAY_FROM_NOT_OWN_HAND_ZONE) if (type.needAffectedAbility() && affectedAbility == null) { - throw new IllegalArgumentException("ERROR, you can't call asThough check to whole object, call it with affected ability instead: " + type); + throw new IllegalArgumentException("Wrong code usage: you can't call asThough check to whole object, call it with affected ability instead: " + type); } // usage check: effect must apply to full object, not specific ability (example: ATTACK_AS_HASTE) // P.S. In theory a same AsThough effect can be applied to object or to ability, so if you really, really // need it then disable that check or add extra param to AsThoughEffectType like needAffectedAbilityOrFullObject if (!type.needAffectedAbility() && affectedAbility != null) { - throw new IllegalArgumentException("ERROR, you can't call AsThough check to affected ability, call it with empty affected ability instead: " + type); + throw new IllegalArgumentException("Wrong code usage: you can't call AsThough check to affected ability, call it with empty affected ability instead: " + type); } List asThoughEffectsList = getApplicableAsThoughEffects(type, game); diff --git a/Mage/src/main/java/mage/abilities/effects/common/asthought/PlayFromNotOwnHandZoneAllEffect.java b/Mage/src/main/java/mage/abilities/effects/common/asthought/PlayFromNotOwnHandZoneAllEffect.java index e29fd3d9824..6fc05bdc4cd 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/asthought/PlayFromNotOwnHandZoneAllEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/asthought/PlayFromNotOwnHandZoneAllEffect.java @@ -52,7 +52,7 @@ public class PlayFromNotOwnHandZoneAllEffect extends AsThoughEffectImpl { @Override public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) { - throw new IllegalArgumentException("ERROR, can't call applies method on empty affectedAbility"); + throw new IllegalArgumentException("Wrong code usage: can't call applies method on empty affectedAbility"); } @Override public boolean applies(UUID objectId, Ability affectedAbility, Ability source, Game game, UUID playerId) { diff --git a/Mage/src/main/java/mage/abilities/effects/common/asthought/PlayFromNotOwnHandZoneTargetEffect.java b/Mage/src/main/java/mage/abilities/effects/common/asthought/PlayFromNotOwnHandZoneTargetEffect.java index 8b429005615..81b044ef6aa 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/asthought/PlayFromNotOwnHandZoneTargetEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/asthought/PlayFromNotOwnHandZoneTargetEffect.java @@ -87,7 +87,7 @@ public class PlayFromNotOwnHandZoneTargetEffect extends AsThoughEffectImpl { // PLAY_FROM_NOT_OWN_HAND_ZONE must applies to affectedAbility only // If you see it then parent conditional effect must override both applies methods to support different // AsThough effect types in one conditional effect - throw new IllegalArgumentException("ERROR, can't call applies method on empty affectedAbility"); + throw new IllegalArgumentException("Wrong code usage: can't call applies method on empty affectedAbility"); } // invalid targets diff --git a/Mage/src/main/java/mage/abilities/effects/common/continuous/PlayTheTopCardEffect.java b/Mage/src/main/java/mage/abilities/effects/common/continuous/PlayTheTopCardEffect.java index 79f4f7ce71a..ad03af47f5d 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/continuous/PlayTheTopCardEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/continuous/PlayTheTopCardEffect.java @@ -88,7 +88,7 @@ public class PlayTheTopCardEffect extends AsThoughEffectImpl { @Override public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) { - throw new IllegalArgumentException("ERROR, can't call applies method on empty affectedAbility"); + throw new IllegalArgumentException("Wrong code usage: can't call applies method on empty affectedAbility"); } @Override public boolean applies(UUID objectId, Ability affectedAbility, Ability source, Game game, UUID playerId) { diff --git a/Mage/src/main/java/mage/abilities/effects/common/ruleModifying/PlayLandsFromGraveyardControllerEffect.java b/Mage/src/main/java/mage/abilities/effects/common/ruleModifying/PlayLandsFromGraveyardControllerEffect.java index 096491d8771..873c3272488 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/ruleModifying/PlayLandsFromGraveyardControllerEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/ruleModifying/PlayLandsFromGraveyardControllerEffect.java @@ -49,7 +49,7 @@ public class PlayLandsFromGraveyardControllerEffect extends AsThoughEffectImpl { @Override public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) { - throw new IllegalArgumentException("ERROR, can't call applies method on empty affectedAbility"); + throw new IllegalArgumentException("Wrong code usage: can't call applies method on empty affectedAbility"); } @Override public boolean applies(UUID objectId, Ability affectedAbility, Ability source, Game game, UUID playerId) { diff --git a/Mage/src/main/java/mage/game/permanent/PermanentCard.java b/Mage/src/main/java/mage/game/permanent/PermanentCard.java index 24b32f961d8..b6c3642b0ea 100644 --- a/Mage/src/main/java/mage/game/permanent/PermanentCard.java +++ b/Mage/src/main/java/mage/game/permanent/PermanentCard.java @@ -50,7 +50,7 @@ public class PermanentCard extends PermanentImpl { } } if (!goodForBattlefield) { - throw new IllegalArgumentException("ERROR, can't create permanent card from split or mdf: " + card.getName()); + throw new IllegalArgumentException("Wrong code usage: can't create permanent card from split or mdf: " + card.getName()); } this.card = card;