Jump to content

[7885][patch_7201] Vampiric Touch


Guest qsa

Recommended Posts

What bug does the patch fix? What features does the patch add?

Vampiric Touch uses old, pre-wotlk formula/trigger spell.

For which SubVersion revision was the patch created?

7201

Who has been writing this patch? Please include either forum user names or email addresses.

myself ( entire line of code :) )

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 4d93544..690fb5e 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5004,10 +5004,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
                if(triggeredByAura->GetCasterGUID() != pVictim->GetGUID())
                    return false;

-                // energize amount
-                basepoints0 = triggerAmount*damage/100;
-                pVictim->CastCustomSpell(pVictim,34919,&basepoints0,NULL,NULL,true,castItem,triggeredByAura);
-                return true;                                // no hidden cooldown
+                pVictim->CastSpell(pVictim,57669,true,castItem,triggeredByAura);
+                    return true;                                // no hidden cooldown
            }
            // Divine Aegis
            if (dummySpell->SpellIconID == 2820)

Take care.

Link to comment
Share on other sites

  • 1 month later...
  • 1 month 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