This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ function Siege:StartActivity()
77
77
for actor in MovableMan .AddedActors do
78
78
if actor .Team == self .PlayerTeam and actor :IsInGroup (" Brains" ) then
79
79
playerBrainsLocation = actor .Pos
80
+ break
80
81
end
81
82
end
82
83
end
@@ -108,10 +109,9 @@ function Siege:StartActivity()
108
109
-- Set all useless actors, i.e. those who should guard brain in the brain chamber but their brain is in another castle
109
110
-- to delete themselves, because otherwise they are most likely to stand there for the whole battle and waste MOs
110
111
for actor in MovableMan .AddedActors do
111
- if actor .Team == self .PlayerTeam and self .BrainChamber :IsInside (actor .Pos ) and
112
- SceneMan :ShortestDistance (actor .Pos , playerBrainsLocation , false ).Magnitude > 200 and
113
- actor .ClassName == " AHuman" or actor .ClassName == " ACrab" then
114
- -- actor.AIMode = Actor.AIMODE_BRAINHUNT;
112
+ if actor .Team == self .PlayerTeam and self .BrainChamber :IsInside (actor .Pos )
113
+ and SceneMan :ShortestDistance (actor .Pos , playerBrainsLocation , false ).Magnitude > 200
114
+ and not actor :HasObjectInGroup (" Brains" ) and (actor .ClassName == " AHuman" or actor .ClassName == " ACrab" ) then
115
115
actor .ToDelete = true
116
116
end
117
117
end
You can’t perform that action at this time.
0 commit comments