aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2021-02-06 11:20:32 +0100
committerjackpoz <giacomopoz@gmail.com>2021-02-06 11:20:32 +0100
commit4cc1f850670b868a1d16833a2cf5c60715f749ef (patch)
tree71e087d6b8b93d262b7048430bcd85545c1cc1e1 /src
parent88ffc2596df60cf08e458d01736dfd949e741d05 (diff)
Core/Unit: Set stand state on damage only to players
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 0d5ff0e66bd..e6700276845 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -946,8 +946,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;