forked from External/mage
Fix "becomes the target of" logic to check all modes (#12452)
* check all targets from all modes for getTargetingStackObject
* update logic related to a97dec3
This commit is contained in:
parent
e209ce1c97
commit
fc21365847
3 changed files with 94 additions and 6 deletions
|
|
@ -1054,10 +1054,8 @@ public final class CardUtil {
|
|||
if (stackAbility == null || !stackAbility.getSourceId().equals(event.getSourceId())) {
|
||||
continue;
|
||||
}
|
||||
for (Target target : stackAbility.getTargets()) {
|
||||
if (target.getTargets().contains(event.getTargetId())) {
|
||||
return stackObject;
|
||||
}
|
||||
if (CardUtil.getAllSelectedTargets(stackAbility, game).contains(event.getTargetId())) {
|
||||
return stackObject;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue