Examples of CantGainLifeTargetEffect


Examples of mage.abilities.effects.common.continious.CantGainLifeTargetEffect

        this.color.setRed(true);

        // Flames of the Blood Hand deals 4 damage to target player. The damage can't be prevented.
        this.getSpellAbility().addEffect(new DamageTargetEffect(4, false));
        // If that player would gain life this turn, that player gains no life instead.
        Effect effect = new CantGainLifeTargetEffect(Duration.EndOfTurn);
        effect.setText("If that player would gain life this turn, that player gains no life instead");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addTarget(new TargetPlayer());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.