forked from External/mage
* Some more changes concerning sourceObject handling in ability. Added early event type check for triggered abilities.
This commit is contained in:
parent
b9da9cb6cb
commit
7b95da55a7
242 changed files with 1602 additions and 904 deletions
|
|
@ -34,6 +34,7 @@ import mage.abilities.effects.Effect;
|
|||
import mage.constants.AbilityType;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.players.Player;
|
||||
|
||||
/**
|
||||
|
|
@ -75,6 +76,12 @@ public abstract class TriggeredAbilityImpl extends AbilityImpl implements Trigge
|
|||
return true;
|
||||
}
|
||||
|
||||
// TODO: Implement for all TriggeredAbilities so this default method can be removed
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean resolve(Game game) {
|
||||
MageObject object = game.getObject(sourceId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue