Package mage.target.targetpointer

Examples of mage.target.targetpointer.TargetPointer


            if (ability.getTargets().size() > 0) {
                setTargets(ability.getTargets());
            } else {
                List<UUID> targetList = new ArrayList<>();
                for (Effect effect : ability.getEffects()) {
                    TargetPointer targetPointer = effect.getTargetPointer();
                    if (targetPointer instanceof FixedTarget) {
                        targetList.add(((FixedTarget) targetPointer).getTarget());
                    }
                }
                if (targetList.size() > 0) {
View Full Code Here


                if (ability.getTargets().size() > 0) {
                    abilityView.setTargets(ability.getTargets());
                } else {
                    List<UUID> abilityTargets = new ArrayList<>();
                    for (Effect effect : ability.getEffects()) {
                        TargetPointer targetPointer = effect.getTargetPointer();
                        if (targetPointer != null) {
                            List<UUID> targetList = targetPointer.getTargets(game, ability);
                            abilityTargets.addAll(targetList);
                        }
                    }
                    if (!abilityTargets.isEmpty()) {
                        abilityView.overrideTargets(abilityTargets);
View Full Code Here

TOP

Related Classes of mage.target.targetpointer.TargetPointer

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.