Start adding missing scripts Part3

This commit is contained in:
hondacrx
2022-07-06 23:53:47 -04:00
parent 8cfd263fea
commit ba6c30add4
39 changed files with 5180 additions and 27 deletions
+1 -2
View File
@@ -585,9 +585,8 @@ namespace Game.AI
void ForceCombatStopForCreatureEntry(uint entry, float maxSearchRange = 250.0f, bool reset = true)
{
Log.outDebug(LogFilter.ScriptsAi, $"BossAI::ForceStopCombatForCreature: called on {me.GetGUID()}. Debug info: {me.GetDebugInfo()}");
List<Creature> creatures = new();
me.GetCreatureListWithEntryInGrid(creatures, entry, maxSearchRange);
List<Creature> creatures = me.GetCreatureListWithEntryInGrid(entry, maxSearchRange);
foreach (Creature creature in creatures)
{
creature.CombatStop(true);
+2 -4
View File
@@ -3553,8 +3553,7 @@ namespace Game.AI
}
else if (e.Event.distance.entry != 0)
{
List<Creature> list = new();
_me.GetCreatureListWithEntryInGrid(list, e.Event.distance.entry, e.Event.distance.dist);
List<Creature> list = _me.GetCreatureListWithEntryInGrid(e.Event.distance.entry, e.Event.distance.dist);
if (!list.Empty())
creature = list.FirstOrDefault();
@@ -3584,8 +3583,7 @@ namespace Game.AI
}
else if (e.Event.distance.entry != 0)
{
List<GameObject> list = new();
_me.GetGameObjectListWithEntryInGrid(list, e.Event.distance.entry, e.Event.distance.dist);
List<GameObject> list = _me.GetGameObjectListWithEntryInGrid(e.Event.distance.entry, e.Event.distance.dist);
if (!list.Empty())
gameobject = list.FirstOrDefault();