Core: Combat/threat system rewrite
Port From (https://github.com/TrinityCore/TrinityCore/commit/34c7810fe507eca1b8b9389630db5d5d26d92e77)
This commit is contained in:
@@ -108,7 +108,6 @@ namespace Game.Movement
|
||||
|
||||
if (owner.m_taxi.Empty())
|
||||
{
|
||||
owner.GetHostileRefManager().SetOnlineOfflineState(true);
|
||||
// update z position to ground and orientation for landing point
|
||||
// this prevent cheating with landing point at lags
|
||||
// when client side flight end early in comparison server side
|
||||
@@ -122,8 +121,8 @@ namespace Game.Movement
|
||||
|
||||
public override void DoReset(Player owner)
|
||||
{
|
||||
owner.GetHostileRefManager().SetOnlineOfflineState(false);
|
||||
owner.AddUnitState(UnitState.InFlight);
|
||||
owner.CombatStopWithPets();
|
||||
owner.AddUnitFlag(UnitFlags.RemoveClientControl | UnitFlags.TaxiFlight);
|
||||
|
||||
MoveSplineInit init = new(owner);
|
||||
|
||||
Reference in New Issue
Block a user