Skip to content

Commit

Permalink
Standard Bearer - fixed that cards with TargetsHaveToTargetPermanentI…
Browse files Browse the repository at this point in the history
…fAbleEffect can brake multi-modes cards (can be related to #9769)
  • Loading branch information
JayDi85 committed Oct 2, 2023
1 parent d9ca387 commit 9d1ad25
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ public boolean applies(GameEvent event, Ability source, Game game) {
if (!stackAbility.isControlledBy(targetingPlayer.getId())) {
return false;
}
Ability ability = (Ability) getValue("targetAbility");
if (ability != null) {
Ability targetAbility = (Ability) getValue("targetAbility");
if (targetAbility != null) {
// Get all the allowed permanents on the battlefield in range of the abilities controller
Ability ability = targetAbility.copy(); // must use a copy for diff modes checking
List<Permanent> allowedPermanents = game.getBattlefield().getActivePermanents(filter, event.getPlayerId(), source, game);
if (!allowedPermanents.isEmpty()) {
boolean canTargetAllowedPermanent = false;
Expand Down

0 comments on commit 9d1ad25

Please sign in to comment.