mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8219] Avoid hunter traps proccing when deleted at replace by another trap.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
36605805b4
commit
a6b1334ba1
2 changed files with 4 additions and 8 deletions
|
|
@ -5749,14 +5749,10 @@ void Spell::EffectSummonObject(uint32 i)
|
||||||
default: return;
|
default: return;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64 guid = m_caster->m_ObjectSlot[slot];
|
if(uint64 guid = m_caster->m_ObjectSlot[slot])
|
||||||
if(guid != 0)
|
|
||||||
{
|
{
|
||||||
GameObject* obj = NULL;
|
if(GameObject* obj = m_caster ? m_caster->GetMap()->GetGameObject(guid) : NULL)
|
||||||
if( m_caster )
|
obj->SetLootState(GO_JUST_DEACTIVATED);
|
||||||
obj = m_caster->GetMap()->GetGameObject(guid);
|
|
||||||
|
|
||||||
if(obj) obj->Delete();
|
|
||||||
m_caster->m_ObjectSlot[slot] = 0;
|
m_caster->m_ObjectSlot[slot] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8218"
|
#define REVISION_NR "8219"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue