Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let the remaing enemy troops in Allies02 attack the player #16030

Merged
merged 2 commits into from
Jan 19, 2019

Conversation

abcdefg30
Copy link
Member

Closes #15837.

once the base is destroyed.
Does not include unit guarding the convoy path.
He was standing on impassable terrain and therefore couldn't move.
@pchote pchote added this to the Next Release milestone Jan 7, 2019
Copy link
Member

@pchote pchote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement confirmed and script changes LGTM.

@@ -87,6 +89,14 @@ RunInitialActivities = function()
SendTrucks()
end)

Trigger.OnAllKilled(SovietBase, function()
Utils.Do(ussr.GetGroundAttackers(), function(unit)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea for future improvement: Add a Utils.Except helper, so this could simplify to

Utils.Do(Utils.Except(ussr.GetGroundAttackers(), PathGuards), function(unit)
    Trigger.OnIdle(unit, unit.Hunt)
end)

@pchote pchote merged commit 7eff82c into OpenRA:bleed Jan 19, 2019
@abcdefg30 abcdefg30 deleted the hunt02 branch January 19, 2019 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants