mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
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:
commit
984eb560b0
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