mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 05:11:55 +01:00
Core/Battleground:
Add missing NULL pointer check for player if is not in world Core/Spell: Add absolute value for delta because can be nevgative Close #10846
This commit is contained in:
@@ -452,7 +452,7 @@ int32 SpellEffectInfo::CalcValue(Unit const* caster, int32 const* bp, Unit const
|
||||
float preciseBasePoints = ScalingMultiplier * multiplier;
|
||||
if (DeltaScalingMultiplier)
|
||||
{
|
||||
float delta = DeltaScalingMultiplier * ScalingMultiplier * multiplier * 0.5f;
|
||||
float delta = fabs(DeltaScalingMultiplier * ScalingMultiplier * multiplier * 0.5f);
|
||||
preciseBasePoints += frand(-delta, delta);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user