don't process combat if player doesn't have a zone set
This commit is contained in:
parent
a117d6c3fd
commit
9162692a9f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user