mirror of
https://github.com/Lorenzooone/Pokemon-Gen3-to-Gen-X.git
synced 2026-04-26 08:37:40 -05:00
Handle Shedinja's HP
This commit is contained in:
parent
55b06d85eb
commit
65e25e6661
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user