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:
zorix committed 2013-09-20 16:58:27 +02:00
1 parent fb997c5f41
commit bd48d0ebe7
2 files changed
+12 -2

No files matched your search

+1 -1
View File
@@ -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);
}