If we were to call this a bug, then it would be a bug in the HD mod. Without it, this bug doesn't exist. In reality, it's more accurate to describe it as an incompatibility between the BT version and the HD mod.
What specific conditions lead to this bug occurring? Does it only happen during battles in the dungeon, or in any battle, on any type of terrain, or under specific circumstances?
Auto-translated