mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Fixed DiesTriggeredAbility not working.
This commit is contained in:
parent
37e5c135f5
commit
7b6cedacfa
1 changed files with 2 additions and 2 deletions
|
@ -49,9 +49,9 @@ public class TriggeredAbilities extends AbilitiesImpl<TriggeredAbility> {
|
|||
|
||||
public void checkTriggers(GameEvent event, Game game) {
|
||||
for (TriggeredAbility ability: this) {
|
||||
if (ability.isInUseableZone(game)) {
|
||||
if (event.getType() == GameEvent.EventType.ZONE_CHANGE || ability.isInUseableZone(game)) {
|
||||
MageObject object = game.getObject(ability.getSourceId());
|
||||
if (object.getAbilities().contains(ability)) {
|
||||
if (object != null && object.getAbilities().contains(ability)) {
|
||||
if (ability.checkTrigger(event, game)) {
|
||||
ability.trigger(game, ability.getControllerId());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue