Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3667 closed defect (fixed)

[PATCH] Exploit nomad: make cc for opponent unbuildable during ceasefire

Reported by: ffm Owned by: mimo
Priority: Nice to Have Milestone: Alpha 21
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description (last modified by ffm)

reproduce: In unknown nomad, send the cavalry to scout. See enemy placing a foundation and go quick on it and press stop button.

The enemy can't move your cavalry and is forced to wait until he can attack it.

During war the enemy shouldn't make way for foundations (for example let a wall be build), but in this case the cavalry (or any unit) should leave the foundation.

This can be prevented on the player side, if the foundation is near your units so the construction starts fast and far from enemy units.

Attachments (1)

ceasefireexploit.patch (1.4 KB ) - added by Sandarac 8 years ago.
As per mimo's suggestion.

Download all attachments as: .zip

Change History (9)

comment:1 by ffm, 8 years ago

Description: modified (diff)

comment:2 by leper, 8 years ago

Priority: Should HaveNice to Have

You can also destroy the foundation and place it anew.

comment:3 by elexis, 8 years ago

See the reopening of #3132 and r16574

comment:4 by mimo, 8 years ago

I guess it would be enough to replace in line 210 of UnitAI.js

if (Not IsOwnedByAllyOfEntity
...

by

if ((Not IsOwnedByAllyOfEntity && Not underCeaseFire)
...
Last edited 8 years ago by mimo (previous) (diff)

by Sandarac, 8 years ago

Attachment: ceasefireexploit.patch added

As per mimo's suggestion.

comment:5 by Sandarac, 8 years ago

Keywords: review patch added
Milestone: BacklogAlpha 21
Summary: Exploit nomad: make cc for opponent unbuildable during ceasefire[PATCH] Exploit nomad: make cc for opponent unbuildable during ceasefire

comment:6 by mimo, 8 years ago

Owner: set to mimo
Resolution: fixed
Status: newclosed

In 18488:

apply leaveFoundation to enemies when under ceaseFire, fixes #3667, patch by Sandarac

comment:7 by mimo, 8 years ago

Thanks for the patch (I've inlined isCeaseFire as only used once).

comment:8 by mimo, 8 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.