Replace abused Map.ActorsInBox calls by Map.ActorsInWorld in all d2k missions
This commit is contained in:
@@ -88,9 +88,7 @@ WorldLoaded = function()
|
|||||||
InitObjectives()
|
InitObjectives()
|
||||||
|
|
||||||
Trigger.OnRemovedFromWorld(AtreidesConyard, function()
|
Trigger.OnRemovedFromWorld(AtreidesConyard, function()
|
||||||
local refs = Map.ActorsInBox(Map.TopLeft, Map.BottomRight, function(actor)
|
local refs = Utils.Where(Map.ActorsInWorld, function(actor) return actor.Type == "refinery" end)
|
||||||
return actor.Type == "refinery"
|
|
||||||
end)
|
|
||||||
|
|
||||||
if #refs == 0 then
|
if #refs == 0 then
|
||||||
harkonnen.MarkCompletedObjective(KillAtreides)
|
harkonnen.MarkCompletedObjective(KillAtreides)
|
||||||
|
|||||||
@@ -88,9 +88,7 @@ WorldLoaded = function()
|
|||||||
InitObjectives()
|
InitObjectives()
|
||||||
|
|
||||||
Trigger.OnRemovedFromWorld(AtreidesConyard, function()
|
Trigger.OnRemovedFromWorld(AtreidesConyard, function()
|
||||||
local refs = Map.ActorsInBox(Map.TopLeft, Map.BottomRight, function(actor)
|
local refs = Utils.Where(Map.ActorsInWorld, function(actor) return actor.Type == "refinery" end)
|
||||||
return actor.Type == "refinery"
|
|
||||||
end)
|
|
||||||
|
|
||||||
if #refs == 0 then
|
if #refs == 0 then
|
||||||
harkonnen.MarkCompletedObjective(KillAtreides)
|
harkonnen.MarkCompletedObjective(KillAtreides)
|
||||||
|
|||||||
Reference in New Issue
Block a user