[11797] Do not remove item on unrelated auraholder remove

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Vinolentus 2011-09-18 01:46:28 +02:00 committed by Schmoozerd
parent 3cb907051b
commit a9e435c078
4 changed files with 5 additions and 6 deletions

View file

@ -7579,7 +7579,7 @@ void Player::ApplyItemOnStoreSpell(Item *item, bool apply)
}
}
void Player::DestroyItemWithOnStoreSpell(Item* item)
void Player::DestroyItemWithOnStoreSpell(Item* item, uint32 spellId)
{
if (!item)
return;
@ -7592,8 +7592,7 @@ void Player::DestroyItemWithOnStoreSpell(Item* item)
{
_Spell const& spellData = proto->Spells[i];
// no spell
if (!spellData.SpellId)
if (spellData.SpellId != spellId)
continue;
// apply/unapply only at-store spells