forked from External/mage
Reworking triggered ability text generation to allow for ability words and flavor words to be added more easily (#8010)
* refactor all instances of getRule in triggered abilities using new getTriggerPrefix method * updated triggered ability rules generation * renamed method * fixed a test failure * some more refactoring * simplified some instances of ability word usage
This commit is contained in:
parent
0a31110164
commit
ca80806400
398 changed files with 946 additions and 989 deletions
|
|
@ -17,6 +17,7 @@ public class PackTacticsAbility extends TriggeredAbilityImpl {
|
|||
|
||||
public PackTacticsAbility(Effect effect) {
|
||||
super(Zone.BATTLEFIELD, effect, false);
|
||||
this.setAbilityWord(AbilityWord.PACK_TACTICS);
|
||||
}
|
||||
|
||||
private PackTacticsAbility(final PackTacticsAbility ability) {
|
||||
|
|
@ -49,9 +50,8 @@ public class PackTacticsAbility extends TriggeredAbilityImpl {
|
|||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return AbilityWord.PACK_TACTICS.formatWord() +
|
||||
"Whenever {this} attacks, if you attacked with creatures " +
|
||||
"with total power 6 or greater this combat, " + super.getRule();
|
||||
public String getTriggerPhrase() {
|
||||
return "Whenever {this} attacks, if you attacked with creatures " +
|
||||
"with total power 6 or greater this combat, ";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue