[11676] Implement glyph 42746

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Den 2011-06-26 02:17:06 +04:00 committed by VladimirMangos
parent a7afa91fcd
commit 80b0c4c148
2 changed files with 12 additions and 2 deletions

View file

@ -2980,7 +2980,7 @@ void Spell::cast(bool skipCheck)
}
}
// different triggred (for caster) and precast (casted before apply effect to target) cases
// different triggered (for caster and main target after main cast) and pre-cast (casted before apply effect to each target) cases
switch(m_spellInfo->SpellFamilyName)
{
case SPELLFAMILY_GENERIC:
@ -3001,6 +3001,16 @@ void Spell::cast(bool skipCheck)
// Ice Block
if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000008000000000))
AddPrecastSpell(41425); // Hypothermia
// Icy Veins
else if (m_spellInfo->Id == 12472)
{
if (m_caster->HasAura(56374)) // Glyph of Icy Veins
{
// not exist spell do it so apply directly
m_caster->RemoveSpellsCausingAura(SPELL_AURA_MOD_DECREASE_SPEED);
m_caster->RemoveSpellsCausingAura(SPELL_AURA_HASTE_SPELLS);
}
}
// Fingers of Frost
else if (m_spellInfo->Id == 44544)
AddPrecastSpell(74396); // Fingers of Frost

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11675"
#define REVISION_NR "11676"
#endif // __REVISION_NR_H__