Skip to content

Commit 6de392f

Browse files
committed
[z2711] Fix Golemagg aura
Thanks @Tobschinski (based on commit SD2[3044] - 1261091) Signed-off-by: Xfurry <xfurry@scriptdev2.com> (based on commit SD2-TBC[s2802] - 9cbfc83) Signed-off-by: Xfurry <xfurry@scriptdev2.com>
1 parent 4fc6ba7 commit 6de392f

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

scripts/eastern_kingdoms/molten_core/boss_golemagg.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ struct boss_golemaggAI : public ScriptedAI
4343
{
4444
m_pInstance = (ScriptedInstance*)pCreature->GetInstanceData();
4545
Reset();
46+
47+
DoCastSpellIfCan(m_creature, SPELL_MAGMA_SPLASH, CAST_TRIGGERED | CAST_AURA_NOT_PRESENT);
4648
}
4749

4850
ScriptedInstance* m_pInstance;
@@ -58,8 +60,6 @@ struct boss_golemaggAI : public ScriptedAI
5860
m_uiEarthquakeTimer = 3 * IN_MILLISECONDS;
5961
m_uiBuffTimer = 1.5 * IN_MILLISECONDS;
6062
m_bEnraged = false;
61-
62-
m_creature->CastSpell(m_creature, SPELL_MAGMA_SPLASH, true);
6363
}
6464

6565
void Aggro(Unit* /*pWho*/) override
@@ -78,6 +78,8 @@ struct boss_golemaggAI : public ScriptedAI
7878
{
7979
if (m_pInstance)
8080
m_pInstance->SetData(TYPE_GOLEMAGG, FAIL);
81+
82+
DoCastSpellIfCan(m_creature, SPELL_MAGMA_SPLASH, CAST_TRIGGERED | CAST_AURA_NOT_PRESENT);
8183
}
8284

8385
void UpdateAI(const uint32 uiDiff) override

sd2_revision_nr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#ifndef __SD2_REVISION_NR_H__
22
#define __SD2_REVISION_NR_H__
3-
#define SD2_REVISION_NR "z2710"
3+
#define SD2_REVISION_NR "z2711"
44
#endif // __SD2_REVISION_NR_H__

0 commit comments

Comments
 (0)