aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorBrian <runningnak3d@gmail.com>2010-02-16 15:36:19 -0700
committerBrian <runningnak3d@gmail.com>2010-02-16 15:36:19 -0700
commit6cdacbd313fa6f426ada895feead584797ff8caf (patch)
tree4b79e8ca6d7a9f982c31fa64c3517ff290478de8 /src/game/Spell.cpp
parent667c4b694f6564ad8a392a498884255bb451407e (diff)
* 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
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp6
1 files changed, 6 insertions, 0 deletions
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);