Fix Trespasser's Curse triggering on all permanents

This commit is contained in:
Ryan McLeod 2017-04-16 18:03:01 -04:00
parent bf556c1a77
commit 50c25ea38e

View file

@ -100,7 +100,8 @@ class TrespassersCurseTriggeredAbility extends TriggeredAbilityImpl {
Permanent enchantment = game.getPermanent(this.getSourceId()); Permanent enchantment = game.getPermanent(this.getSourceId());
if (enchantment != null if (enchantment != null
&& enchantment.getAttachedTo() != null && enchantment.getAttachedTo() != null
&& game.getControllerId(event.getSourceId()).equals(enchantment.getAttachedTo())) { && game.getControllerId(event.getSourceId()).equals(enchantment.getAttachedTo())
&& game.getPermanent(this.getSourceId()).isCreature()) {
for (Effect effect : this.getEffects()) { for (Effect effect : this.getEffects()) {
effect.setTargetPointer(new FixedTarget(enchantment.getAttachedTo())); effect.setTargetPointer(new FixedTarget(enchantment.getAttachedTo()));
} }