Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.LoseLifeSourceControllerEffect


        this.getSpellAbility().addTarget(auraTarget);
        this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);
        // Whenever enchanted creature attacks or blocks, its controller loses 3 life.
        this.addAbility(new AttacksOrBlocksEnchantedTriggeredAbility(Zone.BATTLEFIELD, new LoseLifeSourceControllerEffect(3)));
    }
View Full Code Here


        // Enchanted creature can't attack or block.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantAttackBlockAttachedEffect(AttachmentType.AURA)));
 
        // Enchanted creature has "At the beginning of your upkeep, you lose 1 life."
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(
                new BeginningOfUpkeepTriggeredAbility(new LoseLifeSourceControllerEffect(1), TargetController.YOU, false), AttachmentType.AURA)));
    }
View Full Code Here

        this.toughness = new MageInt(3);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Vampiric Spirit enters the battlefield, you lose 4 life.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new LoseLifeSourceControllerEffect(4)));
    }
View Full Code Here

       
        // When Illusions of Grandeur enters the battlefield, you gain 20 life.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(20)));
       
        // When Illusions of Grandeur leaves the battlefield, you lose 20 life.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new LoseLifeSourceControllerEffect(20), false));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.LoseLifeSourceControllerEffect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.