fixed Unbreakable Formation not granting vigilance

This commit is contained in:
Evan Kranzler 2019-01-15 07:09:23 -05:00
parent f048344332
commit b433124f3d

View file

@ -6,6 +6,7 @@ import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
import mage.abilities.effects.common.counter.AddCountersAllEffect; import mage.abilities.effects.common.counter.AddCountersAllEffect;
import mage.abilities.keyword.IndestructibleAbility; import mage.abilities.keyword.IndestructibleAbility;
import mage.abilities.keyword.VigilanceAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
@ -68,7 +69,7 @@ class UnbreakableFormationEffect extends OneShotEffect {
return false; return false;
} }
game.addEffect(new GainAbilityControlledEffect( game.addEffect(new GainAbilityControlledEffect(
IndestructibleAbility.getInstance(), Duration.EndOfTurn, VigilanceAbility.getInstance(), Duration.EndOfTurn,
StaticFilters.FILTER_PERMANENT_CREATURE StaticFilters.FILTER_PERMANENT_CREATURE
), source); ), source);
return new AddCountersAllEffect( return new AddCountersAllEffect(