- Fixed Trespasser's Curse.

This commit is contained in:
Jeff 2017-04-17 09:16:18 -05:00
parent 2c6be695ba
commit 6156ebf5b6

View file

@ -97,11 +97,11 @@ class TrespassersCurseTriggeredAbility extends TriggeredAbilityImpl {
@Override @Override
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
Permanent enchantment = game.getPermanent(this.getSourceId()); Permanent enchantment = game.getPermanent(this.sourceId);
if (enchantment != null if (enchantment != null
&& enchantment.getAttachedTo() != null && enchantment.getAttachedTo() != null
&& game.getControllerId(event.getSourceId()).equals(enchantment.getAttachedTo()) && game.getControllerId(event.getTargetId()).equals(enchantment.getAttachedTo())
&& game.getPermanent(this.getSourceId()).isCreature()) { && game.getPermanent(event.getTargetId()).isCreature()) {
for (Effect effect : this.getEffects()) { for (Effect effect : this.getEffects()) {
effect.setTargetPointer(new FixedTarget(enchantment.getAttachedTo())); effect.setTargetPointer(new FixedTarget(enchantment.getAttachedTo()));
} }