mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
fixed Anax, Hardened in the Forge (missing controller condition)
This commit is contained in:
parent
8c2ec98091
commit
8785b5dbb7
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue