forked from External/mage
Added early eventType check for ContinuousRuleModifying effects.
This commit is contained in:
parent
8ea8e77b88
commit
dbffbad3cb
44 changed files with 343 additions and 188 deletions
|
|
@ -38,6 +38,15 @@ import mage.game.events.GameEvent;
|
|||
*/
|
||||
public interface ContinuousRuleModifiyingEffect extends ContinuousEffect {
|
||||
|
||||
/**
|
||||
* This check for the relevant events is called at first to prevent further actions if
|
||||
* the current event is ignored from this effect
|
||||
* @param event
|
||||
* @param game
|
||||
* @return
|
||||
*/
|
||||
boolean checksEventType(GameEvent event, Game game);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param event the event to check if it may happen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue