fixed Anax, Hardened in the Forge (missing controller condition)

This commit is contained in:
Oleg Agafonov 2020-01-07 07:52:35 +04:00
parent 8c2ec98091
commit 8785b5dbb7

View file

@ -15,6 +15,7 @@ import mage.game.events.ZoneChangeEvent;
import mage.game.permanent.PermanentToken;
import mage.game.permanent.token.SatyrCantBlockToken;
import java.util.Objects;
import java.util.UUID;
/**
@ -79,7 +80,8 @@ class AnaxHardenedInTheForgeTriggeredAbility extends TriggeredAbilityImpl {
}
if (!zEvent.getTarget().getId().equals(getSourceId())
&& (zEvent.getTarget() instanceof PermanentToken
|| !zEvent.getTarget().isCreature())) {
|| !zEvent.getTarget().isCreature()
|| !Objects.equals(zEvent.getTarget().getControllerId(), getControllerId()))) {
return false;
}
int tokenCount = zEvent.getTarget().getPower().getValue() > 3 ? 2 : 1;