mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Make the local check for Hollow One work for static abilities only.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user