[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:
VladimirMangos 2010-02-18 00:53:51 +03:00
parent 7c555add76
commit e74f62ea31
5 changed files with 30 additions and 31 deletions

View file

@ -1129,14 +1129,11 @@ void WorldSession::HandleRemoveGlyph( WorldPacket & recv_data )
return;
}
if(uint32 glyph = _player->GetGlyph(slot))
if(_player->GetGlyph(slot))
{
if(GlyphPropertiesEntry const *gp = sGlyphPropertiesStore.LookupEntry(glyph))
{
_player->RemoveAurasDueToSpell(gp->SpellId);
_player->SetGlyph(slot, 0);
_player->SendTalentsInfoData(false);
}
_player->ApplyGlyph(slot, false);
_player->SetGlyph(slot, 0);
_player->SendTalentsInfoData(false);
}
}