Examples of removeStatus()


Examples of org.pokenet.server.battle.Pokemon.removeStatus()

        } else if (i.getCategory().equalsIgnoreCase("MEDICINE")) {
          poke = p.getParty()[Integer.parseInt(data[0])];
          if (poke == null) return false;
          if(i.getId() == 16) { //Antidote
                  String message = "You used Antidote on "+poke.getName()+"/nThe Antidote restored "+poke.getName()+" status to normal";
                  poke.removeStatus(PoisonEffect.class);
                  if(p.isBattling())
                    p.getBattleField().forceExecuteTurn();
                  else
                    p.getTcpSession().write("Ii" + message);
                  return true;
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.removeStatus()

                  else
                    p.getTcpSession().write("Ii" + message);
                  return true;
                    } else if(i.getId() == 17) { //Parlyz Heal
                      String message = "You used Parlyz Heal on "+poke.getName()+"/nThe Parlyz Heal restored "+poke.getName()+" status to normal";
                      poke.removeStatus(ParalysisEffect.class);
                      if(p.isBattling())
                        p.getBattleField().forceExecuteTurn();
                      else
                        p.getTcpSession().write("Ii" + message);
                      return true;
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.removeStatus()

                      else
                        p.getTcpSession().write("Ii" + message);
                      return true;
                    } else if(i.getId() == 18) { //Awakening
                      String message = "You used Awakening on "+poke.getName()+"/nThe Awakening restored "+poke.getName()+" status to normal";
                      poke.removeStatus(SleepEffect.class);
                      if(p.isBattling())
                        p.getBattleField().forceExecuteTurn();
                      else
                        p.getTcpSession().write("Ii" + message);
                      return true;
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.removeStatus()

                      else
                        p.getTcpSession().write("Ii" + message);
                      return true;
                    } else if(i.getId() == 19) { //Burn Heal
                      String message = "You used Burn Heal on "+poke.getName()+"/nThe Burn Heal restored "+poke.getName()+" status to normal";
                      poke.removeStatus(BurnEffect.class);
                      if(p.isBattling())
                        p.getBattleField().forceExecuteTurn();
                      else
                        p.getTcpSession().write("Ii" + message);
                      return true;
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.removeStatus()

                      else
                        p.getTcpSession().write("Ii" + message);
                      return true;
                    } else if(i.getId() == 20) { //Ice Heal
                      String message = "You used Ice Heal on "+poke.getName()+"/nThe Ice Heal restored "+poke.getName()+" status to normal";
                      poke.removeStatus(FreezeEffect.class);
                      if(p.isBattling())
                        p.getBattleField().forceExecuteTurn();
                      else
                        p.getTcpSession().write("Ii" + message);
                      return true;
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.removeStatus()

          poke = p.getParty()[Integer.parseInt(data[0])];
          Random rand = new Random();
          if (poke == null) return false;
          if(i.getId() == 200) { //Cheri Berry
                      String message = poke.getName()+" ate the Cheri Berry/nThe Cheri Berry restored "+poke.getName()+" status to normal";
                      poke.removeStatus(ParalysisEffect.class);
                        if(p.isBattling())
                          p.getBattleField().forceExecuteTurn();
                        else
                          p.getTcpSession().write("Ii" + message);
                        return true;
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.removeStatus()

                        else
                          p.getTcpSession().write("Ii" + message);
                        return true;
                    } else if(i.getId() == 201) { //Chesto Berry
                      String message = poke.getName()+" ate the Chesto Berry/nThe Chesto Berry restored "+poke.getName()+" status to normal";
                      poke.removeStatus(SleepEffect.class);
                        if(p.isBattling())
                          p.getBattleField().forceExecuteTurn();
                        else
                          p.getTcpSession().write("Ii" + message);
                        return true;
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.removeStatus()

                        else
                          p.getTcpSession().write("Ii" + message);
                        return true;
                    } else if(i.getId() == 202) { //Pecha Berry
                      String message = poke.getName()+" ate the Pecha Berry/nThe Pecha Berry restored "+poke.getName()+" status to normal";
                        poke.removeStatus(PoisonEffect.class);
                        if(p.isBattling())
                          p.getBattleField().forceExecuteTurn();
                        else
                          p.getTcpSession().write("Ii" + message);
                        return true;
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.removeStatus()

                        else
                          p.getTcpSession().write("Ii" + message);
                        return true;
                    } else if(i.getId() == 203) { //Rawst Berry
                      String message = poke.getName()+" ate the Rawst Berry/nThe Rawst Berry restored "+poke.getName()+" status to normal";
                      poke.removeStatus(BurnEffect.class);
                      if(p.isBattling())
                          p.getBattleField().forceExecuteTurn();
                        else
                          p.getTcpSession().write("Ii" + message);
                        return true;
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.removeStatus()

                        else
                          p.getTcpSession().write("Ii" + message);
                        return true;
                    } else if(i.getId() == 204) { //Aspear Berry
                      String message = poke.getName()+" ate the Aspear Berry/nThe Aspear Berry restored "+poke.getName()+" status to normal";
                        poke.removeStatus(FreezeEffect.class);
                        if(p.isBattling())
                          p.getBattleField().forceExecuteTurn();
                        else
                          p.getTcpSession().write("Ii" + message);
                        return true;
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.