mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
* 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:
2
sql/updates/7370_world_spell_linked_spell.sql
Normal file
2
sql/updates/7370_world_spell_linked_spell.sql
Normal 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;
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user