Merge pull request #3118 from pivotal-ryan-mcleod/trespassers_curse_trigger_fix

Fix Trespasser's Curse triggering on all permanents instead of just creatures (AKH)
This commit is contained in:
Derek M 2017-04-16 18:09:34 -04:00 committed by GitHub
commit 984eb560b0

View file

@ -100,7 +100,8 @@ class TrespassersCurseTriggeredAbility extends TriggeredAbilityImpl {
Permanent enchantment = game.getPermanent(this.getSourceId());
if (enchantment != 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()) {
effect.setTargetPointer(new FixedTarget(enchantment.getAttachedTo()));
}