spjspj - Fixes for KormusBell not creating 1/1s from swamps. Copies of ContinuousEffect weren't having dependendToType set (was defaulting to null). Add addDependencyType to UrborgTombOfYawgmoth and setDependedToType to KormusBell.

This commit is contained in:
spjspj 2016-06-14 22:30:06 +10:00
parent 99c105d726
commit 51a1c8d345
3 changed files with 3 additions and 1 deletions

View file

@ -54,7 +54,7 @@ public class KormusBell extends CardImpl {
// All Swamps are 1/1 black creatures that are still lands. // All Swamps are 1/1 black creatures that are still lands.
ContinuousEffect effect = new BecomesCreatureAllEffect(new KormusBellToken(), "lands", new FilterPermanent("Swamp", "Swamps"), Duration.WhileOnBattlefield); ContinuousEffect effect = new BecomesCreatureAllEffect(new KormusBellToken(), "lands", new FilterPermanent("Swamp", "Swamps"), Duration.WhileOnBattlefield);
effect.getDependencyTypes().add(DependencyType.BecomeSwamp); effect.setDependedToType(DependencyType.BecomeSwamp);
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect)); this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
} }

View file

@ -77,6 +77,7 @@ class AddCardSubtypeAllEffect extends ContinuousEffectImpl {
public AddCardSubtypeAllEffect() { public AddCardSubtypeAllEffect() {
super(Duration.WhileOnBattlefield, Layer.TypeChangingEffects_4, SubLayer.NA, Outcome.Benefit); super(Duration.WhileOnBattlefield, Layer.TypeChangingEffects_4, SubLayer.NA, Outcome.Benefit);
staticText = ""; staticText = "";
addDependencyType(DependencyType.BecomeSwamp);
} }
public AddCardSubtypeAllEffect(final AddCardSubtypeAllEffect effect) { public AddCardSubtypeAllEffect(final AddCardSubtypeAllEffect effect) {

View file

@ -109,6 +109,7 @@ public abstract class ContinuousEffectImpl extends EffectImpl implements Continu
this.startingTurn = effect.startingTurn; this.startingTurn = effect.startingTurn;
this.startingControllerId = effect.startingControllerId; this.startingControllerId = effect.startingControllerId;
this.dependencyTypes = effect.dependencyTypes; this.dependencyTypes = effect.dependencyTypes;
this.dependendToType = effect.dependendToType;
this.characterDefining = effect.characterDefining; this.characterDefining = effect.characterDefining;
} }