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
|
|
@ -60,6 +60,9 @@ import mage.game.events.GameEvent;
|
|||
continue;
|
||||
}
|
||||
}
|
||||
if (!ability.checkEventType(event, game)) {
|
||||
continue;
|
||||
}
|
||||
if (ability.checkTrigger(event, game)) {
|
||||
ability.trigger(game, ability.controllerId);
|
||||
if (ability.getTriggerOnlyOnce()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue