refresh entity dimensions when a battle starts

This commit is contained in:
whatsy
2026-10-09 18:13:35 -04:00
parent df155cf2cb
commit 5ff907c5ae
@@ -488,6 +488,8 @@ open class PokemonEntity(
if (battleId != null) {
busyLocks.remove(BATTLE_LOCK) // Remove in case it's hopped across to another battle, don't want extra battle locks
busyLocks.add(BATTLE_LOCK)
// refresh dimensions in case this pokemon has a battlingEyeHeight
refreshDimensions()
brain.setMemory(CobblemonMemories.POKEMON_BATTLE, battleId)
} else {
busyLocks.remove(BATTLE_LOCK)