Created
June 29, 2013 23:57
-
-
Save Warpten/5893190 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -432,11 +432,12 @@ int32 SpellEffectInfo::CalcValue(Unit const* caster, int32 const* bp, Unit const | |
float basePointsPerLevel = RealPointsPerLevel; | |
int32 basePoints = bp ? *bp : BasePoints; | |
float comboDamage = PointsPerComboPoint; | |
// base amount modification based on spell lvl vs caster lvl | |
- if (ScalingMultiplier != 0.0f) | |
+ // Do not perform any scaling calculation if custom values were passed to us | |
+ if (ScalingMultiplier != 0.0f && !bp) | |
{ | |
if (caster) | |
{ | |
int32 level = caster->getLevel(); | |
if (target && _spellInfo->IsPositiveEffect(_effIndex) && Effect == SPELL_EFFECT_APPLY_AURA) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment