mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9618] More use ObjectGuid in spell/etc code
This commit is contained in:
parent
21ff192866
commit
b658b25ff8
19 changed files with 117 additions and 122 deletions
|
|
@ -2846,7 +2846,7 @@ void Spell::EffectApplyAura(SpellEffectIndex eff_idx)
|
|||
{
|
||||
// FIXME: currently we can't have auras applied explIcitly by gameobjects
|
||||
// so for auras from wild gameobjects (no owner) target used
|
||||
if (IS_GAMEOBJECT_GUID(m_originalCasterGUID))
|
||||
if (m_originalCasterGUID.IsGameobject())
|
||||
caster = unitTarget;
|
||||
else
|
||||
return;
|
||||
|
|
@ -5489,7 +5489,7 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
TemporarySummon* pSummon = (TemporarySummon*)pTarget;
|
||||
|
||||
// can only affect "own" summoned
|
||||
if (pSummon->GetSummonerGUID() == m_caster->GetGUID())
|
||||
if (pSummon->GetSummonerGuid() == m_caster->GetObjectGuid())
|
||||
{
|
||||
if (pTarget->hasUnitState(UNIT_STAT_ROAMING | UNIT_STAT_ROAMING_MOVE))
|
||||
pTarget->GetMotionMaster()->MovementExpired();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue