diff --git a/Mage/src/main/java/mage/constants/SubType.java b/Mage/src/main/java/mage/constants/SubType.java index 3e68e39bcb..5b2cc8833e 100644 --- a/Mage/src/main/java/mage/constants/SubType.java +++ b/Mage/src/main/java/mage/constants/SubType.java @@ -574,7 +574,7 @@ public enum SubType { } public boolean canGain(MageObject mageObject) { - return canGain(null); + return canGain(null, mageObject); } public boolean canGain(Game game, MageObject mageObject) { diff --git a/Mage/src/main/java/mage/game/command/emblems/LilianaTheLastHopeEmblem.java b/Mage/src/main/java/mage/game/command/emblems/LilianaTheLastHopeEmblem.java index dfe52769ef..7b7fc56fb3 100644 --- a/Mage/src/main/java/mage/game/command/emblems/LilianaTheLastHopeEmblem.java +++ b/Mage/src/main/java/mage/game/command/emblems/LilianaTheLastHopeEmblem.java @@ -1,4 +1,3 @@ - package mage.game.command.emblems; import mage.abilities.Ability; @@ -15,7 +14,6 @@ import mage.game.command.Emblem; import mage.game.permanent.token.ZombieToken; /** - * * @author spjspj */ public final class LilianaTheLastHopeEmblem extends Emblem { @@ -44,7 +42,7 @@ class LilianaZombiesCount implements DynamicValue { } @Override - public DynamicValue copy() { + public LilianaZombiesCount copy() { return new LilianaZombiesCount(); } diff --git a/Mage/src/main/java/mage/game/events/CreateTokenEvent.java b/Mage/src/main/java/mage/game/events/CreateTokenEvent.java index 5b87a3d477..f6122b270b 100644 --- a/Mage/src/main/java/mage/game/events/CreateTokenEvent.java +++ b/Mage/src/main/java/mage/game/events/CreateTokenEvent.java @@ -11,6 +11,14 @@ public class CreateTokenEvent extends GameEvent { private final Map tokens = new HashMap<>(); + /** + * Multiple tokens per event (Double Season and other effects can change amount and tokens list with it) + * + * @param source + * @param controllerId + * @param amount + * @param token + */ public CreateTokenEvent(Ability source, UUID controllerId, int amount, Token token) { super(GameEvent.EventType.CREATE_TOKEN, null, source, controllerId, amount, false); tokens.put(token, amount); diff --git a/Mage/src/main/java/mage/game/events/CreatedTokenEvent.java b/Mage/src/main/java/mage/game/events/CreatedTokenEvent.java index 8aee05b7bd..272f358879 100644 --- a/Mage/src/main/java/mage/game/events/CreatedTokenEvent.java +++ b/Mage/src/main/java/mage/game/events/CreatedTokenEvent.java @@ -5,6 +5,12 @@ import mage.game.permanent.PermanentToken; public class CreatedTokenEvent extends GameEvent { + /** + * Single token per event (if token created and was put to battlefield) + * + * @param source + * @param tokenPerm + */ public CreatedTokenEvent(Ability source, PermanentToken tokenPerm) { super(GameEvent.EventType.CREATED_TOKEN, tokenPerm.getId(), source, tokenPerm.getControllerId()); }