refactor: common logic for "at..." triggered abilities (#13045)

* add new common framework for at step triggered abilities

* move postcombat main and second main triggers to it

* update draw step triggers

* refactor BeginningOfCombatTriggeredAbility

* refactor BeginningOfFirstMainTriggeredAbility

* move Pronoun to constants package

* cleanup some cards to use simpler constructors

* package reorganization
This commit is contained in:
xenohedron 2024-10-27 21:03:40 -04:00 committed by GitHub
parent c9cc398b48
commit eee0fee79e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
329 changed files with 1149 additions and 1331 deletions

View file

@ -0,0 +1,33 @@
package mage.constants;
/**
* Created by IGOUDT on 5-3-2017.
*/
public enum Pronoun {
HE("he", "him", "his"),
SHE("she", "her", "her"),
THEY("they", "them", "their"),
IT("it", "it", "its");
private final String subjective;
private final String objective;
private final String possessive;
Pronoun(String subjective, String objective, String possessive) {
this.subjective = subjective;
this.objective = objective;
this.possessive = possessive;
}
public String getSubjective() {
return subjective;
}
public String getObjective() {
return objective;
}
public String getPossessive() {
return possessive;
}
}