Made Types and Egg Groups into arrays
This commit is contained in:
+2
-2
@@ -2465,8 +2465,8 @@ int GetUnionRoomTradeMessageId(struct RfuGameCompatibilityData player, struct Rf
|
||||
else
|
||||
{
|
||||
// Player's Pokémon must be of the type the partner requested
|
||||
if (gSpeciesInfo[playerSpecies2].type1 != requestedType
|
||||
&& gSpeciesInfo[playerSpecies2].type2 != requestedType)
|
||||
if (gSpeciesInfo[playerSpecies2].types[0] != requestedType
|
||||
&& gSpeciesInfo[playerSpecies2].types[1] != requestedType)
|
||||
return UR_TRADE_MSG_NOT_MON_PARTNER_WANTS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user