mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
[7681] Check guid type before lookup request for seldom GO-caster case. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -5402,7 +5402,7 @@ bool Spell::CheckTarget( Unit* target, uint32 eff )
|
||||
default: // normal case
|
||||
// Get GO cast coordinates if original caster -> GO
|
||||
WorldObject *caster = NULL;
|
||||
if (m_originalCasterGUID)
|
||||
if (IS_GAMEOBJECT_GUID(m_originalCasterGUID))
|
||||
caster = ObjectAccessor::GetGameObject(*m_caster, m_originalCasterGUID);
|
||||
if (!caster)
|
||||
caster = m_caster;
|
||||
|
||||
Reference in New Issue
Block a user