aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2021-02-06 11:20:32 +0100
committerShauren <shauren.trinity@gmail.com>2022-03-06 20:01:25 +0100
commit730a8da9e99fdb50459e9eb57d79ac995430125e (patch)
treeceb14747989520d5fc78f36f1263855364366f09 /src
parentca76786faf178d9d2fac84d0c3d529a8aa73ef67 (diff)
Core/Unit: Set stand state on damage only to players
(cherry picked from commit 4cc1f850670b868a1d16833a2cf5c60715f749ef)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index c103c41770d..60f7442e864 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -1040,8 +1040,8 @@ bool Unit::HasBreakableByDamageCrowdControlAura(Unit* excludeCasterChannel) cons
}
}
- // check to see if victim is sitting
- if (victim->GetStandState())
+ // make player victims stand up automatically
+ if (victim->GetStandState() && victim->IsPlayer())
victim->SetStandState(UNIT_STAND_STATE_STAND);
return damage;