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
|
|
@ -8,6 +8,7 @@ import mage.game.events.GameEvent;
|
|||
|
||||
/**
|
||||
* Beginning of controlled end step triggered ability
|
||||
*
|
||||
* @author Loki
|
||||
*/
|
||||
public class BeginningOfYourEndStepTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
|
@ -40,10 +41,7 @@ public class BeginningOfYourEndStepTriggeredAbility extends TriggeredAbilityImpl
|
|||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
if (optional) {
|
||||
return "At the beginning of your end step, you may " + modes.getText();
|
||||
}
|
||||
return "At the beginning of your end step, " + modes.getText();
|
||||
public String getTriggerPhrase() {
|
||||
return "At the beginning of your end step, ";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue