Core/Auras: Implemented SPELL_AURA_DISABLE_INERTIA (506)
Port From (https://github.com/TrinityCore/TrinityCore/commit/d945a118db6d2b423a77c419eb8dd7f4732802a2)
This commit is contained in:
@@ -2303,6 +2303,24 @@ namespace Game.Spells
|
||||
target.SetIgnoreMovementForces(apply);
|
||||
}
|
||||
|
||||
[AuraEffectHandler(AuraType.IgnoreMovementForces)]
|
||||
void HandleDisableInertia(AuraApplication aurApp, AuraEffectHandleModes mode, bool apply)
|
||||
{
|
||||
if (!mode.HasFlag(AuraEffectHandleModes.SendForClientMask))
|
||||
return;
|
||||
|
||||
Unit target = aurApp.GetTarget();
|
||||
|
||||
if (!apply)
|
||||
{
|
||||
// do not remove unit flag if there are more than this auraEffect of that kind on unit on unit
|
||||
if (target.HasAuraType(GetAuraType()))
|
||||
return;
|
||||
}
|
||||
|
||||
target.SetDisableInertia(apply);
|
||||
}
|
||||
|
||||
/****************************/
|
||||
/*** THREAT ***/
|
||||
/****************************/
|
||||
|
||||
Reference in New Issue
Block a user