Core/Spells: implement GetHitCorpse() helper
This commit is contained in:
1 parent
3f4749fd22
commit
845feebaae
2 files changed
+12
No files matched your search
@@ -525,6 +525,16 @@ GameObject* SpellScript::GetHitGObj() const
|
||||
return m_spell->gameObjTarget;
|
||||
}
|
||||
|
||||
Corpse* SpellScript::GetHitCorpse() const
|
||||
{
|
||||
if (!IsInTargetHook())
|
||||
{
|
||||
TC_LOG_ERROR("scripts", "Script: `%s` Spell: `%u`: function SpellScript::GetHitCorpse was called, but function has no effect in current hook!", m_scriptName->c_str(), m_scriptSpellId);
|
||||
return nullptr;
|
||||
}
|
||||
return m_spell->corpseTarget;
|
||||
}
|
||||
|
||||
WorldLocation* SpellScript::GetHitDest() const
|
||||
{
|
||||
if (!IsInEffectHook())
|
||||
|
||||
Reference in new issue
Block a user