mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-14 20:22:23 -04:00
Core/AI: add another helper for "ScriptedAI::ForceCombatStop"
This commit is contained in:
@@ -278,6 +278,12 @@ void ScriptedAI::ForceCombatStopForCreatureEntry(uint32 entry, float maxSearchRa
|
||||
ForceCombatStop(creature, reset);
|
||||
}
|
||||
|
||||
void ScriptedAI::ForceCombatStopForCreatureEntry(std::vector<uint32> creatureEntries, float maxSearchRange /*= 250.0f*/, bool samePhase /*= true*/, bool reset /*= true*/)
|
||||
{
|
||||
for (uint32 const entry : creatureEntries)
|
||||
ForceCombatStopForCreatureEntry(entry, maxSearchRange, samePhase, reset);
|
||||
}
|
||||
|
||||
Creature* ScriptedAI::DoSpawnCreature(uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
|
||||
{
|
||||
return me->SummonCreature(entry, me->GetPositionX() + offsetX, me->GetPositionY() + offsetY, me->GetPositionZ() + offsetZ, angle, TempSummonType(type), despawntime);
|
||||
|
||||
Reference in New Issue
Block a user