mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Card fix disabled static ability conditions
This commit is contained in:
@@ -70,6 +70,7 @@ import forge.game.Game;
|
|||||||
import forge.game.GameActionUtil;
|
import forge.game.GameActionUtil;
|
||||||
import forge.game.GameEntity;
|
import forge.game.GameEntity;
|
||||||
import forge.game.GameEntityCounterTable;
|
import forge.game.GameEntityCounterTable;
|
||||||
|
import forge.game.GameStage;
|
||||||
import forge.game.GlobalRuleChange;
|
import forge.game.GlobalRuleChange;
|
||||||
import forge.game.IHasSVars;
|
import forge.game.IHasSVars;
|
||||||
import forge.game.ability.AbilityFactory;
|
import forge.game.ability.AbilityFactory;
|
||||||
@@ -2329,7 +2330,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
if (!stAb.isSecondary() && !stAb.isClassAbility()) {
|
if (!stAb.isSecondary() && !stAb.isClassAbility()) {
|
||||||
final String stAbD = stAb.toString();
|
final String stAbD = stAb.toString();
|
||||||
if (!stAbD.equals("")) {
|
if (!stAbD.equals("")) {
|
||||||
boolean disabled = getGame() != null && !stAb.checkConditions();
|
boolean disabled = getGame() != null && getController() != null && game.getAge() != GameStage.Play && !stAb.checkConditions();
|
||||||
if (disabled) sb.append(grayTag);
|
if (disabled) sb.append(grayTag);
|
||||||
sb.append(stAbD);
|
sb.append(stAbD);
|
||||||
if (disabled) sb.append(endTag);
|
if (disabled) sb.append(endTag);
|
||||||
|
|||||||
Reference in New Issue
Block a user