Examples of requestAndWaitForSwitch()


Examples of org.pokenet.server.battle.BattleField.requestAndWaitForSwitch()

              }
            }
          }
        }
        int substitute = user.getSubstitute();
        field.requestAndWaitForSwitch(party);
        target = field.getActivePokemon()[party];
        target.setSubstitute(substitute);
        i = applied.iterator();
        field.setNarrationEnabled(false);
        while (i.hasNext()) {
View Full Code Here

Examples of org.pokenet.server.battle.BattleField.requestAndWaitForSwitch()

        target.changeHealth(-damage);

        int party = user.getParty();
        BattleField field = user.getField();
        if (field.getAliveCount(party) > 1) {
          field.requestAndWaitForSwitch(party);
          target = field.getActivePokemon()[party];
          HoldItem item = target.getItem();
          if (item instanceof ChoiceBandItem) {
            for (int i = 0; i < 4; ++i) {
              MoveListEntry entry = target.getMove(i);
View Full Code Here

Examples of org.pokenet.server.battle.BattleField.requestAndWaitForSwitch()

        if (field.getAliveCount(party) == 1) {
          user.getField().showMessage("But it failed!");
          return 0;
        }
        user.faint();
        field.requestAndWaitForSwitch(party);
        target = field.getActivePokemon()[party];
        target.changeHealth(target.getStat(Pokemon.S_HP));
        for (int i = 0; i < 4; ++i) {
          MoveListEntry entry = target.getMove(i);
          if (entry != null) {
View Full Code Here

Examples of org.pokenet.server.battle.BattleField.requestAndWaitForSwitch()

        if (field.getAliveCount(party) == 1) {
          user.getField().showMessage("But it failed!");
          return 0;
        }
        user.faint();
        field.requestAndWaitForSwitch(party);
        target = field.getActivePokemon()[party];
        target.changeHealth(target.getStat(Pokemon.S_HP));
        target.removeStatus(StatusEffect.SPECIAL_EFFECT_LOCK);
        return 0;
      }
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.