Handle Shedinja's HP

This commit is contained in:
Lorenzooone 2023-02-23 04:13:33 +01:00
parent 55b06d85eb
commit 65e25e6661
2 changed files with 6 additions and 2 deletions

View File

@ -78,6 +78,7 @@
#define SUICUNE_SPECIES 245
#define LUGIA_SPECIES 249
#define HO_OH_SPECIES 250
#define SHEDINJA_SPECIES 303
#define SPINDA_SPECIES 308
#define LATIAS_SPECIES 407
#define LATIOS_SPECIES 408

View File

@ -743,10 +743,13 @@ u16 calc_stats_gen3(u16 species, u32 pid, u8 stat_index, u8 level, u8 iv, u8 ev,
species = 0;
if(stat_index >= GEN2_STATS_TOTAL)
stat_index = GEN2_STATS_TOTAL-1;
if((species == SHEDINJA_SPECIES) && (stat_index == HP_STAT_INDEX))
return 1;
u8 nature = get_nature(pid);
u16 mon_index = get_mon_index(species, pid, 0, deoxys_form);
u16 base = 5;
if(stat_index == HP_STAT_INDEX)
base = level + 10;