Replace abused Map.ActorsInBox calls by Map.ActorsInWorld in all d2k missions

This commit is contained in:
abcdefg30
2016-04-08 17:48:06 +02:00
parent 29bf2206f0
commit 82ff09acda
2 changed files with 2 additions and 6 deletions

View File

@@ -88,9 +88,7 @@ WorldLoaded = function()
InitObjectives()
Trigger.OnRemovedFromWorld(AtreidesConyard, function()
local refs = Map.ActorsInBox(Map.TopLeft, Map.BottomRight, function(actor)
return actor.Type == "refinery"
end)
local refs = Utils.Where(Map.ActorsInWorld, function(actor) return actor.Type == "refinery" end)
if #refs == 0 then
harkonnen.MarkCompletedObjective(KillAtreides)

View File

@@ -88,9 +88,7 @@ WorldLoaded = function()
InitObjectives()
Trigger.OnRemovedFromWorld(AtreidesConyard, function()
local refs = Map.ActorsInBox(Map.TopLeft, Map.BottomRight, function(actor)
return actor.Type == "refinery"
end)
local refs = Utils.Where(Map.ActorsInWorld, function(actor) return actor.Type == "refinery" end)
if #refs == 0 then
harkonnen.MarkCompletedObjective(KillAtreides)