[KHM] Implemented Blood on the Snow (#7428)

* [KHM] Implemented Blood on the Snow

* [KHM] Blood on the Snow - Changed target text

* [KHM] Blood on the Snow - Fixed rule text
This commit is contained in:
Daniel Bomar 2021-01-22 12:43:33 -06:00 committed by GitHub
parent f826bb1aa5
commit c3a862d336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 102 additions and 0 deletions

View file

@ -72,6 +72,7 @@ public abstract class AbilityImpl implements Ability {
protected List<Hint> hints = new ArrayList<>();
protected Outcome customOutcome = null; // uses for AI decisions instead effects
protected MageIdentifier identifier; // used to identify specific ability (e.g. to match with corresponding watcher)
protected String appendToRule = null;
public AbilityImpl(AbilityType abilityType, Zone zone) {
this.id = UUID.randomUUID();
@ -742,6 +743,10 @@ public abstract class AbilityImpl implements Ability {
return usesStack;
}
public void appendToRule(String appendToRule) {
this.appendToRule = appendToRule;
}
@Override
public String getRule() {
return getRule(false);
@ -785,6 +790,9 @@ public abstract class AbilityImpl implements Ability {
if (abilityWord != null) {
rule = "<i>" + abilityWord + "</i> &mdash; " + Character.toUpperCase(rule.charAt(0)) + rule.substring(1);
}
if (appendToRule != null) {
rule = rule.concat(appendToRule);
}
return rule;
}