*Try to fix the bug that ~Creature causes crash.
--HG-- branch : trunk
This commit is contained in:
@@ -12542,6 +12542,8 @@ bool Unit::HandleMeandingAuraProc( Aura* triggeredByAura )
|
|||||||
void Unit::RemoveAurasAtChanneledTarget(SpellEntry const* spellInfo)
|
void Unit::RemoveAurasAtChanneledTarget(SpellEntry const* spellInfo)
|
||||||
{
|
{
|
||||||
uint64 target_guid = GetUInt64Value(UNIT_FIELD_CHANNEL_OBJECT);
|
uint64 target_guid = GetUInt64Value(UNIT_FIELD_CHANNEL_OBJECT);
|
||||||
|
if(target_guid == GetGUID())
|
||||||
|
return;
|
||||||
|
|
||||||
if(!IS_UNIT_GUID(target_guid))
|
if(!IS_UNIT_GUID(target_guid))
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user