From 366c836d3a1a7cdb2837cbb529da68d809fcaeaa Mon Sep 17 00:00:00 2001 From: Agetian Date: Tue, 11 Dec 2018 08:38:37 +0300 Subject: [PATCH] - Make the local check for Hollow One work for static abilities only. --- .../src/main/java/forge/game/ability/AbilityUtils.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/forge-game/src/main/java/forge/game/ability/AbilityUtils.java b/forge-game/src/main/java/forge/game/ability/AbilityUtils.java index dd5503e5b79..2eb8da9bacf 100644 --- a/forge-game/src/main/java/forge/game/ability/AbilityUtils.java +++ b/forge-game/src/main/java/forge/game/ability/AbilityUtils.java @@ -472,9 +472,8 @@ public class AbilityUtils { players.remove(game.getPhaseHandler().getPlayerTurn()); val = CardFactoryUtil.playerXCount(players, calcX[1], card); } - else if (hType.startsWith("PropertyYou")) { - // Related to the controller of the card with ability, works for all kinds of abilities, e.g. static (Hollow One), - // as opposed to the generic one below which only works for SpellAbilities + else if (hType.startsWith("PropertyYou") && !(ability instanceof SpellAbility)) { + // Related to the controller of the card with ability when the ability is static (or otherwise not a SpellAbility) players.add(card.getController()); val = CardFactoryUtil.playerXCount(players, calcX[1], card); }