[CLB] Fix Faldorn trigger. Closes #9265.

This commit is contained in:
Alex Vasile 2022-07-13 15:27:21 -04:00
parent 59d3d83de0
commit 80446260cc

View file

@ -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;