- Make the local check for Hollow One work for static abilities only.

This commit is contained in:
Agetian
2018-12-11 08:38:37 +03:00
parent 35a7af2a5e
commit 366c836d3a

View File

@@ -472,9 +472,8 @@ public class AbilityUtils {
players.remove(game.getPhaseHandler().getPlayerTurn()); players.remove(game.getPhaseHandler().getPlayerTurn());
val = CardFactoryUtil.playerXCount(players, calcX[1], card); val = CardFactoryUtil.playerXCount(players, calcX[1], card);
} }
else if (hType.startsWith("PropertyYou")) { else if (hType.startsWith("PropertyYou") && !(ability instanceof SpellAbility)) {
// Related to the controller of the card with ability, works for all kinds of abilities, e.g. static (Hollow One), // Related to the controller of the card with ability when the ability is static (or otherwise not a SpellAbility)
// as opposed to the generic one below which only works for SpellAbilities
players.add(card.getController()); players.add(card.getController());
val = CardFactoryUtil.playerXCount(players, calcX[1], card); val = CardFactoryUtil.playerXCount(players, calcX[1], card);
} }