Jump to content

Aura::HandleModThreat - need Caster?


Guest breakwater

Recommended Posts

Hi,

I have problems with this function and the Spell 29232 . This Spell is casting, if the Spore(Naxxramas-Loatheb) dies. This function check the caster and whether the caster is alive.

Why we check the caster in this function? therefore this Spell doesn't work correct, because the caster (Spore) is dead.

I hope someone can tell me why we check the caster. Maybe we can delete this code part, because it has no meaning.

I have comment out this code part and this spell works very good. I can not check every spell with this aura effect, but i think, this make no problems.

This patchfile with

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 4c5f511..fa6bbee 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -4966,10 +4966,10 @@ void Aura::HandleModThreat(bool apply, bool Real)
    if (!target->isAlive())
        return;

-    Unit* caster = GetCaster();
+    /*Unit* caster = GetCaster();

    if (!caster || !caster->isAlive())
-        return;
+        return;*/ 

    int level_diff = 0;
    int multiplier = 0;

Sry for my english

Link to comment
Share on other sites

×
×
  • 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