Package mage.abilities.condition.common

Examples of mage.abilities.condition.common.OneControlledCreatureCondition


        // Enchanted creature gets +2/+1.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2, 1, Duration.WhileOnBattlefield)));

        // Enchanted creature has intimidate as long as its controller controls no other creatures.
        ContinuousEffect effect = new GainAbilityAttachedEffect(IntimidateAbility.getInstance(), AttachmentType.AURA);
        ConditionalContinousEffect intimidate = new ConditionalContinousEffect(effect, new OneControlledCreatureCondition(), rule);
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, intimidate));

    }
View Full Code Here


        this.color.setBlack(true);

        // As long as you control exactly one creature, that creature gets +3/+1 and has lifelink.
        ContinuousEffect boostEffect = new BoostControlledEffect(3, 1, Duration.WhileOnBattlefield);
        Effect effect = new ConditionalContinousEffect(boostEffect, new OneControlledCreatureCondition(), rule);
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
        ContinuousEffect lifelinkEffect = new GainAbilityControlledEffect(LifelinkAbility.getInstance(), Duration.WhileOnBattlefield);
        effect = new ConditionalContinousEffect(lifelinkEffect, new OneControlledCreatureCondition(), "and has lifelink");
        ability.addEffect(effect);
        this.addAbility(ability);

       
       
View Full Code Here

TOP

Related Classes of mage.abilities.condition.common.OneControlledCreatureCondition

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.