Special handling for Mew's Teachable moveset

This commit is contained in:
Eduardo Quezada 2022-09-28 09:04:31 -03:00
parent 757ed2ebd4
commit d24899369f
2 changed files with 33 additions and 68 deletions

View File

@ -6137,75 +6137,8 @@ static const u16 sDragoniteTeachableLearnset[] = {
MOVE_UNAVAILABLE,
};
// Instead of reading this array for Mew, it checks for exceptions in CanLearnTeachableMove instead.
static const u16 sMewtwoTeachableLearnset[] = {
MOVE_AERIAL_ACE,
MOVE_BLIZZARD,
MOVE_BRICK_BREAK,
MOVE_BULK_UP,
MOVE_CALM_MIND,
MOVE_DIVE,
MOVE_DOUBLE_TEAM,
MOVE_EARTHQUAKE,
MOVE_FACADE,
MOVE_FIRE_BLAST,
MOVE_FLAMETHROWER,
MOVE_FLASH,
MOVE_FOCUS_PUNCH,
MOVE_FRUSTRATION,
MOVE_HAIL,
MOVE_HIDDEN_POWER,
MOVE_HYPER_BEAM,
MOVE_ICE_BEAM,
MOVE_IRON_TAIL,
MOVE_LIGHT_SCREEN,
MOVE_PROTECT,
MOVE_PSYCHIC,
MOVE_RAIN_DANCE,
MOVE_REFLECT,
MOVE_REST,
MOVE_RETURN,
MOVE_ROCK_SMASH,
MOVE_ROCK_TOMB,
MOVE_SAFEGUARD,
MOVE_SANDSTORM,
MOVE_SECRET_POWER,
MOVE_SHADOW_BALL,
MOVE_SHOCK_WAVE,
MOVE_SKILL_SWAP,
MOVE_SNATCH,
MOVE_SOLAR_BEAM,
MOVE_STRENGTH,
MOVE_SUNNY_DAY,
MOVE_TAUNT,
MOVE_THUNDER,
MOVE_THUNDERBOLT,
MOVE_TORMENT,
MOVE_TOXIC,
MOVE_WATER_PULSE,
MOVE_BODY_SLAM,
MOVE_COUNTER,
MOVE_DOUBLE_EDGE,
MOVE_DREAM_EATER,
MOVE_DYNAMIC_PUNCH,
MOVE_ENDURE,
MOVE_FIRE_PUNCH,
MOVE_ICE_PUNCH,
MOVE_ICY_WIND,
MOVE_MEGA_KICK,
MOVE_MEGA_PUNCH,
MOVE_METRONOME,
MOVE_MIMIC,
MOVE_MUD_SLAP,
MOVE_PSYCH_UP,
MOVE_ROCK_SLIDE,
MOVE_SEISMIC_TOSS,
MOVE_SLEEP_TALK,
MOVE_SNORE,
MOVE_SUBSTITUTE,
MOVE_SWAGGER,
MOVE_SWIFT,
MOVE_THUNDER_PUNCH,
MOVE_THUNDER_WAVE,
MOVE_UNAVAILABLE,
};

View File

@ -7301,6 +7301,38 @@ u8 CanLearnTeachableMove(u16 species, u16 move)
{
return FALSE;
}
else if (species == SPECIES_MEW)
{
switch (move)
{
case MOVE_BADDY_BAD:
case MOVE_BLAST_BURN:
case MOVE_BOUNCY_BUBBLE:
case MOVE_BUZZY_BUZZ:
case MOVE_DRACO_METEOR:
case MOVE_DRAGON_ASCENT:
case MOVE_FIRE_PLEDGE:
case MOVE_FLOATY_FALL:
case MOVE_FREEZY_FROST:
case MOVE_FRENZY_PLANT:
case MOVE_GLITZY_GLOW:
case MOVE_GRASS_PLEDGE:
case MOVE_HYDRO_CANNON:
case MOVE_RELIC_SONG:
case MOVE_SAPPY_SEED:
case MOVE_SECRET_SWORD:
case MOVE_SIZZLY_SLIDE:
case MOVE_SPARKLY_SWIRL:
case MOVE_SPLISHY_SPLASH:
case MOVE_STEEL_BEAM:
case MOVE_VOLT_TACKLE:
case MOVE_WATER_PLEDGE:
case MOVE_ZIPPY_ZAP:
return FALSE;
default:
return TRUE;
}
}
else
{
u8 i;