Search in sources :

Example 6 with GainAbilityControllerEffect

use of mage.abilities.effects.common.continuous.GainAbilityControllerEffect in project mage by magefree.

the class VeilOfSummerEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    game.addEffect(new GainAbilityControlledEffect(HexproofFromBlueAbility.getInstance(), Duration.EndOfTurn), source);
    game.addEffect(new GainAbilityControlledEffect(HexproofFromBlackAbility.getInstance(), Duration.EndOfTurn), source);
    game.addEffect(new GainAbilityControllerEffect(HexproofFromBlueAbility.getInstance(), Duration.EndOfTurn), source);
    game.addEffect(new GainAbilityControllerEffect(HexproofFromBlackAbility.getInstance(), Duration.EndOfTurn), source);
    return true;
}
Also used : GainAbilityControlledEffect(mage.abilities.effects.common.continuous.GainAbilityControlledEffect) GainAbilityControllerEffect(mage.abilities.effects.common.continuous.GainAbilityControllerEffect)

Aggregations

GainAbilityControllerEffect (mage.abilities.effects.common.continuous.GainAbilityControllerEffect)6 Player (mage.players.Player)5 ProtectionAbility (mage.abilities.keyword.ProtectionAbility)4 Ability (mage.abilities.Ability)3 GainAbilityControlledEffect (mage.abilities.effects.common.continuous.GainAbilityControlledEffect)3 MageObject (mage.MageObject)2 EntersBattlefieldTriggeredAbility (mage.abilities.common.EntersBattlefieldTriggeredAbility)2 ChoiceColor (mage.choices.ChoiceColor)2 FilterCard (mage.filter.FilterCard)2 ColorPredicate (mage.filter.predicate.mageobject.ColorPredicate)2 ConditionalInterveningIfTriggeredAbility (mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility)1 ContinuousEffect (mage.abilities.effects.ContinuousEffect)1 GainAbilityTargetEffect (mage.abilities.effects.common.continuous.GainAbilityTargetEffect)1 GainProtectionFromColorTargetEffect (mage.abilities.effects.common.continuous.GainProtectionFromColorTargetEffect)1 FlashAbility (mage.abilities.keyword.FlashAbility)1 FlyingAbility (mage.abilities.keyword.FlyingAbility)1 FilterObject (mage.filter.FilterObject)1 FilterPlayer (mage.filter.FilterPlayer)1 NamePredicate (mage.filter.predicate.mageobject.NamePredicate)1 PlayerIdPredicate (mage.filter.predicate.other.PlayerIdPredicate)1