Typeless fix (#5323)

Co-authored-by: Hedara <hedara90@gmail.com>
This commit is contained in:
hedara90 2024-09-04 22:25:41 +02:00 committed by GitHub
parent 3aa24f527e
commit 181c4ea476
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11790,5 +11790,10 @@ u32 GetMoveType(u32 move)
{
if (gMain.inBattle && gBattleStruct->dynamicMoveType)
return gBattleStruct->dynamicMoveType & DYNAMIC_TYPE_MASK;
else if (B_UPDATED_MOVE_TYPES < GEN_5
&& (move == MOVE_BEAT_UP
|| move == MOVE_FUTURE_SIGHT
|| move == MOVE_DOOM_DESIRE))
return TYPE_MYSTERY;
return gMovesInfo[move].type;
}