Clean up triggered ability text generation (#10627)

* move "or battle" to its own class

* move "or planeswalker" to its own class

* remove strange way of setting custom text

* finally remove getTriggerPhrase

* copy constructor visibility

* fix Vraska
This commit is contained in:
xenohedron 2023-07-15 16:49:40 -04:00 committed by GitHub
parent e2cff095b3
commit a7f78e8190
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 232 additions and 191 deletions

View file

@ -58,12 +58,5 @@ public interface TriggeredAbility extends Ability {
GameEvent getTriggerEvent();
/**
* Don't override this. Use setTriggerPhrase instead and let the base class handle it.
* @return
*/
@Deprecated
String getTriggerPhrase();
TriggeredAbility setTriggerPhrase(String triggerPhrase);
}