aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/updates/7370_world_spell_linked_spell.sql2
-rw-r--r--src/game/Spell.cpp6
2 files changed, 8 insertions, 0 deletions
diff --git a/sql/updates/7370_world_spell_linked_spell.sql b/sql/updates/7370_world_spell_linked_spell.sql
new file mode 100644
index 00000000000..2c6910501ab
--- /dev/null
+++ b/sql/updates/7370_world_spell_linked_spell.sql
@@ -0,0 +1,2 @@
+-- Remove hack for glyph of Eternal Water
+DELETE FROM `spell_linked_spell` WHERE `spell_trigger`=31687 AND `spell_effect`=70907;
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 3451e75c571..9cf135b113d 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -3000,6 +3000,12 @@ void Spell::cast(bool skipCheck)
else
m_caster->CastSpell(m_targets.getUnitTarget() ? m_targets.getUnitTarget() : m_caster, *i, true);
}
+ // Summon Water Elemental - handling for Glyph of Eternal Water
+ if (m_spellInfo->id == 31687)
+ if (m_caster->HasAura(70937))
+ m_caster->CastSpell(m_targets.getUnitTarget() ? m_targets.getUnitTarget() : m_caster, 70908, true);
+ else
+ m_caster->CastSpell(m_targets.getUnitTarget() ? m_targets.getUnitTarget() : m_caster, 70907, true);
if (m_caster->GetTypeId() == TYPEID_PLAYER)
((Player*)m_caster)->SetSpellModTakingSpell(this, false);