mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 15:16:24 +00:00
fix(Scripts/ZulAman): Fix Amani Hatcher behaviour (#20687)
This commit is contained in:
@@ -62,6 +62,17 @@ void CreatureAI::Talk(uint8 id, WorldObject const* target /*= nullptr*/, Millise
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the summoner creature/object, if the creature is a temporary summon.
|
||||
*/
|
||||
WorldObject* CreatureAI::GetSummoner() const
|
||||
{
|
||||
if (TempSummon* summon = me->ToTempSummon())
|
||||
return summon->GetSummoner();
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
inline bool IsValidCombatTarget(Creature* source, Player* target)
|
||||
{
|
||||
if (target->IsGameMaster())
|
||||
|
||||
Reference in New Issue
Block a user