[C17] Added test for Curse of Opulence and EnchantedPlayerAttackedTriggeredAbility, and fixed range of influence bug.

This commit is contained in:
Alex Vasile 2022-10-13 15:52:02 -03:00
parent 1ce272ec2d
commit b0df785653
2 changed files with 121 additions and 1 deletions

View file

@ -31,7 +31,6 @@ public class EnchantedPlayerAttackedTriggeredAbility extends TriggeredAbilityImp
public boolean checkTrigger(GameEvent event, Game game) {
Permanent enchantment = game.getPermanentOrLKIBattlefield(getSourceId());
return enchantment != null
&& game.getState().getPlayersInRange(getControllerId(), game).contains(game.getCombat().getAttackingPlayerId())
&& game.getCombat().getPlayerDefenders(game, false).contains(enchantment.getAttachedTo());
}