* Removed hack for summon water elemental

* Proper handling for Glyph of Eternal Water
* Summoned water elemental still doesn't last forever, but the right spells
* are cast in the right situations.
* Credits to Edrinn

--HG--
branch : trunk
This commit is contained in:
Brian
2010-02-16 15:36:19 -07:00
parent 667c4b694f
commit 6cdacbd313
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
-- Remove hack for glyph of Eternal Water
DELETE FROM `spell_linked_spell` WHERE `spell_trigger`=31687 AND `spell_effect`=70907;

View File

@@ -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);