Package org.pokenet.server.battle.mechanics.statuses

Examples of org.pokenet.server.battle.mechanics.statuses.StatusEffect.clone()


        List<?> statuses = target.getNormalStatuses(0);
        Iterator<?> i = statuses.iterator();
        while (i.hasNext()) {
          StatusEffect effect = (StatusEffect)i.next();
          if (effect instanceof StatChangeEffect) {
            StatChangeEffect effectClone = (StatChangeEffect)effect.clone();
            effectClone.setDescription(null);
            // TODO: Open question: does Clear Body protect
            // against lowering stats by using this move?
                user.addStatus(target, effectClone);
          }
View Full Code Here


              if (effect instanceof LeechSeedEffect) {
                applied.add(new LeechSeedEffect(false));
              } else if (effect instanceof PerishSongEffect) {
                applied.add(new PerishSongEffect(false));
              } else {
                applied.add(effect.clone());
              }
              if (effect instanceof CoEffect) {
                CoEffect coeffect = (CoEffect)effect;
                if (!coeffect.getType().equals(AttractEffect.class)) {
                  effect.disable();
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.