[KHM] fixed Old-Growth Troll - correct addAbility usage for permanents;

This commit is contained in:
Oleg Agafonov 2021-02-02 01:40:12 +04:00
parent 03979f77bb
commit e941ce108b
3 changed files with 3 additions and 3 deletions

View file

@ -519,7 +519,7 @@ public class ContinuousEffects implements Serializable {
// 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 empty affected ability instead: " + type);
throw new IllegalArgumentException("ERROR, you can't call AsThough check to affected ability, call it with empty affected ability instead: " + type);
}
List<AsThoughEffect> asThoughEffectsList = getApplicableAsThoughEffects(type, game);