Package mage.target

Examples of mage.target.TargetSource.choose()


    public void init(Ability source, Game game) {
        Player player = game.getPlayer(source.getControllerId());
        TargetSource target = new TargetSource();
        target.setNotTarget(true);
        if (player != null) {
            target.choose(Outcome.PreventDamage, player.getId(), source.getSourceId(), game);
            this.targetSource = target;
        }
    }
   
    @Override
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.