mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
Added SetCorpseTarget for SpellCastTargets
This commit is contained in:
@@ -287,6 +287,16 @@ Corpse* SpellCastTargets::GetCorpseTarget() const
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void SpellCastTargets::SetCorpseTarget(Corpse* target)
|
||||
{
|
||||
if (!target)
|
||||
return;
|
||||
|
||||
m_objectTarget = target;
|
||||
m_objectTargetGUID = target->GetGUID();
|
||||
m_targetMask |= TARGET_FLAG_CORPSE_MASK;
|
||||
}
|
||||
|
||||
WorldObject* SpellCastTargets::GetObjectTarget() const
|
||||
{
|
||||
return m_objectTarget;
|
||||
|
||||
@@ -107,6 +107,7 @@ class SpellCastTargets
|
||||
|
||||
uint64 GetCorpseTargetGUID() const;
|
||||
Corpse* GetCorpseTarget() const;
|
||||
void SetCorpseTarget(Corpse* target);
|
||||
|
||||
WorldObject* GetObjectTarget() const;
|
||||
uint64 GetObjectTargetGUID() const;
|
||||
|
||||
Reference in New Issue
Block a user