Fixed error in battle fight menu when not using graphics for it

This commit is contained in:
Maruno17
2022-10-26 18:39:32 +01:00
parent 5384a7afe4
commit 6f7a714d48

View File

@@ -388,6 +388,7 @@ class Battle::Scene::FightMenu < Battle::Scene::MenuBase
def refreshMoveData(move) def refreshMoveData(move)
# Write PP and type of the selected move # Write PP and type of the selected move
if !USE_GRAPHICS if !USE_GRAPHICS
return if !move
moveType = GameData::Type.get(move.display_type(@battler)).name moveType = GameData::Type.get(move.display_type(@battler)).name
if move.total_pp <= 0 if move.total_pp <= 0
@msgBox.text = _INTL("PP: ---<br>TYPE/{1}", moveType) @msgBox.text = _INTL("PP: ---<br>TYPE/{1}", moveType)