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

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


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


            p.setAbility(null, true);
            BattleField field = p.getField();
            FieldEffect eff = field.getEffectByType(WeatherEffect.class);
            if (eff != null) {
                eff.apply(p);
                eff.apply(p.getOpponent());
            }
            return super.switchOut(p);
        }
    }
   
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.