Examples of unapply()


Examples of org.pokenet.server.battle.mechanics.statuses.field.FieldEffect.unapply()

        public void switchIn(Pokemon p) {
            BattleField field = p.getField();
            FieldEffect eff = field.getEffectByType(WeatherEffect.class);
            if (eff != null) {
                eff.unapply(p);
                eff.unapply(p.getOpponent());
            }
        }
        public boolean switchOut(Pokemon p) {
            p.setAbility(null, true);
            BattleField field = p.getField();
View Full Code Here

Examples of org.pokenet.server.battle.mechanics.statuses.items.HoldItem.unapply()

        }
        target.addStatus(user, new StatusEffect() {
          public boolean apply(Pokemon p) {
            HoldItem item = p.getItem();
            if ((item != null) && item.isActive()) {
              item.unapply(p);
              item.deactivate();
            }
            return true;
          }
          public String getDescription() {
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.