From b66605033ae2a023c7c5a607ef46f0d0bcb1870d Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Mon, 7 Aug 2017 13:31:27 +0200 Subject: [PATCH] Let the fremen fallback in atreides04 instead of attacking the base --- mods/d2k/maps/atreides-04/atreides04.lua | 11 +++++++++++ mods/d2k/maps/atreides-04/map.yaml | 3 +++ 2 files changed, 14 insertions(+) diff --git a/mods/d2k/maps/atreides-04/atreides04.lua b/mods/d2k/maps/atreides-04/atreides04.lua index bdaaa5adb7..9e62d5d931 100644 --- a/mods/d2k/maps/atreides-04/atreides04.lua +++ b/mods/d2k/maps/atreides-04/atreides04.lua @@ -203,4 +203,15 @@ WorldLoaded = function() Utils.Do(units, IdleHunt) end end) + + Trigger.OnExitedProximityTrigger(Sietch.CenterPosition, WDist.New(10.5 * 1024), function(a, id) + if a.Owner == fremen and not a.IsDead then + a.AttackMove(FremenRally.Location) + Trigger.OnIdle(a, function() + if a.Location.X < 54 or a.Location.Y < 54 then + a.AttackMove(FremenRally.Location) + end + end) + end + end) end diff --git a/mods/d2k/maps/atreides-04/map.yaml b/mods/d2k/maps/atreides-04/map.yaml index 20a0854b79..92344cc6f7 100644 --- a/mods/d2k/maps/atreides-04/map.yaml +++ b/mods/d2k/maps/atreides-04/map.yaml @@ -409,6 +409,9 @@ Actors: AtreidesRally: waypoint Owner: Neutral Location: 5,23 + FremenRally: waypoint + Owner: Neutral + Location: 56,54 Rules: d2k|rules/campaign-rules.yaml, d2k|rules/campaign-palettes.yaml, rules.yaml