Core/Unit: Set stand state on damage only to players

(cherry picked from commit 4cc1f850670b868a1d16833a2cf5c60715f749ef)
This commit is contained in:
jackpoz
2022-03-06 20:01:25 +01:00
committed by Shauren
parent ca76786faf
commit 730a8da9e9
+2 -2
View File
@@ -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;