don't process combat if player doesn't have a zone set

This commit is contained in:
Emagi 2025-08-18 14:57:50 -04:00
parent a117d6c3fd
commit 9162692a9f

View File

@ -1555,7 +1555,7 @@ void NPC::ProcessCombat() {
void Player::ProcessCombat() { void Player::ProcessCombat() {
// if not in combat OR casting a spell OR dazed OR feared return out // if not in combat OR casting a spell OR dazed OR feared return out
if (!EngagedInCombat() || IsCasting() || IsDazed() || IsFeared()) if (!GetZone() || !EngagedInCombat() || IsCasting() || IsDazed() || IsFeared())
return; return;
//If no target delete combat_target and return out //If no target delete combat_target and return out