Jump to content

[fix] Surge of Power target limitation


Recommended Posts

Posted

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

Surge of Power should affect only 3 targets in 25 man (http://wowhead.com/?spell=60936)

For which repository revision was the patch created?

9572

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

Havent seen any

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

Me

I just had to fix this so why not to put it into mangos.

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 037a6fa..c934584 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1314,6 +1314,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
                case 28796:                                 // Poison Bolt Volley
                case 29213:                                 // Curse of the Plaguebringer
                case 31298:                                 // Sleep
+                case 60936:                                 // Surge of Power (25 man)
                    unMaxTargets = 3;
                    break;
                case 30843:                                 // Enfeeble TODO: exclude top threat target from target selection

PS: Spell itself has also wrong duration in DBC(at least at wowwiki, wowhead and bosskillers they say its 5s, not 3), but i dont know any non-hacky way to fix this.

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