Fix defines in MAP_NUM and MAP_GROUP

This commit is contained in:
Bassoonian
2024-08-14 13:02:40 +02:00
parent a3d5f54b75
commit 5fefd743a2
34 changed files with 452 additions and 451 deletions
+2 -2
View File
@@ -279,8 +279,8 @@ bool8 IsHoldingItemAllowed(u16 itemId)
{
// Enigma Berry can't be held in link areas
if (itemId == ITEM_ENIGMA_BERRY
&& ((gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(TRADE_CENTER)
&& gSaveBlock1Ptr->location.mapNum == MAP_NUM(TRADE_CENTER))
&& ((gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(MAP_TRADE_CENTER)
&& gSaveBlock1Ptr->location.mapNum == MAP_NUM(MAP_TRADE_CENTER))
|| InUnionRoom() == TRUE))
return FALSE;
else