Jump to content

[Fix] Searing Light & Gravity Bomb Spells from XT-002


Guest breakwater

Recommended Posts

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

Fix the spell Searing Light & Gravity Bomb

For which repository revision was the patch created?

11265

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

i don't know

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

me

Infos: I'm a user from rsa-repo, maybe patchfile doen't work.

Patchfile http://paste2.org/p/1321824

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index b87a819..4d21250 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1634,6 +1634,10 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
                case 55479:                                 // Force Obedience
                case 59870:                                 // Glare of the Tribunal (h) (Halls of Stone)
                case 62374:                                 // Pursued Ulduar Leviathan
+                case 63018:                                 // Searing Light nonhero
+                case 63024:                                 // Gravity Bomb nonhero
+                case 64234:                                 // Gravity Bomb hero
+                case 65121:                                 // Searing Light hero
                case 65950:                                 // Touch of Light
                case 67296:
                case 67297:
@@ -2326,6 +2330,19 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
            }
            break;
        case TARGET_ALL_FRIENDLY_UNITS_IN_AREA:
+            // Searing Light
+            if (m_spellInfo->Id == 63023 || m_spellInfo->Id == 65120)
+            {
+                FillAreaTargets(targetUnitMap, m_caster->GetPositionX(), m_caster->GetPositionY(), radius, PUSH_SELF_CENTER, SPELL_TARGETS_HOSTILE);
+                break;
+            }
+            // Gravity Bomb
+            else if (m_spellInfo->Id == 63025 || m_spellInfo->Id == 64233)
+            {
+                FillAreaTargets(targetUnitMap, m_caster->GetPositionX(), m_caster->GetPositionY(), radius, PUSH_SELF_CENTER, SPELL_TARGETS_HOSTILE);
+                targetUnitMap.remove(m_caster);
+                break;
+            }
            // Death Pact (in fact selection by player selection)
            if (m_spellInfo->Id == 48743)
            {

If someone has improvements, tell me

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