Jump to content

[9114] [Fix] Max targets limitation for spell: Life Drain


Auntie Mangos

Recommended Posts

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

Fixed spell "Life Drain"

For which repository revision was the patch created?

9113

Is there a thread in the bug report section or at lighthouse?

http://getmangos.eu/community/showthread.php?10537

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

Nihilus

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index a0cb925..bd5c82a 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1331,6 +1331,9 @@ void Spell::SetTargetMap(uint32 effIndex, uint32 targetMode, UnitList& targetUni
                case 38794:                                 // Murmur's Touch (h)
                    unMaxTargets = 1;
                    break;
+                case 28542:                                 // Life Drain
+                    unMaxTargets = 2;
+                    break;
                case 28796:                                 // Poison Bolt Volley
                case 29213:                                 // Curse of the Plaguebringer
                case 31298:                                 // Sleep
@@ -1338,6 +1341,7 @@ void Spell::SetTargetMap(uint32 effIndex, uint32 targetMode, UnitList& targetUni
                    break;
                case 30843:                                 // Enfeeble
                case 42005:                                 // Bloodboil TODO: need to be 5 targets(players) furthest away from caster
+                case 55665:                                 // Life Drain (h)
                    unMaxTargets = 5;
                    break;
                case 54098:                                 // Poison Bolt Volley (h)

Link to comment
Share on other sites

  • 40 years later...
Guest
This topic is now closed to further replies.
×
×
  • 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