Jump to content

[Patch][0.12] prevented that buffs and debuffs use levelcalculation


Guest Hundekuchen

Recommended Posts

I found out that some spell of creature buffs and debuffs use the level calculation of players and because of that there basepoints are very very high.

Here my testing examples:

http://www.wowhead.com/spell=33967

http://www.wowhead.com/spell=36576

http://www.wowhead.com/spell=32918

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 5ca3033..b4c30f2 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -9375,6 +9418,11 @@ int32 Unit::CalculateSpellDamage(Unit const* target, SpellEntry const* spellProt
        }
    }

+    // buffs and debuffs not need a extra calculation
+    for(uint8 i = 0; i < MAX_EFFECT_INDEX; ++i)
+        if(spellProto->Effect[i] == SPELL_EFFECT_APPLY_AURA)
+            return value;
+
    if(spellProto->Attributes & SPELL_ATTR_LEVEL_DAMAGE_CALCULATION && spellProto->spellLevel &&
            spellProto->Effect[effect_index] != SPELL_EFFECT_WEAPON_PERCENT_DAMAGE &&
            spellProto->Effect[effect_index] != SPELL_EFFECT_KNOCK_BACK &&

i hope i have fix it on the right position^^

best regards

Hundekuchen

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 2 weeks later...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use