*Merge
--HG-- branch : trunk
This commit is contained in:
@@ -3579,7 +3579,8 @@ void Spell::EffectSummonGuardian(uint32 i)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// trigger
|
// trigger
|
||||||
if(!m_originalCaster || m_originalCaster->GetTypeId() != TYPEID_PLAYER /*m_spellInfo->Id == 40276*/)
|
if(!m_originalCaster || m_originalCaster->GetTypeId() != TYPEID_PLAYER
|
||||||
|
&& !((Creature*)m_originalCaster)->isTotem()/*m_spellInfo->Id == 40276*/)
|
||||||
{
|
{
|
||||||
EffectSummonWild(i);
|
EffectSummonWild(i);
|
||||||
return;
|
return;
|
||||||
|
|||||||
+11
-9
@@ -258,8 +258,9 @@ Unit::~Unit()
|
|||||||
|
|
||||||
if(m_charmInfo) delete m_charmInfo;
|
if(m_charmInfo) delete m_charmInfo;
|
||||||
|
|
||||||
RemoveAllAuras();
|
sLog.outDetail("Deconstruct Unit Entry = %u", GetEntry());
|
||||||
assert(m_Auras.begin() == m_Auras.end());
|
if(m_scAuras.size())
|
||||||
|
sLog.outError("Unit %u has sc auras during deconstruction", GetEntry());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unit::Update( uint32 p_time )
|
void Unit::Update( uint32 p_time )
|
||||||
@@ -4662,13 +4663,6 @@ void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode)
|
|||||||
Aur->SetStackAmount(0);
|
Aur->SetStackAmount(0);
|
||||||
|
|
||||||
Aur->_RemoveAura();
|
Aur->_RemoveAura();
|
||||||
delete Aur;
|
|
||||||
|
|
||||||
if(caster_channeled)
|
|
||||||
RemoveAurasAtChanneledTarget (AurSpellInfo);
|
|
||||||
|
|
||||||
if(statue)
|
|
||||||
statue->UnSummon();
|
|
||||||
|
|
||||||
if(mode != AURA_REMOVE_BY_STACK)
|
if(mode != AURA_REMOVE_BY_STACK)
|
||||||
{
|
{
|
||||||
@@ -4684,6 +4678,14 @@ void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete Aur;
|
||||||
|
|
||||||
|
if(caster_channeled)
|
||||||
|
RemoveAurasAtChanneledTarget (AurSpellInfo);
|
||||||
|
|
||||||
|
if(statue)
|
||||||
|
statue->UnSummon();
|
||||||
|
|
||||||
// only way correctly remove all auras from list
|
// only way correctly remove all auras from list
|
||||||
if( m_Auras.empty() )
|
if( m_Auras.empty() )
|
||||||
i = m_Auras.end();
|
i = m_Auras.end();
|
||||||
|
|||||||
Reference in New Issue
Block a user