forked from External/mage
[LTR] Implement Shelob, Child of Ungoliant (#10558)
* [LTR] Implement Shelob, Child of Ungoliant This is almost working. I could not figure out why, but tokens made with the trigger still have subtypes, even though it has only artifact as its type. * fix subtype of the token copy not being cleaned. fixed Myrkul, Lord of Bones that had the same issue. removed game argument from CreateTokenCopyTargetEffect's PermanentModifier. It was only used by Myrkul, and with no effect.
This commit is contained in:
parent
476fd27f65
commit
008662be5e
8 changed files with 253 additions and 14 deletions
|
|
@ -34,7 +34,7 @@ public class CreateTokenCopyTargetEffect extends OneShotEffect {
|
|||
|
||||
@FunctionalInterface
|
||||
public interface PermanentModifier {
|
||||
void apply(Token token, Game game);
|
||||
void apply(Token token);
|
||||
}
|
||||
|
||||
private final Set<Class<? extends Ability>> abilityClazzesToRemove;
|
||||
|
|
@ -241,7 +241,7 @@ public class CreateTokenCopyTargetEffect extends OneShotEffect {
|
|||
}
|
||||
additionalAbilities.stream().forEach(token::addAbility);
|
||||
if (permanentModifier != null) {
|
||||
permanentModifier.apply(token, game);
|
||||
permanentModifier.apply(token);
|
||||
}
|
||||
|
||||
if (!this.abilityClazzesToRemove.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue