mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[CLB] Fix Faldorn trigger. Closes #9265.
This commit is contained in:
parent
59d3d83de0
commit
80446260cc
1 changed files with 4 additions and 0 deletions
|
@ -83,6 +83,9 @@ class FaldornDreadWolfHeraldTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (!this.isControlledBy(event.getPlayerId())) {
|
||||
return false;
|
||||
}
|
||||
switch (event.getType()) {
|
||||
case ENTERS_THE_BATTLEFIELD:
|
||||
EntersTheBattlefieldEvent eEvent = (EntersTheBattlefieldEvent) event;
|
||||
|
@ -91,6 +94,7 @@ class FaldornDreadWolfHeraldTriggeredAbility extends TriggeredAbilityImpl {
|
|||
return Optional
|
||||
.ofNullable(game.getSpell(event.getTargetId()))
|
||||
.map(Spell::getFromZone)
|
||||
.orElse(Zone.ALL)
|
||||
.equals(Zone.EXILED);
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue