mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fix Trespasser's Curse triggering on all permanents
This commit is contained in:
parent
bf556c1a77
commit
50c25ea38e
1 changed files with 2 additions and 1 deletions
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue