Core/Auras: Prevent getting negative scale with auras
Port From (https://github.com/TrinityCore/TrinityCore/commit/679e9910e09a55dd1743f236dbd99b7fa48fe9c1)
This commit is contained in:
@@ -1586,11 +1586,7 @@ namespace Game.Spells
|
||||
if (!mode.HasAnyFlag(AuraEffectHandleModes.ChangeAmountSendForClientMask))
|
||||
return;
|
||||
|
||||
Unit target = aurApp.GetTarget();
|
||||
|
||||
float scale = target.GetObjectScale();
|
||||
scale += MathFunctions.CalculatePct(1.0f, apply ? GetAmount() : -GetAmount());
|
||||
target.SetObjectScale(scale);
|
||||
aurApp.GetTarget().RecalculateObjectScale();
|
||||
}
|
||||
|
||||
[AuraEffectHandler(AuraType.CloneCaster)]
|
||||
|
||||
Reference in New Issue
Block a user