mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[9404] Fixed glyph apply with with specs.
This resolve problem when glyph rejetect applied at some spec if it applied already at another spec.
This commit is contained in:
parent
7c555add76
commit
e74f62ea31
5 changed files with 30 additions and 31 deletions
|
|
@ -5951,17 +5951,9 @@ void Spell::EffectApplyGlyph(uint32 i)
|
|||
}
|
||||
|
||||
// remove old glyph
|
||||
if(uint32 oldglyph = player->GetGlyph(m_glyphIndex))
|
||||
{
|
||||
if(GlyphPropertiesEntry const *old_gp = sGlyphPropertiesStore.LookupEntry(oldglyph))
|
||||
{
|
||||
player->RemoveAurasDueToSpell(old_gp->SpellId);
|
||||
player->SetGlyph(m_glyphIndex, 0);
|
||||
}
|
||||
}
|
||||
|
||||
player->CastSpell(m_caster, gp->SpellId, true);
|
||||
player->ApplyGlyph(m_glyphIndex, false);
|
||||
player->SetGlyph(m_glyphIndex, glyph);
|
||||
player->ApplyGlyph(m_glyphIndex, true);
|
||||
player->SendTalentsInfoData(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue