Skip to content

Instantly share code, notes, and snippets.

@Warpten
Created June 29, 2013 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Warpten/5893190 to your computer and use it in GitHub Desktop.
Save Warpten/5893190 to your computer and use it in GitHub Desktop.
@@ -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