forked from External/mage
* Loyal Cathar - Fixed that dies triggered ability also triggered for the night side card.
This commit is contained in:
parent
a7211a30d0
commit
fd8a18129b
8 changed files with 56 additions and 38 deletions
|
|
@ -105,16 +105,16 @@ public class TriggeredAbilities extends ConcurrentHashMap<String, TriggeredAbili
|
|||
}
|
||||
}
|
||||
|
||||
private MageObject getMageObject(GameEvent event, Game game, TriggeredAbility ability) {
|
||||
MageObject object = game.getPermanent(ability.getSourceId());
|
||||
if (object == null) {
|
||||
object = game.getLastKnownInformation(ability.getSourceId(), event.getZone());
|
||||
if (object == null) {
|
||||
object = game.getObject(ability.getSourceId());
|
||||
}
|
||||
}
|
||||
return object;
|
||||
}
|
||||
// private MageObject getMageObject(GameEvent event, Game game, TriggeredAbility ability) {
|
||||
// MageObject object = game.getPermanent(ability.getSourceId());
|
||||
// if (object == null) {
|
||||
// object = game.getLastKnownInformation(ability.getSourceId(), event.getZone());
|
||||
// if (object == null) {
|
||||
// object = game.getObject(ability.getSourceId());
|
||||
// }
|
||||
// }
|
||||
// return object;
|
||||
// }
|
||||
|
||||
/**
|
||||
* Adds a by sourceId gained triggered ability
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue