mage/Mage/src/main/java/mage/abilities/costs/mana/ActivationManaAbilityStep.java
Oleg Agafonov c2e7b02e13 Reworked and improved special mana payment abilities (convoke, delve, assist, improvise):
* 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);
2020-06-19 13:09:45 +04:00

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;
}
}