mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
* now it can be used to calc and find available mana and playable abilities; * now tests and AI can use that abilities; * now it follows mtg's rules and restrictions for mana activation order (rule 601.2f, see #768);
25 lines
663 B
Java
25 lines
663 B
Java
package mage.abilities.costs.mana;
|
|
|
|
/**
|
|
* Some special AlternateManaPaymentAbility must be restricted to pay before or after mana abilities.
|
|
* Game logic: if you use special mana ability then normal mana abilities must be restricted and vice versa,
|
|
* see Convoke for more info and rules
|
|
*
|
|
* @author JayDi85
|
|
*/
|
|
|
|
public enum ActivationManaAbilityStep {
|
|
BEFORE(0), // assist
|
|
NORMAL(1), // all activated mana abilities
|
|
AFTER(2); // convoke, delve, improvise
|
|
|
|
private final int stepOrder;
|
|
|
|
ActivationManaAbilityStep(int stepOrder) {
|
|
this.stepOrder = stepOrder;
|
|
}
|
|
|
|
public int getStepOrder() {
|
|
return stepOrder;
|
|
}
|
|
}
|