mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[11676] Implement glyph 42746
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
a7afa91fcd
commit
80b0c4c148
2 changed files with 12 additions and 2 deletions
|
|
@ -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)
|
switch(m_spellInfo->SpellFamilyName)
|
||||||
{
|
{
|
||||||
case SPELLFAMILY_GENERIC:
|
case SPELLFAMILY_GENERIC:
|
||||||
|
|
@ -3001,6 +3001,16 @@ void Spell::cast(bool skipCheck)
|
||||||
// Ice Block
|
// Ice Block
|
||||||
if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000008000000000))
|
if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000008000000000))
|
||||||
AddPrecastSpell(41425); // Hypothermia
|
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
|
// Fingers of Frost
|
||||||
else if (m_spellInfo->Id == 44544)
|
else if (m_spellInfo->Id == 44544)
|
||||||
AddPrecastSpell(74396); // Fingers of Frost
|
AddPrecastSpell(74396); // Fingers of Frost
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11675"
|
#define REVISION_NR "11676"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue