mirror of
https://github.com/mangosfour/server.git
synced 2025-12-31 04:37:04 +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
|
|
@ -8642,7 +8642,7 @@ void SpellAuraHolder::_RemoveSpellAuraHolder()
|
|||
if (m_target->GetTypeId() == TYPEID_PLAYER && m_removeMode != AURA_REMOVE_BY_DEFAULT && m_removeMode != AURA_REMOVE_BY_DELETE)
|
||||
if (ObjectGuid castItemGuid = GetCastItemGuid())
|
||||
if (Item* castItem = ((Player*)m_target)->GetItemByGuid(castItemGuid))
|
||||
((Player*)m_target)->DestroyItemWithOnStoreSpell(castItem);
|
||||
((Player*)m_target)->DestroyItemWithOnStoreSpell(castItem, GetId());
|
||||
|
||||
//passive auras do not get put in slots - said who? ;)
|
||||
// Note: but totem can be not accessible for aura target in time remove (to far for find in grid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue