forked from External/mage
refactor: add new simpler technique for intervening if conditions on triggered abilities (#13037)
too many usages to fix all at once, plus condition text needs updating, but this will give a cleaner option for new implementations
This commit is contained in:
parent
fb71ce8c85
commit
8a8773971d
19 changed files with 153 additions and 122 deletions
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
package mage.abilities;
|
||||
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
|
|
@ -54,6 +54,8 @@ public interface TriggeredAbility extends Ability {
|
|||
*/
|
||||
TriggeredAbility withRuleTextReplacement(boolean replaceRuleText);
|
||||
|
||||
TriggeredAbility withInterveningIf(Condition condition);
|
||||
|
||||
boolean checkInterveningIfClause(Game game);
|
||||
|
||||
boolean isOptional();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue