forked from External/mage
[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:
parent
f826bb1aa5
commit
c3a862d336
3 changed files with 102 additions and 0 deletions
|
|
@ -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> — " + Character.toUpperCase(rule.charAt(0)) + rule.substring(1);
|
||||
}
|
||||
if (appendToRule != null) {
|
||||
rule = rule.concat(appendToRule);
|
||||
}
|
||||
return rule;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue