Examples of removeStatus()


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

                        else
                          p.getBattleField().forceExecuteTurn();
                        return true;
                    } else if(i.getId() == 207) { //Persim Berry
                      String message = poke.getName()+" ate the Persim Berry/nThe Persim Berry restored "+poke.getName()+" status to normal";
                      poke.removeStatus(ConfuseEffect.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()

        }
        user.faint();
        field.requestAndWaitForSwitch(party);
        target = field.getActivePokemon()[party];
        target.changeHealth(target.getStat(Pokemon.S_HP));
        target.removeStatus(StatusEffect.SPECIAL_EFFECT_LOCK);
        return 0;
      }
      public boolean attemptHit(BattleMechanics mech, Pokemon source, Pokemon target) {
        return true;
      }
View Full Code Here

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

        Pokemon[] teammates = user.getTeammates();
        for (int i = 0; i < teammates.length; ++i) {
          Pokemon p = teammates[i];
          if (p == null || p.isFainted() || (sound && p.hasAbility("Soundproof")))
            continue;
          p.removeStatus(StatusEffect.SPECIAL_EFFECT_LOCK);
        }
        return 0;
      }
      public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target) {
        return true;
View Full Code Here

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

        p.addStatus(user, new StatusEffect() {
          public int getTier() {
            return 1;
          }
          public boolean tick(Pokemon p) {
            p.removeStatus(this);
            return true;
          }
          public boolean isMoveTransformer(boolean enemy) {
            return !enemy;
          }
View Full Code Here

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

            if (move != null) {
              target.setPp(i, target.getMaxPp(i));
            }
          }
        }
        target.removeStatus(StatusEffect.SPECIAL_EFFECT_LOCK);
        return 0;
      }
      public boolean attemptHit(BattleMechanics mech, Pokemon source, Pokemon target) {
        return true;
      }
View Full Code Here

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

        new PokemonMove(PokemonType.T_FIGHTING, 60, 1.0, 10) {
      public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
        int power = getPower();
        if (!target.hasSubstitute() && target.hasEffect(SleepEffect.class)) {
          setPower(2 * power);
          target.removeStatus(StatusEffect.SPECIAL_EFFECT_LOCK);
          user.getField().showMessage(target.getName() + " woke up!");
        }
        int damage = mech.calculateDamage(this, user, target);
        setPower(power);
        target.changeHealth(-damage);
View Full Code Here

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

        while (i.hasNext()) {
          StatusEffect effect = (StatusEffect)i.next();
          if (!(effect instanceof StatChangeEffect)) continue;
          StatChangeEffect eff = (StatChangeEffect)effect;
          if (eff.getStat() == Pokemon.S_EVASION) {
            target.removeStatus(eff);
          }
        }
        target.getEvasion().setSecondaryMultiplier(1);
        return super.use(mech, user, target);
      }
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.