mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Update CardState.java
This commit is contained in:
@@ -961,6 +961,10 @@ public class CardState implements GameObject, IHasSVars, ITranslatable {
|
||||
return abilityForTrigger.computeIfAbsent(svar, s -> AbilityFactory.getAbility(getCard(), s, this));
|
||||
}
|
||||
|
||||
public boolean hasAbilityForTrigger(String svar) {
|
||||
return abilityForTrigger.containsKey(svar);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTranslationKey() {
|
||||
String displayName = flavorName == null ? name : flavorName;
|
||||
|
||||
Reference in New Issue
Block a user