Jump to content

[11571][Patch] Fixed affected targets of spell 70728


Auntie Mangos

Recommended Posts

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

Fixed affected targets of spell 70728

For which repository revision was the patch created?

Compatible with newest revision

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

http://getmangos.eu/community/post/135307/#p135307

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

Me

Spell http://www.wowhead.com/spell=70728 is working wrong (used by Hunter T10 http://old.wowhead.com/spell=70727)

It also affects complete raid instead of only pet and owner.

SpellInfo:

Targets (20, 0) (TARGET_ALL_PARTY_AROUND_CASTER, NO_TARGET)

Fix:

https://github.com/Iov/mangos/commit/618b11d3a7b5ecc2c671c6ac8f8b883ac0e67751

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index b47049f..c0ca3ea 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2482,8 +2482,9 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
            switch(m_spellInfo->Id)
            {
                case 24604:                                 // Furious Howl
+                case 70728:                                 // Exploit Weakness
                {
-                    // from 3.1.0 only affect pet and owner
+                    // only affect pet and owner
                    targetUnitMap.push_back(m_caster);
                    if (Unit *owner = m_caster->GetOwner())
                        targetUnitMap.push_back(owner);

Link to comment
Share on other sites

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