forked from External/mage
Fix Ward batch event bug
Fixes #13498 getTargetingStackObject wasn't processing all stackObjects in a batch event added tests for some related cards that also use the method - Agrus Kos, Eternal Soldier - Pawpatch Recruit - Ward Ability
This commit is contained in:
parent
41d3464b5c
commit
8e1805c874
12 changed files with 141 additions and 10 deletions
|
|
@ -54,7 +54,7 @@ public class BecomesTargetAttachedTriggeredAbility extends TriggeredAbilityImpl
|
|||
if (enchantment == null || enchantment.getAttachedTo() == null || !event.getTargetId().equals(enchantment.getAttachedTo())) {
|
||||
return false;
|
||||
}
|
||||
StackObject targetingObject = CardUtil.getTargetingStackObject(event, game);
|
||||
StackObject targetingObject = CardUtil.getTargetingStackObject(this.getId().toString(), event, game);
|
||||
if (targetingObject == null || !filter.match(targetingObject, getControllerId(), this, game)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue