Package mage.target.common

Examples of mage.target.common.TargetCreaturePermanentAmount.addTarget()


                        if (ability.getTargets().get(index) instanceof TargetCreaturePermanentAmount) {
                            // supports only to set the complete amount to one target
                            TargetCreaturePermanentAmount targetAmount = (TargetCreaturePermanentAmount) ability.getTargets().get(index);
                            targetAmount.setAmount(ability, game);
                            int amount = targetAmount.getAmountRemaining();
                            targetAmount.addTarget(id, amount,ability, game);
                            targetsSet++;
                        } else {
                            ability.getTargets().get(index).addTarget(id, ability, game);
                            targetsSet++;
                        }
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.