new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Poison Gas", new StatusMove(
PokemonType.T_POISON, 0, 0.55, 40, new StatusEffect[] {
new PoisonEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Poison Sting", new StatusMove(
PokemonType.T_POISON, 15, 1.0, 35, new StatusEffect[] {
new PoisonEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Poisonpowder", new StatusMove(
PokemonType.T_POISON, 0, 0.75, 35, new StatusEffect[] {
new PoisonEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Toxic", new StatusMove(
PokemonType.T_POISON, 0, 0.85, 10, new StatusEffect[] {
new ToxicEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Poison Fang", new StatusMove(
PokemonType.T_POISON, 50, 1.0, 15, new StatusEffect[] {
new ToxicEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Powder Snow", new StatusMove(
PokemonType.T_ICE, 40, 1.0, 25, new StatusEffect[] {
new FreezeEffect()
},
new boolean[] { false },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Psybeam", new StatusMove(
PokemonType.T_PSYCHIC, 65, 1.0, 20, new StatusEffect[] {
new ConfuseEffect()
},
new boolean[] { false },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Psychic", new StatusMove(
PokemonType.T_PSYCHIC, 90, 1.0, 10, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPDEFENCE, false)
},
new boolean[] { false },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Psycho Boost", new StatusMove(
PokemonType.T_PSYCHIC, 140, 0.9, 5, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPATTACK, false, 2)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Rock Slide", new StatusMove(
PokemonType.T_ROCK, 75, 0.9, 10, new StatusEffect[] {
new FlinchEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Rock Smash", new StatusMove(
PokemonType.T_FIGHTING, 20, 1.0, 15, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_DEFENCE, false)
},
new boolean[] { false },
new double[] { 0.3 }
) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
setPower(mech instanceof JewelMechanics ? 40 : 20);
return super.use(mech, user, target);
}
}
));
m_moves.add(new MoveListEntry("Rock Tomb", new StatusMove(
PokemonType.T_ROCK, 50, 0.8, 10, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPEED, false)
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Sand-Attack", new StatusMove(
PokemonType.T_GROUND, 0, 1.0, 15, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_ACCURACY, false)
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Sacred Fire", new StatusMove(
PokemonType.T_FIRE, 100, 0.95, 5, new StatusEffect[] {
new BurnEffect()
},
new boolean[] { false },
new double[] { 0.5 }
)));
m_moves.add(new MoveListEntry("Scary Face", new StatusMove(
PokemonType.T_NORMAL, 0, 0.9, 10, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPEED, false, 2)
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Screech", new StatusMove(
PokemonType.T_NORMAL, 0, 0.85, 40, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_DEFENCE, false, 2)
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Shadow Ball", new StatusMove(
PokemonType.T_GHOST, 80, 1.0, 15, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPDEFENCE, false)
},
new boolean[] { false },
new double[] { 0.2 }
)));
m_moves.add(new MoveListEntry("Sharpen", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 30, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_ATTACK, true, 1)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Signal Beam", new StatusMove(
PokemonType.T_BUG, 75, 1.0, 15, new StatusEffect[] {
new ConfuseEffect()
},
new boolean[] { false },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Sing", new StatusMove(
PokemonType.T_NORMAL, 0, 0.55, 15, new StatusEffect[] {
new SleepEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Sleep Powder", new StatusMove(
PokemonType.T_GRASS, 0, 0.75, 15, new StatusEffect[] {
new SleepEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Sludge", new StatusMove(
PokemonType.T_POISON, 65, 1.0, 20, new StatusEffect[] {
new PoisonEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Sludge Bomb", new StatusMove(
PokemonType.T_POISON, 90, 1.0, 10, new StatusEffect[] {
new PoisonEffect()
},
new boolean[] { false },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Smog", new StatusMove(
PokemonType.T_POISON, 20, 0.7, 20, new StatusEffect[] {
new PoisonEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Smokescreen", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 20, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_ACCURACY, false)
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Spark", new StatusMove(
PokemonType.T_ELECTRIC, 65, 1.0, 20, new StatusEffect[] {
new ParalysisEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Spore", new StatusMove(
PokemonType.T_GRASS, 0, 1.0, 15, new StatusEffect[] {
new SleepEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Steel Wing", new StatusMove(
PokemonType.T_STEEL, 70, 0.9, 25, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_DEFENCE, true)
},
new boolean[] { true },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Stomp", new StatusMove(
PokemonType.T_NORMAL, 65, 1.0, 20, new StatusEffect[] {
new FlinchEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("String Shot", new StatusMove(
PokemonType.T_BUG, 0, 0.95, 40, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPEED, false)
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Stun Spore", new StatusMove(
PokemonType.T_GRASS, 0, 0.75, 30, new StatusEffect[] {
new ParalysisEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Superpower", new StatusMove(
PokemonType.T_FIGHTING, 120, 1.0, 5, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_ATTACK, false),
new StatChangeEffect(Pokemon.S_DEFENCE, false)
},
new boolean[] { true, true },
new double[] { 1.0, 1.0 }
)));
m_moves.add(new MoveListEntry("Supersonic", new StatusMove(
PokemonType.T_NORMAL, 0, 0.55, 30, new StatusEffect[] {
new ConfuseEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Swagger", new StatusMove(
PokemonType.T_NORMAL, 0, 0.9, 15, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_ATTACK, true, 2),
new ConfuseEffect()
},
new boolean[] { false, false },
new double[] { 1.0, 1.0 }
)));
m_moves.add(new MoveListEntry("Sweet Kiss", new StatusMove(
PokemonType.T_NORMAL, 0, 0.75, 10, new StatusEffect[] {
new ConfuseEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Sweet Scent", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 20, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_EVASION, false)
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Swords Dance", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 30, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_ATTACK, true, 2)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Tail Glow", new StatusMove(
PokemonType.T_BUG, 0, 1.0, 20, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPATTACK, true, 2)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Tail Whip", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 30, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_DEFENCE, false)
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Teeter Dance", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 20, new StatusEffect[] {
new ConfuseEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Thunder", new StatusMove(
PokemonType.T_ELECTRIC, 120, 0.7, 10, new StatusEffect[] {
new ParalysisEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Thunder Wave", new StatusMove(
PokemonType.T_ELECTRIC, 0, 1.0, 20, new StatusEffect[] {
new ParalysisEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Thunderbolt", new StatusMove(
PokemonType.T_ELECTRIC, 95, 1.0, 15, new StatusEffect[] {
new ParalysisEffect()
},
new boolean[] { false },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Thunderpunch", new StatusMove(
PokemonType.T_ELECTRIC, 75, 1.0, 15, new StatusEffect[] {
new ParalysisEffect()
},
new boolean[] { false },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Thundershock", new StatusMove(
PokemonType.T_ELECTRIC, 40, 1.0, 30, new StatusEffect[] {
new ParalysisEffect()
},
new boolean[] { false },
new double[] { 0.1 }
)));
// TODO: Hits through substitutes in Advance, but not in D/P.
m_moves.add(new MoveListEntry("Tickle", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 20, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_ATTACK, false),
new StatChangeEffect(Pokemon.S_DEFENCE, false)
},
new boolean[] { false, false },
new double[] { 1.0, 1.0 }
)));
m_moves.add(new MoveListEntry("Tri Attack", new StatusMove(
PokemonType.T_NORMAL, 80, 1.0, 10, new StatusEffect[] {
new ParalysisEffect(),
new BurnEffect(),
new FreezeEffect()
},
new boolean[] { false, false, false },
new double[] { 0.1, 0.1, 0.1 }
)));
m_moves.add(new MoveListEntry("Twister", new StatusMove(
PokemonType.T_DRAGON, 40, 1.0, 20, new StatusEffect[] {
new FlinchEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Water Pulse", new StatusMove(
PokemonType.T_WATER, 60, 1.0, 20, new StatusEffect[] {
new ConfuseEffect()
},
new boolean[] { false },
new double[] { 0.2 }
)));
m_moves.add(new MoveListEntry("Will-o-wisp", new StatusMove(
PokemonType.T_FIRE, 0, 0.75, 15, new StatusEffect[] {
new BurnEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Withdraw", new StatusMove(
PokemonType.T_WATER, 0, 1.0, 40, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_DEFENCE, true)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Zap Cannon", new StatusMove(
PokemonType.T_ELECTRIC, 100, 0.5, 5, new StatusEffect[] {
new ParalysisEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Milk Drink", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 10, new StatusEffect[] {
new PercentEffect(0.5, false, -1, null)
},
new boolean[] { true },
new double[] { 1.0 }
)));
//todo: this should have 20pp in advance and 10pp in d/p
m_moves.add(new MoveListEntry("Recover", new StatusMove(
PokemonType.T_PSYCHIC, 0, 1.0, 10, new StatusEffect[] {
new PercentEffect(0.5, false, -1, null)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Softboiled", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 10, new StatusEffect[] {
new PercentEffect(0.5, false, -1, null)
},
new boolean[] { true },
new double[] { 1.0 }
)));
{
StatusMove healing = new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 5, new StatusEffect[] {
new PercentEffect(0.5, false, -1, null)
},
new boolean[] { true },
new double[] { 1.0 }
);
m_moves.add(new MoveListEntry("Moonlight", (PokemonMove)healing.clone()));
m_moves.add(new MoveListEntry("Morning Sun", (PokemonMove)healing.clone()));
m_moves.add(new MoveListEntry("Synthesis", (PokemonMove)healing.clone()));
}
m_moves.add(new MoveListEntry("Solarbeam", new StatusMove(
PokemonType.T_GRASS, 0, 1.0, 10, new StatusEffect[] {
new ChargeEffect(1, "takes in sunlight!", new MoveListEntry(
"Solarbeam",
new PokemonMove(
PokemonType.T_GRASS, 120, 1.0, 10
)
)
)
},
new boolean[] { true },
new double[] { 1.0 }
) {
public boolean isAttack() {
return true;
}
public boolean isDamaging() {
return true;
}
}
));
m_moves.add(new MoveListEntry("Sunny Day", new WeatherMove(
PokemonType.T_FIRE, 5,
new Class[] { SunEffect.class },
"Heat Rock"
)));
m_moves.add(new MoveListEntry("Rain Dance", new WeatherMove(
PokemonType.T_WATER, 5,
new Class[] { RainEffect.class },
"Damp Rock"
)));
m_moves.add(new MoveListEntry("Hail", new WeatherMove(
PokemonType.T_ICE, 5,
new Class[] { HailEffect.class },
"Icy Rock"
)));
m_moves.add(new MoveListEntry("Sandstorm", new WeatherMove(
PokemonType.T_ROCK, 5,
new Class[] { SandstormEffect.class },
"Smooth Rock"
)));
m_moves.add(new MoveListEntry("Seismic Toss",
new PokemonMove(PokemonType.T_FIGHTING, 0, 1.0, 20) {
public boolean isAttack() {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (getEffectiveness(user, target) == 0.0) {
user.getField().showMessage("It doesn't affect "
+ target.getName() + "...");
return 0;
}
int damage = user.getLevel();
target.changeHealth(-damage);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Night Shade",
new PokemonMove(PokemonType.T_GHOST, 0, 1.0, 15) {
public boolean isAttack() {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (getEffectiveness(user, target) == 0.0) {
user.getField().showMessage("It doesn't affect "
+ target.getName() + "...");
return 0;
}
int damage = user.getLevel();
target.changeHealth(-damage);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Sonicboom",
new PokemonMove(PokemonType.T_NORMAL, 0, 0.9, 20) {
public boolean isAttack() {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (getEffectiveness(user, target) == 0.0) {
user.getField().showMessage("It doesn't affect "
+ target.getName() + "...");
return 0;
}
final int damage = 20;
target.changeHealth(-damage);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Dragon Rage",
new PokemonMove(PokemonType.T_DRAGON, 0, 1.0, 10) {
public boolean isAttack() {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
final int damage = 40;
target.changeHealth(-damage);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Double-edge",
new RecoilMove(PokemonType.T_NORMAL, 120, 1.0, 20, 0.125)));
m_moves.add(new MoveListEntry("Submission",
new RecoilMove(PokemonType.T_FIGHTING, 80, 0.8, 25, 0.25)));
m_moves.add(new MoveListEntry("Take Down",
new RecoilMove(PokemonType.T_NORMAL, 90, 0.85, 20, 0.25)));
m_moves.add(new MoveListEntry("Volt Tackle",
new RecoilMove(PokemonType.T_ELECTRIC, 120, 1.0, 15, 1.0/3.0)));
m_moves.add(new MoveListEntry("Struggle",
new RecoilMove(PokemonType.T_TYPELESS, 50, 1.0, 1, 0.50) {
public boolean isProtected(Pokemon p) {
return false;
}
public int getRecoil(Pokemon p, int damage) {
if (p.getField().getMechanics() instanceof JewelMechanics) {
return p.getStat(Pokemon.S_HP) / 4;
}
return super.getRecoil(p, damage);
}
}));
m_moves.add(new MoveListEntry("Arm Thrust",
new MultipleHitMove(PokemonType.T_FIGHTING, 15, 1.0, 20)));
m_moves.add(new MoveListEntry("Barrage",
new MultipleHitMove(PokemonType.T_NORMAL, 15, 0.85, 20)));
m_moves.add(new MoveListEntry("Bone Rush",
new MultipleHitMove(PokemonType.T_GROUND, 25, 0.8, 10)));
m_moves.add(new MoveListEntry("Bullet Seed",
new MultipleHitMove(PokemonType.T_GRASS, 10, 1.0, 30)));
m_moves.add(new MoveListEntry("Comet Punch",
new MultipleHitMove(PokemonType.T_NORMAL, 18, 0.85, 15)));
m_moves.add(new MoveListEntry("Doubleslap",
new MultipleHitMove(PokemonType.T_NORMAL, 15, 0.85, 10)));
m_moves.add(new MoveListEntry("Fury Attack",
new MultipleHitMove(PokemonType.T_NORMAL, 15, 0.85, 20)));
m_moves.add(new MoveListEntry("Fury Swipes",
new MultipleHitMove(PokemonType.T_NORMAL, 18, 0.8, 15)));
m_moves.add(new MoveListEntry("Icicle Spear",
new MultipleHitMove(PokemonType.T_ICE, 10, 1.0, 30)));
m_moves.add(new MoveListEntry("Pin Missile",
new MultipleHitMove(PokemonType.T_BUG, 14, 0.85, 20)));
m_moves.add(new MoveListEntry("Rock Blast",
new MultipleHitMove(PokemonType.T_ROCK, 25, 0.8, 10)));
m_moves.add(new MoveListEntry("Spike Cannon",
new MultipleHitMove(PokemonType.T_NORMAL, 20, 1.0, 15)));
m_moves.add(new MoveListEntry("Slack Off", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 10, new StatusEffect[] {
new PercentEffect(0.5, false, -1, null)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Absorb",
new AbsorbMove(PokemonType.T_GRASS, 20, 1.0, 20, 0.5)));
/** TBD (TODO): Has only 5 PP in Advance, but 10 in D/P. */
m_moves.add(new MoveListEntry("Giga Drain",
new AbsorbMove(PokemonType.T_GRASS, 60, 1.0, 10, 0.5)));
m_moves.add(new MoveListEntry("Leech Life",
new AbsorbMove(PokemonType.T_BUG, 20, 1.0, 15, 0.5)));
m_moves.add(new MoveListEntry("Mega Drain",
new AbsorbMove(PokemonType.T_GRASS, 40, 1.0, 10, 0.5)));
m_moves.add(new MoveListEntry("Ancientpower", new StatusMove(
PokemonType.T_ROCK, 60, 1.0, 5, new StatusEffect[] {
new MultipleStatChangeEffect(new int[] {
Pokemon.S_ATTACK,
Pokemon.S_DEFENCE,
Pokemon.S_SPEED,
Pokemon.S_SPATTACK,
Pokemon.S_SPDEFENCE
}
)
},
new boolean[] { true },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Silver Wind", new StatusMove(
PokemonType.T_BUG, 60, 1.0, 5, new StatusEffect[] {
new MultipleStatChangeEffect(new int[] {
Pokemon.S_ATTACK,
Pokemon.S_DEFENCE,
Pokemon.S_SPEED,
Pokemon.S_SPATTACK,
Pokemon.S_SPDEFENCE
}
)
},
new boolean[] { true },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Belly Drum", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 10, new StatusEffect[] {
// new PercentEffect(-0.5, false, -1, null),
new StatChangeEffect(Pokemon.S_ATTACK, true, 12)
},
new boolean[] { true },
new double[] { 1.0 }
) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int damage = (user.getStat(Pokemon.S_HP) / 2);
if (user.getHealth() <= damage) {
user.getField().showMessage("But it failed!");
return 0;
}
IntrinsicAbility ability = user.getAbility();
if (user.hasAbility("Magic Guard")) {
ability.deactivate();
} else {
ability = null;
}
user.changeHealth(-damage, true);
if (ability != null) {
ability.activate();
}
return super.use(mech, user, target);
}
}
));
m_moves.add(new MoveListEntry("Reversal",
new HealthBasedMove(PokemonType.T_FIGHTING, 1.0, 15, false)));
m_moves.add(new MoveListEntry("Flail",
new HealthBasedMove(PokemonType.T_NORMAL, 1.0, 15, false)));
m_moves.add(new MoveListEntry("Eruption",
new HealthBasedMove(PokemonType.T_FIRE, 1.0, 5, true)));
m_moves.add(new MoveListEntry("Water Spout",
new HealthBasedMove(PokemonType.T_WATER, 1.0, 5, true)));
m_moves.add(new MoveListEntry("Aeroblast",
new HighCriticalHitMove(PokemonType.T_FLYING, 120, 0.95, 5)));
m_moves.add(new MoveListEntry("Air Cutter",
new HighCriticalHitMove(PokemonType.T_FLYING, 55, 0.95, 25)));
m_moves.add(new MoveListEntry("Crabhammer",
new HighCriticalHitMove(PokemonType.T_WATER, 90, 0.85, 10)));
m_moves.add(new MoveListEntry("Cross Chop",
new HighCriticalHitMove(PokemonType.T_FIGHTING, 100, 0.8, 5)));
m_moves.add(new MoveListEntry("Karate Chop",
new HighCriticalHitMove(PokemonType.T_FIGHTING, 50, 1.0, 25)));
m_moves.add(new MoveListEntry("Leaf Blade",
new HighCriticalHitMove(PokemonType.T_GRASS, 70, 1.0, 15) {
public int use(BattleMechanics mech, Pokemon source, Pokemon target) {
setPower((mech instanceof JewelMechanics) ? 90 : 70);
return super.use(mech, source, target);
}
}));
m_moves.add(new MoveListEntry("Poison Tail",
new StatusMove(PokemonType.T_POISON, 50, 1.0, 25, new StatusEffect[] {
new PoisonEffect()
},
new boolean[] { false },
new double[] { 0.1 }
) {
public boolean hasHighCriticalHitRate() { return true; }
}
));
m_moves.add(new MoveListEntry("Razor Leaf",
new HighCriticalHitMove(PokemonType.T_GRASS, 55, 0.95, 25)));
m_moves.add(new MoveListEntry("Slash",
new HighCriticalHitMove(PokemonType.T_NORMAL, 70, 1.0, 20)));
m_moves.add(new MoveListEntry("Aerial Ace",
new PerfectAccuracyMove(PokemonType.T_FLYING, 60, 20)));
m_moves.add(new MoveListEntry("Faint Attack",
new PerfectAccuracyMove(PokemonType.T_DARK, 60, 20)));
m_moves.add(new MoveListEntry("Magical Leaf",
new PerfectAccuracyMove(PokemonType.T_GRASS, 60, 20)));
m_moves.add(new MoveListEntry("Shadow Punch",
new PerfectAccuracyMove(PokemonType.T_GHOST, 60, 20)));
m_moves.add(new MoveListEntry("Swift",
new PerfectAccuracyMove(PokemonType.T_NORMAL, 60, 20)));
m_moves.add(new MoveListEntry("Shock Wave",
new PerfectAccuracyMove(PokemonType.T_ELECTRIC, 60, 20)));
m_moves.add(new MoveListEntry("Bonemerang",
new PokemonMove(PokemonType.T_GROUND, 50, 0.9, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int damage = 0;
for (int i = 0; i < 2; ++i) {
final int partial = mech.calculateDamage(this, user, target);
target.changeHealth(-partial);
damage += partial;
}
user.getField().showMessage("Hit 2 time(s)!");
return damage;
}
}
));
m_moves.add(new MoveListEntry("Double Kick",
new PokemonMove(PokemonType.T_FIGHTING, 30, 1.0, 30) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int damage = 0;
for (int i = 0; i < 2; ++i) {
final int partial = mech.calculateDamage(this, user, target);
target.changeHealth(-partial);
damage += partial;
}
user.getField().showMessage("Hit 2 time(s)!");
return damage;
}
}
));
m_moves.add(new MoveListEntry("Twineedle",
new StatusMove(PokemonType.T_BUG, 25, 1.0, 15, new StatusEffect[] {
new PoisonEffect()
},
new boolean[] { false },
new double[] { 0.1 }
)
{
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int damage = 0;
for (int i = 0; i < 2; ++i) {
damage += super.use(mech, user, target);
}
return damage;
}
}
));
PokemonMove healBell = new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 5) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
boolean sound = getMoveListEntry().getName().equals("Heal Bell");
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;
}
};
PokemonMove aromatherapy = (PokemonMove)healBell.clone();
aromatherapy.setType(PokemonType.T_GRASS);
m_moves.add(new MoveListEntry("Aromatherapy", aromatherapy));
m_moves.add(new MoveListEntry("Heal Bell", healBell));
m_moves.add(new MoveListEntry("Assist",
new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 15) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
Pokemon[] teammates = user.getTeammates();
if (teammates.length < 2) {
user.getField().showMessage("But it failed!");
return 0;
}
Random random = mech.getRandom();
Pokemon teammate;
do {
teammate = teammates[random.nextInt(teammates.length)];
} while (teammate == user);
MoveListEntry move;
do {
move = teammate.getMove(random.nextInt(4));
} while (move == null);
if (move.getName().equals("Focus Punch")) {
user.getField().showMessage("But it failed!");
return 0;
}
return user.useMove(move, target);
}
}
));
m_moves.add(new MoveListEntry("Facade",
new PokemonMove(PokemonType.T_NORMAL, 70, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int power = getPower();
if (user.hasEffect(StatusEffect.SPECIAL_EFFECT_LOCK)) {
setPower(2 * power);
}
int damage = mech.calculateDamage(this, user, target);
setPower(power);
target.changeHealth(-damage);
return damage;
}
}
));
m_moves.add(new MoveListEntry("False Swipe",
new PokemonMove(PokemonType.T_NORMAL, 40, 1.0, 40) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int targetHealth = target.getHealth();
int damage = mech.calculateDamage(this, user, target);
if (damage >= targetHealth) {
damage = targetHealth - 1;
}
target.changeHealth(-damage);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Psywave",
new PokemonMove(PokemonType.T_PSYCHIC, 0, 0.8, 15) {
public boolean isAttack() {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
Random random = mech.getRandom();
int damage = user.getLevel() * (random.nextInt(11) * 10 + 50) / 100;
target.changeHealth(-damage);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Jump Kick",
new JumpKickMove(PokemonType.T_FIGHTING, 70, 85, 0.95, 20)
));
m_moves.add(new MoveListEntry("Hi Jump Kick",
new JumpKickMove(PokemonType.T_FIGHTING, 85, 100, 0.90, 20)
));
m_moves.add(new MoveListEntry("Refresh",
new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
user.removeStatus(StatusEffect.SPECIAL_EFFECT_LOCK);
return 0;
}
}
));
m_moves.add(new MoveListEntry("Smellingsalt",
new PokemonMove(PokemonType.T_NORMAL, 60, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int power = getPower();
if (!target.hasSubstitute() && target.hasEffect(ParalysisEffect.class)) {
setPower(2 * power);
target.removeStatus(StatusEffect.SPECIAL_EFFECT_LOCK);
user.getField().showMessage(target.getName() + " was cured of paralysis!");
}
int damage = mech.calculateDamage(this, user, target);
setPower(power);
target.changeHealth(-damage);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Splash",
new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 40) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
user.getField().showMessage("But nothing happened!");
return 0;
}
}
));
m_moves.add(new MoveListEntry("Teleport",
new PokemonMove(PokemonType.T_PSYCHIC, 0, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
user.getField().showMessage("But it failed!");
return 0;
}
}
));
m_moves.add(new MoveListEntry("Triple Kick",
new PokemonMove(PokemonType.T_FIGHTING, 60, 0.9, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int damage = 0;
PokemonMove move = new PokemonMove(PokemonType.T_FIGHTING, 0, 1.0, 1);
for (int i = 1; i < 4; ++i) {
move.setPower(i * 10);
damage += user.useMove(move, target);
}
user.getField().showMessage("Hit 3 time(s)!");
return damage;
}
}
));
m_moves.add(new MoveListEntry("Razor Wind", new StatusMove(
PokemonType.T_FLYING, 0, 1.0, 10, new StatusEffect[] {
new ChargeEffect(1, "created a whirlwind!", new MoveListEntry(
"Razor Wind",
new HighCriticalHitMove(
PokemonType.T_FLYING, 80, 1.0, 10
)
)
)
},
new boolean[] { true },
new double[] { 1.0 }
) {
public boolean isAttack() {
return true;
}
public boolean isDamaging() {
return true;
}
}
));
m_moves.add(new MoveListEntry("Skull Bash", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 15, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_DEFENCE, true, 1),
new ChargeEffect(1, "lowered its head!", new MoveListEntry(
"Skull Bash",
new PokemonMove(
PokemonType.T_NORMAL, 100, 1.0, 15
)
)
)
},
new boolean[] { true, true },
new double[] { 1.0, 1.0 }
) {
public boolean isAttack() {
return true;
}
public boolean isDamaging() {
return true;
}
}
));
m_moves.add(new MoveListEntry("Sky Attack", new StatusMove(
PokemonType.T_FLYING, 0, 1.0, 5, new StatusEffect[] {
new ChargeEffect(1, "is glowing!", new MoveListEntry(
"Sky Attack",
new PokemonMove(
PokemonType.T_FLYING, 140, 0.9, 5
)
)
)
},
new boolean[] { true },
new double[] { 1.0 }
) {
public boolean isAttack() {
return true;
}
public boolean isDamaging() {
return true;
}
}
));
m_moves.add(new MoveListEntry("Pay Day",
new PokemonMove(PokemonType.T_NORMAL, 40, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
user.getField().showMessage("Coins scattered everywhere!");
return super.use(mech, user, target);
}
}
));
m_moves.add(new MoveListEntry("Present",
new PokemonMove(PokemonType.T_NORMAL, 0, 0.9, 15) {
public boolean isAttack() {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
double random = mech.getRandom().nextDouble();
int power;
if (random <= 0.4) {
power = 40;
} else if (random <= 0.7) {
power = 80;
} else if (random <= 0.8) {
power = 120;
} else {
double maximum = (double)target.getStat(Pokemon.S_HP);
int restore = (int)(maximum * 0.2);
target.changeHealth(restore);
return restore;
}
setPower(power);
int damage = mech.calculateDamage(this, user, target);
setPower(0);
target.changeHealth(-damage);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Dream Eater",
new AbsorbMove(PokemonType.T_PSYCHIC, 100, 1.0, 15, 0.5) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (target.hasEffect(SleepEffect.class) && !target.hasSubstitute()) {
return super.use(mech, user, target);
}
user.getField().showMessage("But it failed!");
return 0;
}
}
));
m_moves.add(new MoveListEntry("Haze",
new PokemonMove(PokemonType.T_ICE, 0, 1.0, 30) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
user.removeStatus(StatChangeEffect.class);
target.removeStatus(StatChangeEffect.class);
return 0;
}
}
));
PokemonMove foresight = new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 40) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
List<StatusEffect> statuses = target.getNormalStatuses(0);
Iterator<StatusEffect> i = statuses.iterator();
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);
}
}
statuses = user.getNormalStatuses(0);
i = statuses.iterator();
while (i.hasNext()) {
StatusEffect effect = (StatusEffect)i.next();
if (!(effect instanceof StatChangeEffect)) continue;
StatChangeEffect eff = (StatChangeEffect)effect;
if (eff.getStat() == Pokemon.S_ACCURACY) {
user.removeStatus(eff);
}
}
user.getAccuracy().setSecondaryMultiplier(1);
target.getEvasion().setSecondaryMultiplier(1);
return 0;
}
};
m_moves.add(new MoveListEntry("Foresight", (PokemonMove)foresight.clone()));
m_moves.add(new MoveListEntry("Odor Sleuth", (PokemonMove)foresight.clone()));
m_moves.add(new MoveListEntry("Fissure",
new OneHitKillMove(PokemonType.T_GROUND, 5)));
m_moves.add(new MoveListEntry("Horn Drill",
new OneHitKillMove(PokemonType.T_NORMAL, 5)));
m_moves.add(new MoveListEntry("Guillotine",
new OneHitKillMove(PokemonType.T_NORMAL, 5)));
m_moves.add(new MoveListEntry("Sheer Cold",
new OneHitKillMove(PokemonType.T_ICE, 5)));
m_moves.add(new MoveListEntry("Memento",
new StatusMove(PokemonType.T_DARK, 0, 1.0, 10, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_ATTACK, false, 2),
new StatChangeEffect(Pokemon.S_SPATTACK, false, 2)
},
new boolean[] { false, false },
new double[] { 1.0, 1.0 }
) {
public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target) {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (mech.attemptHit(this, user, target)) {
super.use(mech, user, target);
}
user.faint();
return 0;
}
}
));
PokemonMove explosion = new PokemonMove(PokemonType.T_NORMAL, 250, 1.0, 5) {
public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target) {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (target.hasAbility("Damp")) {
user.getField().showMessage(target.getName() + "'s Damp prevents explosions!");
return 0;
}
int damage = 0;
if (target.hasEffect(ProtectEffect.class)) {
List<StatusEffect> list = target.getNormalStatuses(0);
Iterator<StatusEffect> i = list.iterator();
while (i.hasNext()) {
Object o = i.next();
if (o instanceof ProtectEffect) {
ProtectEffect eff = (ProtectEffect)o;
user.getField().showMessage(target.getName() + eff.getDescription());
break;
}
}
} else if (mech.attemptHit(this, user, target)) {
StatMultiplier mul = target.getMultiplier(Pokemon.S_DEFENCE);
double value = mul.getSecondaryMultiplier();
mul.setSecondaryMultiplier(value / 2.0);
damage = mech.calculateDamage(this, user, target);
mul.setSecondaryMultiplier(value);
target.changeHealth(-damage);
}
user.faint();
return damage;
}
};
PokemonMove selfDestruct = (PokemonMove)explosion.clone();
selfDestruct.setPower(200);
m_moves.add(new MoveListEntry("Selfdestruct", selfDestruct));
m_moves.add(new MoveListEntry("Explosion", explosion));
m_moves.add(new MoveListEntry("Nightmare",
new StatusMove(PokemonType.T_GHOST, 0, 1.0, 15, new StatusEffect[] {
new StatusEffect() {
public String getName() {
return "Nightmare";
}
public boolean apply(Pokemon p) {
if (!p.hasEffect(SleepEffect.class)) {
p.getField().showMessage("But it failed!");
return false;
}
return true;
}
public String getDescription() {
return " fell into a nightmare!";
}
public int getTier() {
return 4;
}
public boolean tick(Pokemon p) {
if (!p.hasEffect(SleepEffect.class)) {
p.removeStatus(this);
return true;
}
double maximum = (double)p.getStat(Pokemon.S_HP);
int loss = (int)(maximum / 4.0);
if (loss < 1) loss = 1;
p.getField().showMessage(p.getName() + " is having a nightmare!");
p.changeHealth(-loss);
return false;
}
}
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Snore",
new PokemonMove(PokemonType.T_NORMAL, 40, 1.0, 15) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (!user.hasEffect(SleepEffect.class)) {
user.getField().showMessage("But it failed!");
return 0;
}
int damage = mech.calculateDamage(this, user, target);
target.changeHealth(-damage);
return damage;
}
public Class<?> getStatusException() {
return SleepEffect.class;
}
}
));
m_moves.add(new MoveListEntry("Sleep Talk",
new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (!user.hasEffect(SleepEffect.class)) {
user.getField().showMessage("But it failed!");
return 0;
}
Random random = mech.getRandom();
MoveListEntry move;
boolean hasOtherMoves = false;
for (int i = 0; i < 4; ++i) {
if ((move = user.getMove(i)) != null) {
if (!move.getName().equals("Sleep Talk")) {
hasOtherMoves = true;
break;
}
}
}
if (!hasOtherMoves) {
user.getField().showMessage("But it failed!");
return 0;
}
String name = null;
do {
move = user.getMove(random.nextInt(4));
if (move != null) {
if ((name = move.getName()) == null)
continue;
} else {
continue;
}
} while (name.equals("Sleep Talk"));
if (name.equals("Focus Punch")) {
user.getField().showMessage("But it failed!");
return 0;
}
return user.useMove(move, target);
}
public Class<?> getStatusException() {
return SleepEffect.class;
}
}
));
m_moves.add(new MoveListEntry("Hidden Power", new HiddenPowerMove()));
m_moves.add(new MoveListEntry("Endeavor",
new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 5) {
public boolean isAttack() {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (getEffectiveness(user, target) == 0.0) {
user.getField().showMessage("It doesn't affect "
+ target.getName() + "...");
return 0;
}
if (user.getHealth() >= target.getHealth()) {
user.getField().showMessage("But it failed!");
return 0;
}
int damage = target.getHealth() - user.getHealth();
target.changeHealth(-damage);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Pain Split",
new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (target.hasSubstitute()) {
user.getField().showMessage("But it failed!");
return 0;
}
final int userHp = user.getHealth();
final int targetHp = target.getHealth();
final int newHealth = (userHp + targetHp) / 2;
user.changeHealth(newHealth - userHp, true);
target.changeHealth(newHealth - targetHp, true);
return 0;
}
}
));
m_moves.add(new MoveListEntry("Super Fang",
new PokemonMove(PokemonType.T_NORMAL, 0, 0.9, 10) {
public boolean isAttack() {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int damage = target.getHealth() / 2;
if (damage == 0) damage = 1;
target.changeHealth(-damage);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Extremespeed",
new PriorityMove(PokemonType.T_NORMAL, 80, 1.0, 5, 1)));
m_moves.add(new MoveListEntry("Mach Punch",
new PriorityMove(PokemonType.T_FIGHTING, 40, 1.0, 30, 1)));
m_moves.add(new MoveListEntry("Quick Attack",
new PriorityMove(PokemonType.T_NORMAL, 40, 1.0, 30, 1)));
m_moves.add(new MoveListEntry("Vital Throw",
new PerfectAccuracyMove(PokemonType.T_FIGHTING, 70, 10) {
public int getPriority() {
return -1;
}
}
));
m_moves.add(new MoveListEntry("Leech Seed", new StatusMove(
PokemonType.T_GRASS, 0, 0.9, 10, new StatusEffect[] {
new LeechSeedEffect()
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Metronome", new PokemonMove(
PokemonType.T_NORMAL, 0, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
ArrayList<MoveListEntry> moves = getMoveList();
int size = moves.size();
Random random = mech.getRandom();
MoveListEntry entry;
do {
entry = (MoveListEntry)moves.get(random.nextInt(size));
String name = entry.getName();
if (name.equals("Focus Punch") || (name.equals("Metronome"))) continue;
} while (false);
return user.useMove(entry, target);
}
public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target) {
return true;
}
}
));
m_moves.add(new MoveListEntry("Perish Song", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 5, new StatusEffect[] {
new PerishSongEffect(true),
new PerishSongEffect(true)
},
new boolean[] { true, false },
new double[] { 1.0, 1.0 }
) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
user.getField().showMessage("Both Pokemon will faint in 3 turn(s)");
return super.use(mech, user, target);
}
}
));
m_moves.add(new MoveListEntry("Beat Up",
new PokemonMove(PokemonType.T_NORMAL, 10, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
Pokemon[] team = user.getTeammates();
final int baseDefence = target.getBase(Pokemon.S_DEFENCE);
final int power = getPower();
int totalDamage = 0;
for (int i = 0; i < team.length; ++i) {
Pokemon pokemon = team[i];
if (pokemon.isFainted() || pokemon.hasEffect(StatusEffect.SPECIAL_EFFECT_LOCK)) {
continue;
}
final int baseAttack = pokemon.getBase(Pokemon.S_ATTACK);
boolean stab = pokemon.isType(getType());
int damage = (int)(((int)((int)(((int)((2 * pokemon.getLevel()) / 5.0 + 2.0)
* baseAttack
* power)
/ baseDefence)
/ 50.0)
+ 2)
* (stab ? 1.5 : 1.0));
user.getField().showMessage(pokemon.getName() + "'s attack!");
target.changeHealth(-damage);
totalDamage += damage;
}
return totalDamage;
}
}
));
m_moves.add(new MoveListEntry("Curse",
new PokemonMove(PokemonType.T_TYPELESS, 0, 1.0, 10) {
public boolean attemptHit(BattleMechanics mech, Pokemon source, Pokemon target) {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (user.isType(PokemonType.T_GHOST)) {
user.addStatus(user, new PercentEffect(-0.5, false, -1, null));
target.addStatus(user, new PercentEffect(-0.25, false, 3, " is afflicted by the curse!"));
user.getField().showMessage(user.getName() + " cut its health"
+ " and laid a curse on " + target.getName() + "!");
} else {
user.addStatus(user, new StatChangeEffect(Pokemon.S_SPEED, false, 1));
user.addStatus(user, new StatChangeEffect(Pokemon.S_ATTACK, true, 1));
user.addStatus(user, new StatChangeEffect(Pokemon.S_DEFENCE, true, 1));
}
return 0;
}
}
));
m_moves.add(new MoveListEntry("Conversion", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 30, new StatusEffect[] {
new StatusEffect() {
private PokemonType[] m_types;
public String getName() {
return "Conversion";
}
public String getDescription() {
return null;
}
public int getTier() {
return -1;
}
public boolean tick(Pokemon p) {
return false;
}
public boolean apply(Pokemon p) {
m_types = p.getTypes();
Random random = p.getField().getRandom();
PokemonType moveType = null;
MoveListEntry move;
boolean fail = true;
for (int i = 0; i < 4; ++i) {
move = p.getMove(i);
if ((move != null)
&& !move.getMove().getType().equals(PokemonType.T_TYPELESS)
&& !move.getName().equals("Conversion")) {
fail = false;
break;
}
}
if (fail) {
return false;
}
do {
move = p.getMove(random.nextInt(4));
if ((move == null) || move.getName().equals("Conversion")) {
continue;
}
moveType = move.getMove().getType();
} while ((moveType == null) || moveType.equals(PokemonType.T_TYPELESS));
p.setType(new PokemonType[] { moveType });
p.getField().showMessage(p.getName() + " became the "
+ moveType + " type!");
return true;
}
public void unapply(Pokemon p) {
p.setType(m_types);
}
public boolean switchOut(Pokemon p) {
p.setType(m_types);
return true;
}
}
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Mud Sport", new TypeCutMove(
PokemonType.T_GROUND, 15, PokemonType.T_ELECTRIC, "Mud Sport"
)));
m_moves.add(new MoveListEntry("Water Sport", new TypeCutMove(
PokemonType.T_GROUND, 15, PokemonType.T_FIRE, "Water Sport"
)));
PokemonMove thief = new PokemonMove(PokemonType.T_DARK, 40, 1.0, 40) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (target.hasSubstitute()) {
return super.use(mech, user, target);
}
HoldItem enemyItem = target.getItem();
if ((enemyItem != null) && (user.getItem() == null) && !(target.hasAbility("Sticky Hold"))) {
user.setItem(enemyItem);
target.setItem(null);
user.getField().showMessage(user.getName() + " stole " + target.getName()
+ "'s " + enemyItem.getName() + "!");
} else if (target.hasAbility("Sticky Hold")) {
user.getField().showMessage(target.getName() + " held on with its Sticky Hold!");
}
return super.use(mech, user, target);
}
};
PokemonMove covet = (PokemonMove)thief.clone();
covet.setType(PokemonType.T_NORMAL);
m_moves.add(new MoveListEntry("Thief", thief));
m_moves.add(new MoveListEntry("Covet", covet));
m_moves.add(new MoveListEntry("Knock Off",
new PokemonMove(PokemonType.T_DARK, 20, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (target.hasSubstitute()) {
return super.use(mech, user, target);
}
HoldItem item = target.getItem();
if ((item != null) && !(target.hasAbility("Sticky Hold"))) {
target.setItem(null);
user.getField().showMessage(user.getName() + " knocked off foe "
+ target.getName() + "'s " + item.getName() + "!");
} else if (target.hasAbility("Sticky Hold")) {
user.getField().showMessage(target.getName() + " hung on with its Sticky Hold!");
}
return super.use(mech, user, target);
}
}
));
m_moves.add(new MoveListEntry("Trick",
new PokemonMove(PokemonType.T_PSYCHIC, 0, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (target.hasSubstitute()) {
user.getField().showMessage("But it failed!");
return 0;
}
if ((target.hasAbility("Sticky Hold")) || (user.hasAbility("Sticky Hold"))) {
if (user.hasAbility("Sticky Hold")) {
user.getField().showMessage(user.getName() + " hung on with its Sticky Hold!");
}
if (target.hasAbility("Sticky Hold")) {
user.getField().showMessage(target.getName() + " hung on with its Sticky Hold!");
}
return 0;
}
HoldItem targetItem = target.getItem();
HoldItem item = user.getItem();
/**if (item == null) {
user.getField().showMessage("But it failed!");
return 0;
}**/
HoldItem userItem = (item == null) ? null : (HoldItem)item.clone();
user.setItem(targetItem);
target.setItem(userItem);
if (targetItem != null) {
user.getField().showMessage(user.getName() + " obtained " + targetItem.getName() + "!");
}
if (userItem != null) {
user.getField().showMessage(target.getName() + " obtained " + userItem.getName() + "!");
}
return 0;
}
public boolean isAttack() {
return true;
}
public boolean isDamaging() {
return false;
}
}
));
m_moves.add(new MoveListEntry("Dig", new StatusMove(
PokemonType.T_GROUND, 0, 1.0, 10, new StatusEffect[] {
new InvulnerableStateEffect(new String[] { "Earthquake", "Fissure", "Magnitude" } ),
new ChargeEffect(1, "dug a hole!", new MoveListEntry(
"Dig",
new PokemonMove(
PokemonType.T_GROUND, 60, 1.0, 10
) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
setPower(mech instanceof JewelMechanics ? 80 : 60);
return super.use(mech, user, target);
}
}
)
)
},
new boolean[] { true, true },
new double[] { 1.0, 1.0 }
) {
public boolean isAttack() {
return true;
}
public boolean isDamaging() {
return true;
}
}
));
m_moves.add(new MoveListEntry("Fly", new StatusMove(
PokemonType.T_FLYING, 0, 0.95, 15, new StatusEffect[] {
new InvulnerableStateEffect(new String[] { "Thunder", "Twister", "Gust", "Sky Uppercut" } ),
new ChargeEffect(1, "flew up high!", new MoveListEntry(
"Fly",
new PokemonMove(
PokemonType.T_FLYING, 70, 0.95, 15
)
)
)
},
new boolean[] { true, true },
new double[] { 1.0, 1.0 }
) {
public boolean isAttack() {
return true;
}
public boolean isDamaging() {
return true;
}
}
));
m_moves.add(new MoveListEntry("Dive", new StatusMove(
PokemonType.T_WATER, 0, 1.0, 10, new StatusEffect[] {
new InvulnerableStateEffect(new String[] { "Surf" } ),
new ChargeEffect(1, "dove underwater!", new MoveListEntry(
"Dive",
new PokemonMove(
PokemonType.T_WATER, 60, 1.0, 10
)
)
)
},
new boolean[] { true, true },
new double[] { 1.0, 1.0 }
) {
public boolean isAttack() {
return true;
}
public boolean isDamaging() {
return true;
}
}
));
m_moves.add(new MoveListEntry("Bounce", new StatusMove(
PokemonType.T_FLYING, 0, 0.85, 5, new StatusEffect[] {
new InvulnerableStateEffect(new String[0]),
new ChargeEffect(1, "bounced up!", new MoveListEntry(
"Bounce",
new StatusMove(
PokemonType.T_FLYING, 85, 0.85, 5, new StatusEffect[] {
new ParalysisEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)
)
)
},
new boolean[] { true, true },
new double[] { 1.0, 1.0 }
) {
public boolean isAttack() {
return true;
}
public boolean isDamaging() {
return true;
}
}
));
m_moves.add(new MoveListEntry("Ingrain", new StatusMove(
PokemonType.T_GRASS, 0, 1.0, 20, new StatusEffect[] {
new IngrainEffect()
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Magnitude",
new PokemonMove(PokemonType.T_GROUND, 0, 1.0, 30) {
public boolean isAttack() {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
double chance = mech.getRandom().nextDouble();
int power;
int magnitude;
if (chance <= 0.05) {
power = 10;
magnitude = 4;
} else if (chance <= 0.15) {
power = 30;
magnitude = 5;
} else if (chance <= 0.35) {
power = 50;
magnitude = 6;
} else if (chance <= 0.65) {
power = 70;
magnitude = 7;
} else if (chance <= 0.85) {
power = 90;
magnitude = 8;
} else if (chance <= 0.95) {
power = 110;
magnitude = 9;
} else {
power = 150;
magnitude = 10;
}
user.getField().showMessage("Magnitude " + magnitude + "!");
setPower(power);
int damage = mech.calculateDamage(this, user, target);
setPower(0);
target.changeHealth(-damage);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Bind", new StatusMove(
PokemonType.T_NORMAL, 15, 0.75, 20, new StatusEffect[] {
new RestrainingEffect("Bind", "bound")
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Clamp", new StatusMove(
PokemonType.T_WATER, 35, 0.75, 10, new StatusEffect[] {
new RestrainingEffect("Clamp", "clamped")
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Fire Spin", new StatusMove(
PokemonType.T_FIRE, 15, 0.70, 15, new StatusEffect[] {
new RestrainingEffect("Fire Spin", "trapped in a vortex")
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Sand Tomb", new StatusMove(
PokemonType.T_GROUND, 15, 0.70, 10, new StatusEffect[] {
new RestrainingEffect("Sand Tomb", "trapped in a vortex")
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Whirlpool", new StatusMove(
PokemonType.T_WATER, 15, 0.70, 15, new StatusEffect[] {
new RestrainingEffect("Whirlpool", "trapped in a vortex")
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Wrap", new StatusMove(
PokemonType.T_NORMAL, 15, 0.85, 20, new StatusEffect[] {
new RestrainingEffect("Wrap", "wrapped")
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Block", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 5, new StatusEffect[] {
new TrappingEffect("Block")
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Mean Look", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 5, new StatusEffect[] {
new TrappingEffect("Mean Look")
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Spider Web", new StatusMove(
PokemonType.T_BUG, 0, 1.0, 5, new StatusEffect[] {
new TrappingEffect("Spider Web")
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Yawn", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 10, new StatusEffect[] {
new StatusEffect() {
private int m_turns = 1;
public String getName() {
return "Yawn";
}
public String getDescription() {
return " became drowsy!";
}
public int getTier() {
return 5;
}
public boolean hitsThroughSubstitute() {
return false;
}
public boolean isPassable() {
/** According to the smogon research thread,
* this is not passed. This was also confirmed
* was an additional in game test.
*/
return false;
}
public boolean tick(Pokemon p) {
if (m_turns-- <= 0) {
p.addStatus(p.getOpponent(), new SleepEffect() {
public boolean hitsThroughSubstitute() {
return true;
}
});
p.removeStatus(this);
return false;
}
return true;
}
}
},
new boolean[] { false },
new double[] { 1.0 }
) {
public boolean attemptHit(BattleMechanics mech, Pokemon source, Pokemon target) {
return true;
}
}));
m_moves.add(new MoveListEntry("Skill Swap",
new PokemonMove(PokemonType.T_PSYCHIC, 0, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
IntrinsicAbility userAbility = (IntrinsicAbility)user.getAbility().clone();
IntrinsicAbility targetAbility = target.getAbility();
if (!userAbility.isSwappable() || !targetAbility.isSwappable()) {
user.getField().showMessage("But it failed!");
return 0;
}
user.setAbility(targetAbility, false);
target.setAbility(userAbility, false);
user.getField().showMessage(user.getName() + " swapped abilities with its opponent!");
return 0;
}
}
));
m_moves.add(new MoveListEntry("Role Play",
new PokemonMove(PokemonType.T_PSYCHIC, 0, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
IntrinsicAbility abl = target.getAbility();
if (!abl.isSwappable()) {
user.getField().showMessage("But it failed!");
return 0;
}
user.setAbility(abl, false);
user.getField().showMessage(user.getName() + " copied its opponent's ability!");
return 0;
}
}
));
m_moves.add(new MoveListEntry("Psych Up",
new PokemonMove(PokemonType.T_PSYCHIC, 0, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
user.removeStatus(StatChangeEffect.class);
List<?> statuses = target.getNormalStatuses(0);
Iterator<?> i = statuses.iterator();
while (i.hasNext()) {
StatusEffect effect = (StatusEffect)i.next();
if (effect instanceof StatChangeEffect) {
StatChangeEffect effectClone = (StatChangeEffect)effect.clone();
effectClone.setDescription(null);
// TODO: Open question: does Clear Body protect
// against lowering stats by using this move?
user.addStatus(target, effectClone);
}
}
user.getField().showMessage(user.getName() + " copied the opponent's stat changes!");
return 0;
}
}
));
m_moves.add(new MoveListEntry("Hyper Beam", new StatusMove(
PokemonType.T_NORMAL, 150, 0.9, 5, new StatusEffect[] {
new RechargeEffect(1)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Frenzy Plant", new StatusMove(
PokemonType.T_GRASS, 150, 0.9, 5, new StatusEffect[] {
new RechargeEffect(1)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Blast Burn", new StatusMove(
PokemonType.T_FIRE, 150, 0.9, 5, new StatusEffect[] {
new RechargeEffect(1)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Hydro Cannon", new StatusMove(
PokemonType.T_WATER, 150, 0.9, 5, new StatusEffect[] {
new RechargeEffect(1)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Spikes",
new PokemonMove(PokemonType.T_GROUND, 0, 1.0, 20) {
public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target) {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
BattleField field = user.getField();
SpikesEffect spikes = SpikesEffect.getSpikes(field, SpikesEffect.class);
if (spikes == null) {
spikes = new SpikesEffect();
field.applyEffect(spikes);
}
spikes.addSpikes(target);
return 0;
}
}
));
m_moves.add(new MoveListEntry("Rapid Spin",
new PokemonMove(PokemonType.T_NORMAL, 20, 1.0, 40) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (getEffectiveness(user, target) == 0.0) {
user.getField().showMessage("It doesn't affect "
+ target.getName() + "...");
return 0;
}
if (user.hasEffect(RestrainingEffect.class) || user.hasEffect(LeechSeedEffect.class)) {
user.removeStatus(RestrainingEffect.class);
user.removeStatus(LeechSeedEffect.class);
user.getField().showMessage(user.getName() + " was released!");
}
ArrayList<FieldEffect> spikes = user.getField().getEffectsByType(SpikesEffect.class);
Iterator<FieldEffect> i = spikes.iterator();
boolean blewAway = false;
while (i.hasNext()) {
SpikesEffect eff = (SpikesEffect)i.next();
if (eff != null && eff.getLayers(user) >= 1) {
eff.removeSpikes(user);
blewAway = true;
}
}
if (blewAway) {
user.getField().showMessage(user.getName() + " blew away the spikes!");
}
return super.use(mech, user, target);
}
}
));
m_moves.add(new MoveListEntry("Charge", new StatusMove(
PokemonType.T_ELECTRIC, 0, 1.0, 20, new StatusEffect[] {
new StatusEffect() {
private int m_turns = 2;
public String getName() {
return "Charge";
}
public boolean apply(Pokemon p) {
if (p.getField().getMechanics() instanceof JewelMechanics) {
p.addStatus(p, new StatChangeEffect(Pokemon.S_SPDEFENCE, true, 1));
}
return true;
}
//tier is not very important
public int getTier() {
return 1;
}
public String getDescription() {
return " is charging power!";
}
public boolean tick(Pokemon p) {
if (--m_turns <= 0) {
p.removeStatus(this);
return true;
}
return false;
}
public boolean isMoveTransformer(boolean enemy) {
return !enemy;
}
public MoveListEntry getTransformedMove(Pokemon p, MoveListEntry entry) {
PokemonMove move = entry.getMove();
if (move.getType().equals(PokemonType.T_ELECTRIC)) {
int power = move.getPower();
move.setPower(power * 2);
}
return entry;
}
}
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Rest",
new PokemonMove(PokemonType.T_PSYCHIC, 0, 1.0, 10) {
public boolean attemptHit(BattleMechanics mech, Pokemon source, Pokemon target) {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (user.hasAbility("Insomnia")
|| user.hasAbility("Vital Spirit")
|| user.hasEffect(SleepEffect.class)
|| (user.getHealth() == user.getStat(Pokemon.S_HP))) {
user.getField().showMessage("But it failed!");
return 0;
}
user.removeStatus(StatusEffect.SPECIAL_EFFECT_LOCK);
// The turn it is applied still counts as a turn
user.addStatus(user, new SleepEffect(3));
int change = user.getStat(Pokemon.S_HP) - user.getHealth();
user.changeHealth(change);
return 0;
}
}
));
m_moves.add(new MoveListEntry("Reflect",
new PokemonMove(PokemonType.T_PSYCHIC, 0, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (!user.getField().applyEffect(new StatCutEffect(Pokemon.S_DEFENCE,
user.getParty(), "reflect"))) {
user.getField().showMessage("But it failed!");
}
return 0;
}
public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target) {
return true;
}
}
));
m_moves.add(new MoveListEntry("Light Screen",
new PokemonMove(PokemonType.T_PSYCHIC, 0, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (!user.getField().applyEffect(new StatCutEffect(Pokemon.S_SPDEFENCE,
user.getParty(), "light screen"))) {
user.getField().showMessage("But it failed!");
}
return 0;
}
public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target) {
return true;
}
}
));
m_moves.add(new MoveListEntry("Brick Break",
new PokemonMove(PokemonType.T_FIGHTING, 75, 1.0, 15) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
ArrayList<FieldEffect> effects = user.getField().getEffectsByType(StatCutEffect.class);
Iterator<FieldEffect> i = effects.iterator();
while (i.hasNext()) {
StatCutEffect eff = (StatCutEffect)i.next();
if (eff.getParty() == target.getParty()) {
user.getField().removeEffect(eff);
user.getField().showMessage("The wall shattered!");
}
}
return super.use(mech, user, target);
}
}
));
m_moves.add(new MoveListEntry("Camouflage", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 20, new StatusEffect[] {
new StatusEffect() {
private PokemonType[] types;
public String getName() {
return "Camouflage";
}
public String getDescription() {
return null;
}
public int getTier() {
return -1;
}
public boolean tick(Pokemon p) {
return false;
}
public boolean apply(Pokemon p) {
types = p.getTypes();
//todo: this should be based on the terrain but it isn't implemented yet
PokemonType type = PokemonType.T_NORMAL;
p.setType(new PokemonType[] { type });
p.getField().showMessage(p.getName() + " became the "
+ type + " type!");
return true;
}
public boolean switchOut(Pokemon p) {
p.setType(types);
return true;
}
}
},
new boolean[] { true },
new double[] { 1.0 }
) {
public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target) {
return true;
}
}));
m_moves.add(new MoveListEntry("Nature Power",
new PokemonMove(PokemonType.T_NORMAL, 0, 0.95, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
//todo: this should also be based on terrain
if (mech instanceof JewelMechanics) {
return user.useMove(getMove("Swift"), target);
} else {
return user.useMove(getMove("Tri Attack"), target);
}
}
public boolean isAttack() {
return false;
}
}
));
m_moves.add(new MoveListEntry("Secret Power",
new PokemonMove(PokemonType.T_NORMAL, 70, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int damage = mech.calculateDamage(this, user, target);
target.changeHealth(-damage);
double random = mech.getRandom().nextDouble();
//todo: this should also be based on terrain
if (random <= 0.3) {
target.addStatus(user, new ParalysisEffect());
}
return damage;
}
}
));
//Doesn't do anything in 1 vs 1
m_moves.add(new MoveListEntry("Follow Me",
new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
user.getField().showMessage(user.getName() + " became the centre of attention!");
return 0;
}
public int getPriority() {
return 4;
}
}
));
//Doesn't do anything in 1 vs 1
m_moves.add(new MoveListEntry("Helping Hand",
new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
user.getField().showMessage("But it failed!");
return 0;
}
public int getPriority() {
return 6;
}
}
));
m_moves.add(new MoveListEntry("Doom Desire",
new PokemonMove(PokemonType.T_STEEL, 120, 0.85, 5) {
public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target) {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int damage;
if (!super.attemptHit(mech, user, target)) {
damage = 0;
} else {
PokemonMove move = new PokemonMove(PokemonType.T_TYPELESS, this.getPower(), 1.0, 1);
move.setMoveListEntry(getMoveListEntry());
damage = mech.calculateDamage(move, user, target);
}
user.getField().applyEffect(
new DelayedDamageEffect(damage, target.getParty(), 3));
return 0;
}
}
));
m_moves.add(new MoveListEntry("Future Sight",
new PokemonMove(PokemonType.T_PSYCHIC, 80, 0.9, 15) {
public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target) {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int damage;
if (!super.attemptHit(mech, user, target)) {
damage = 0;
} else {
damage = mech.calculateDamage(
new PokemonMove(PokemonType.T_TYPELESS, this.getPower(), 1.0, 1), user, target);
}
user.getField().applyEffect(
new DelayedDamageEffect(damage, target.getParty(), 3));
return 0;
}
}
));
m_moves.add(new MoveListEntry("Focus Punch",
new DamageListenerMove(PokemonType.T_FIGHTING, 150, 1.0, 20) {
public void beginTurn(BattleTurn[] turn, int index, Pokemon source) {
if (!source.hasEffect(SleepEffect.class) && !source.hasEffect(FreezeEffect.class)) {
source.getField().showMessage(source.getName() + " is tightening its focus!");
}
super.beginTurn(turn, index, source);
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
DamageListenerEffect listener = getListener(user);
if (listener == null) return 0;
if (listener.getDamage() > 0) {
user.getField().showMessage(user.getName() + " lost its focus and couldn't move!");
return 0;
}
return super.use(mech, user, target);
}
public int getPriority() {
return -2;
}
}
));
m_moves.add(new MoveListEntry("Low Kick",
new MassBasedMove(PokemonType.T_FIGHTING, 1.0, 20)));
m_moves.add(new MoveListEntry("Baton Pass",
new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 40) {
@SuppressWarnings("unchecked")
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
BattleField field = user.getField();
int party = user.getParty();
if (field.getAliveCount(party) == 1) {
user.getField().showMessage("But it failed!");
return 0;
}
List<StatusEffect> list = user.getNormalStatuses(0);
List applied = new ArrayList();
Iterator<StatusEffect> i = list.iterator();
while (i.hasNext()) {
StatusEffect effect = (StatusEffect)i.next();
if (effect.getLock() != StatusEffect.SPECIAL_EFFECT_LOCK) {
if (effect.isPassable()) {
if (effect instanceof LeechSeedEffect) {
applied.add(new LeechSeedEffect(false));
} else if (effect instanceof PerishSongEffect) {
applied.add(new PerishSongEffect(false));
} else {
applied.add(effect.clone());
}
if (effect instanceof CoEffect) {
CoEffect coeffect = (CoEffect)effect;
if (!coeffect.getType().equals(AttractEffect.class)) {
effect.disable();
}
}
}
}
}
int substitute = user.getSubstitute();
field.requestAndWaitForSwitch(party);
target = field.getActivePokemon()[party];
target.setSubstitute(substitute);
i = applied.iterator();
field.setNarrationEnabled(false);
while (i.hasNext()) {
StatusEffect effect = (StatusEffect)i.next();
target.addStatus(target, effect);
}
field.setNarrationEnabled(true);
return 0;
}
public boolean attemptHit(BattleMechanics mech, Pokemon source, Pokemon target) {
return true;
}
}));
PokemonMove roar = new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (target.hasAbility("Suction Cups") || target.hasEffect(IngrainEffect.class)) {
user.getField().showMessage("But it failed!");
return 0;
}
if (target.isFainted())
return 0;
ArrayList<Pokemon> party = new ArrayList<Pokemon>(Arrays.asList(target.getTeammates()));
Iterator<Pokemon> i = party.iterator();
while (i.hasNext()) {
Pokemon p = (Pokemon)i.next();
if (p == null || p.isFainted() || (p == target)) {
i.remove();
}
}
if (party.size() == 0) {
user.getField().showMessage("But it failed!");
return 0;
}
Pokemon p = (Pokemon)party.get(mech.getRandom().nextInt(party.size()));
p.getField().switchInPokemon(p.getParty(), p.getId());
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;
}
public MoveListEntry getTransformedMove(Pokemon p, MoveListEntry entry) {
return null;
}
public String getDescription() {
return null;
}
public String getName() {
return null;
}
});
return 0;
}
public int getPriority() {
return -5;
}
};
PokemonMove whirlwind = (PokemonMove)roar.clone();
m_moves.add(new MoveListEntry("Roar", roar));
m_moves.add(new MoveListEntry("Whirlwind", whirlwind));
m_moves.add(new MoveListEntry("Wish",
new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
user.getField().applyEffect(new DelayedStatusEffect(
new PercentEffect(0.5, false, -1, "The wish came true!"),
user.getParty(), 2, " made a wish!"));
return 0;
}
public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target) {
return true;
}
}
));
m_moves.add(new MoveListEntry("Counter",
new CounterMove(PokemonType.T_FIGHTING, 1.0, 20, 2)));
m_moves.add(new MoveListEntry("Mirror Coat",
new CounterMove(PokemonType.T_PSYCHIC, 1.0, 20, 1)));
m_moves.add(new MoveListEntry("Pursuit",
new PokemonMove(PokemonType.T_DARK, 40, 1.0, 20) {
public void beginTurn(BattleTurn[] turn, int index, Pokemon source) {
// Note: assumes two pokemon.
BattleTurn opp = turn[1 - index];
Pokemon target = source.getOpponent();
boolean damageNow = false;
if (!opp.isMoveTurn()) {
damageNow = true;
} else {
MoveListEntry entry = target.getMove(opp.getId());
if (entry.getName().equals("U-turn")) {
if (target.getStat(Pokemon.S_SPEED) > source.getStat(Pokemon.S_SPEED)) {
damageNow = true;
}
}
}
if (!damageNow)
return;
// Prevent this attack from occurring later in the turn.
turn[index] = null;
if (source.isImmobilised(null))
return;
int power = getPower();
setPower(power * 2);
source.useMove(new MoveListEntry("Pursuit", (PokemonMove)clone()), target);
setPower(power);
}
}
));
m_moves.add(new MoveListEntry("Revenge",
new DamageListenerMove(PokemonType.T_FIGHTING, 60, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
DamageListenerEffect listener = getListener(user);
if (listener == null) return 0;
if (listener.getDamage() <= 0) {
return super.use(mech, user, target);
}
int power = 60;
setPower(power * 2);
int damage = super.use(mech, user, target);
setPower(power);
return damage;
}
public int getPriority() {
return -3;
}
}
));
/********************************************************************
* DP moves start
********************************************************************/
m_moves.add(new MoveListEntry("U-turn",
new PokemonMove(PokemonType.T_BUG, 70, 1.0, 20) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int damage = mech.calculateDamage(this, user, target);
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);
if ((entry != null) && entry.getName().equals("U-turn")) {
((ChoiceBandItem)item).setChoice(target, mech, entry);
break;
}
}
}
}
return damage;
}
}));
m_moves.add(new MoveListEntry("Lunar Dance",
new PokemonMove(PokemonType.T_PSYCHIC, 0, 0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int party = user.getParty();
BattleField field = user.getField();
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) {
PokemonMove move = entry.getMove();
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;
}
}));
m_moves.add(new MoveListEntry("Worry Seed",
new PokemonMove(PokemonType.T_GRASS, 0, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (target.hasAbility("Multitype") || target.hasSubstitute()) {
user.getField().showMessage("But it failed!");
return 0;
}
target.setAbility(IntrinsicAbility.getInstance("Insomnia"), false);
return 0;
}
}
));
m_moves.add(new MoveListEntry("Psycho Shift",
new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (target.hasSubstitute()) {
user.getField().showMessage("But it failed!");
return 0;
}
StatusEffect eff = user.getEffect(StatusEffect.SPECIAL_EFFECT_LOCK);
if (eff == null)
return 0;
StatusEffect clone = (StatusEffect)eff.clone();
if (!target.hasEffect(StatusEffect.SPECIAL_EFFECT_LOCK)) {
user.removeStatus(eff);
target.addStatus(user, clone);
}
return 0;
}
}
));
m_moves.add(new MoveListEntry("Trick Room",
new PokemonMove(PokemonType.T_PSYCHIC, 0, 1.0, 5) {
public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target) {
return true;
}
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
BattleField field = user.getField();
FieldEffect effect = field.getEffectByType(SpeedSwapEffect.class);
if (effect != null) {
field.removeEffect(effect);
} else {
field.showMessage(user.getName() + " twisted the dimensions!");
field.applyEffect(new SpeedSwapEffect());
}
return 0;
}
public int getPriority() {
return -5;
}
}
));
m_moves.add(new MoveListEntry("Gyro Ball",
new PokemonMove(PokemonType.T_STEEL, 100, 1.0, 5) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int power = 51 * target.getStat(Pokemon.S_SPEED) /
user.getStat(Pokemon.S_SPEED) / 2;
if (power > 150) power = 150;
setPower(getPower() * power / 100);
int damage = mech.calculateDamage(this, user, target);
target.changeHealth(-damage);
setPower(100);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Wake-up Slap",
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);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Hammer Arm", new StatusMove(
PokemonType.T_FIGHTING, 100, 0.9, 10, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPEED, false)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Brine",
new PokemonMove(PokemonType.T_WATER, 65, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int power = getPower();
if (target.getHealth() < (target.getStat(Pokemon.S_HP) / 2)) {
setPower(power * 2);
}
int damage = super.use(mech, user, target);
setPower(power);
return damage;
}
}
));
m_moves.add(new MoveListEntry("Acupressure",
new PokemonMove(PokemonType.T_NORMAL, 0, 1.0, 30) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
int random = mech.getRandom().nextInt(7) + 1;
user.addStatus(user, new StatChangeEffect(random, true, 2));
return 0;
}
}
));
m_moves.add(new MoveListEntry("Close Combat", new StatusMove(
PokemonType.T_FIGHTING, 120, 1.0, 5, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_DEFENCE, false),
new StatChangeEffect(Pokemon.S_SPDEFENCE, false)
},
new boolean[] { true, true },
new double[] { 1.0, 1.0 }
)));
//todo: get right tier
m_moves.add(new MoveListEntry("Aqua Ring", new StatusMove(
PokemonType.T_WATER, 0, 1.0, 20, new StatusEffect[] {
new PercentEffect(0.0625, false, 3, "'s Aqua Ring restored health!") {
public boolean isSingleton() {
return true;
}
}
},
new boolean[] { true },
new double[] { 1.0 }
)));
//todo: find correct rate for all of these
m_moves.add(new MoveListEntry("Flare Blitz",
new RecoilMove(PokemonType.T_FIRE, 120, 1.0, 15, 1.0/3.0)));
m_moves.add(new MoveListEntry("Brave Bird",
new RecoilMove(PokemonType.T_FLYING, 120, 1.0, 15, 1.0/3.0)));
m_moves.add(new MoveListEntry("Wood Hammer",
new RecoilMove(PokemonType.T_GRASS, 120, 1.0, 15, 1.0/3.0)));
m_moves.add(new MoveListEntry("Head Smash",
new RecoilMove(PokemonType.T_ROCK, 150, 0.8, 5, 0.5)));
m_moves.add(new MoveListEntry("Force Palm", new StatusMove(
PokemonType.T_FIGHTING, 60, 1.0, 10, new StatusEffect[] {
new ParalysisEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Aura Sphere",
new PerfectAccuracyMove(PokemonType.T_FIGHTING, 90, 20)));
m_moves.add(new MoveListEntry("Magnet Bomb",
new PerfectAccuracyMove(PokemonType.T_STEEL, 60, 20)));
m_moves.add(new MoveListEntry("Rock Polish", new StatusMove(
PokemonType.T_ROCK, 0, 1.0, 30, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPEED, true, 2)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Poison Jab", new StatusMove(
PokemonType.T_POISON, 80, 1.0, 20, new StatusEffect[] {
new PoisonEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Dark Pulse", new StatusMove(
PokemonType.T_DARK, 80, 1.0, 15, new StatusEffect[] {
new FlinchEffect()
},
new boolean[] { false },
new double[] { 0.2 }
)));
m_moves.add(new MoveListEntry("Night Slash",
new HighCriticalHitMove(PokemonType.T_DARK, 70, 1.0, 15)));
m_moves.add(new MoveListEntry("Shadow Claw",
new HighCriticalHitMove(PokemonType.T_GHOST, 70, 1.0, 15)));
m_moves.add(new MoveListEntry("Psycho Cut",
new HighCriticalHitMove(PokemonType.T_PSYCHIC, 70, 1.0, 20)));
m_moves.add(new MoveListEntry("Stone Edge",
new HighCriticalHitMove(PokemonType.T_ROCK, 100, 0.8, 5)));
m_moves.add(new MoveListEntry("Attack Order",
new HighCriticalHitMove(PokemonType.T_BUG, 90, 1.0, 15)));
m_moves.add(new MoveListEntry("Spacial Rend",
new HighCriticalHitMove(PokemonType.T_DRAGON, 100, 0.95, 5)));
m_moves.add(new MoveListEntry("Aqua Tail",
new PokemonMove(PokemonType.T_WATER, 90, 0.9, 10)));
m_moves.add(new MoveListEntry("Seed Bomb",
new PokemonMove(PokemonType.T_GRASS, 80, 1.0, 15)));
m_moves.add(new MoveListEntry("X-Scissor",
new PokemonMove(PokemonType.T_BUG, 80, 1.0, 15)));
m_moves.add(new MoveListEntry("Dragon Pulse",
new PokemonMove(PokemonType.T_DRAGON, 90, 1.0, 10)));
m_moves.add(new MoveListEntry("Power Gem",
new PokemonMove(PokemonType.T_ROCK, 70, 1.0, 20)));
m_moves.add(new MoveListEntry("Power Whip",
new PokemonMove(PokemonType.T_GRASS, 120, 0.85, 10)));
m_moves.add(new MoveListEntry("Air Slash", new StatusMove(
PokemonType.T_FLYING, 75, 0.95, 20, new StatusEffect[] {
new FlinchEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Zen Headbutt", new StatusMove(
PokemonType.T_PSYCHIC, 80, 0.9, 15, new StatusEffect[] {
new FlinchEffect()
},
new boolean[] { false },
new double[] { 0.2 }
)));
m_moves.add(new MoveListEntry("Dragon Rush", new StatusMove(
PokemonType.T_DRAGON, 100, 0.75, 10, new StatusEffect[] {
new FlinchEffect()
},
new boolean[] { false },
new double[] { 0.2 }
)));
m_moves.add(new MoveListEntry("Iron Head", new StatusMove(
PokemonType.T_STEEL, 80, 1.0, 15, new StatusEffect[] {
new FlinchEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Bug Buzz", new StatusMove(
PokemonType.T_BUG, 90, 1.0, 10, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPDEFENCE, false)
},
new boolean[] { false },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Drain Punch",
new AbsorbMove(PokemonType.T_FIGHTING, 60, 1.0, 5, 0.5)));
m_moves.add(new MoveListEntry("Vacuum Wave",
new PriorityMove(PokemonType.T_FIGHTING, 40, 1.0, 30, 1)));
m_moves.add(new MoveListEntry("Bullet Punch",
new PriorityMove(PokemonType.T_STEEL, 40, 1.0, 30, 1)));
m_moves.add(new MoveListEntry("Ice Shard",
new PriorityMove(PokemonType.T_ICE, 40, 1.0, 30, 1)));
m_moves.add(new MoveListEntry("Shadow Sneak",
new PriorityMove(PokemonType.T_GHOST, 40, 1.0, 30, 1)));
m_moves.add(new MoveListEntry("Aqua Jet",
new PriorityMove(PokemonType.T_WATER, 40, 1.0, 30, 1)));
m_moves.add(new MoveListEntry("Focus Blast", new StatusMove(
PokemonType.T_FIGHTING, 120, 0.7, 5, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPDEFENCE, false)
},
new boolean[] { false },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Energy Ball", new StatusMove(
PokemonType.T_GRASS, 80, 1.0, 10, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPDEFENCE, false)
},
new boolean[] { false },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Earth Power", new StatusMove(
PokemonType.T_GROUND, 90, 1.0, 10, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPDEFENCE, false)
},
new boolean[] { false },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Mirror Shot", new StatusMove(
PokemonType.T_STEEL, 65, 0.85, 10, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_ACCURACY, false)
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Flash Cannon", new StatusMove(
PokemonType.T_STEEL, 80, 1.0, 10, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPATTACK, false)
},
new boolean[] { false },
new double[] { 0.1 }
)));
m_moves.add(new MoveListEntry("Rock Climb", new StatusMove(
PokemonType.T_NORMAL, 90, 0.85, 20, new StatusEffect[] {
new ConfuseEffect()
},
new boolean[] { false },
new double[] { 0.2 }
)));
m_moves.add(new MoveListEntry("Switcheroo",
new PokemonMove(PokemonType.T_DARK, 0, 1.0, 10) {
public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
if (target.hasSubstitute()) {
user.getField().showMessage("But it failed!");
return 0;
}
if ((target.hasAbility("Sticky Hold")) || (user.hasAbility("Sticky Hold"))) {
if (user.hasAbility("Sticky Hold")) {
user.getField().showMessage(user.getName() + " hung on with its Sticky Hold!");
}
if (target.hasAbility("Sticky Hold")) {
user.getField().showMessage(target.getName() + " hung on with its Sticky Hold!");
}
return 0;
}
HoldItem targetItem = target.getItem();
HoldItem item = user.getItem();
/**if (item == null) {
user.getField().showMessage("But it failed!");
return 0;
}**/
HoldItem userItem = (item == null) ? null : (HoldItem)item.clone();
user.setItem(targetItem);
target.setItem(userItem);
if (targetItem != null) {
user.getField().showMessage(user.getName() + " obtained " + targetItem.getName() + "!");
}
if (userItem != null) {
user.getField().showMessage(target.getName() + " obtained " + userItem.getName() + "!");
}
return 0;
}
public boolean isAttack() {
return true;
}
public boolean isDamaging() {
return false;
}
}
));
m_moves.add(new MoveListEntry("Giga Impact", new StatusMove(
PokemonType.T_NORMAL, 150, 0.9, 5, new StatusEffect[] {
new RechargeEffect(1)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Rock Wrecker", new StatusMove(
PokemonType.T_ROCK, 150, 0.9, 5, new StatusEffect[] {
new RechargeEffect(1)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Roar Of Time", new StatusMove(
PokemonType.T_DRAGON, 150, 0.9, 5, new StatusEffect[] {
new RechargeEffect(1)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Nasty Plot", new StatusMove(
PokemonType.T_DARK, 0, 1.0, 20, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPATTACK, true, 2)
},
new boolean[] { true },
new double[] { 1.0 }
)));
//todo: correct probabilities?
m_moves.add(new MoveListEntry("Thunder Fang", new StatusMove(
PokemonType.T_ELECTRIC, 65, 0.95, 15, new StatusEffect[] {
new FlinchEffect(),
new ParalysisEffect()
},
new boolean[] { false, false },
new double[] { 0.1, 0.1 }
)));
m_moves.add(new MoveListEntry("Ice Fang", new StatusMove(
PokemonType.T_ICE, 65, 0.95, 15, new StatusEffect[] {
new FlinchEffect(),
new FreezeEffect()
},
new boolean[] { false, false },
new double[] { 0.1, 0.1 }
)));
m_moves.add(new MoveListEntry("Fire Fang", new StatusMove(
PokemonType.T_FIRE, 65, 0.95, 15, new StatusEffect[] {
new FlinchEffect(),
new BurnEffect()
},
new boolean[] { false, false },
new double[] { 0.1, 0.1 }
)));
m_moves.add(new MoveListEntry("Mud Bomb", new StatusMove(
PokemonType.T_GROUND, 65, 0.85, 10, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_ACCURACY, false)
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Defog", new StatusMove(
PokemonType.T_NORMAL, 0, 1.0, 15, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_EVASION, false)
},
new boolean[] { false },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Draco Meteor", new StatusMove(
PokemonType.T_DRAGON, 140, 0.90, 5, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPATTACK, false, 2)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Leaf Storm", new StatusMove(
PokemonType.T_GRASS, 140, 0.90, 5, new StatusEffect[] {
new StatChangeEffect(Pokemon.S_SPATTACK, false, 2)
},
new boolean[] { true },
new double[] { 1.0 }
)));
m_moves.add(new MoveListEntry("Discharge", new StatusMove(
PokemonType.T_ELECTRIC, 80, 1.0, 15, new StatusEffect[] {
new ParalysisEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Lava Plume", new StatusMove(
PokemonType.T_FIRE, 80, 1.0, 15, new StatusEffect[] {
new BurnEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));
m_moves.add(new MoveListEntry("Cross Poison",
new StatusMove(PokemonType.T_POISON, 70, 1.0, 20, new StatusEffect[] {
new PoisonEffect()
},
new boolean[] { false },
new double[] { 0.1 }
) {
public boolean hasHighCriticalHitRate() { return true; }
}
));
m_moves.add(new MoveListEntry("Gunk Shot", new StatusMove(
PokemonType.T_POISON, 120, 0.7, 5, new StatusEffect[] {
new PoisonEffect()
},
new boolean[] { false },
new double[] { 0.3 }
)));