mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11797] Do not remove item on unrelated auraholder remove
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
3cb907051b
commit
a9e435c078
4 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue