Improving the battle, fixing bugs

This commit is contained in:
Vladislav Khorev committed 2026-07-12 18:35:46 +03:00
1 parent 92929118d5
commit 33c2b313af
4 files changed
+36 -1

No files matched your search

+3 -1
View File
@@ -758,7 +758,9 @@ namespace ZL
((loc->player->state.attackTargetIndex >= 0) &&
(loc->npcs[loc->player->state.attackTargetIndex]->state.hp <= 0)))
&&
loc->player->isMoving() == false) {
loc->player->isMoving() == false
&&
loc->player->getHp() > 0) {
loc->player->state.attackTargetIndex = attackerIndex;
}