fix type, add bugfix
This commit is contained in:
@@ -628,7 +628,11 @@ static void ModulateByTypeEffectiveness(u8 atkType, u8 defType1, u8 defType2, u8
|
||||
u8 GetMostSuitableMonToSwitchInto(void)
|
||||
{
|
||||
u8 opposingBattler;
|
||||
#ifdef BUGFIX
|
||||
s32 bestDmg;
|
||||
#else
|
||||
u8 bestDmg; // Note: should be changed to s32 since it is also used for the actual damage done later
|
||||
#endif
|
||||
u8 bestMonId;
|
||||
u8 battlerIn1, battlerIn2;
|
||||
s32 firstId;
|
||||
@@ -684,8 +688,8 @@ u8 GetMostSuitableMonToSwitchInto(void)
|
||||
|
||||
while (invalidMons != 0x3F) // All mons are invalid.
|
||||
{
|
||||
bestDmg = ;
|
||||
bestMonId = 6;
|
||||
bestDmg = TYPE_MUL_NO_EFFECT;
|
||||
bestMonId = PARTY_SIZE;
|
||||
// Find the mon whose type is the most suitable offensively.
|
||||
for (i = firstId; i < lastId; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user