Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#4658 closed defect (fixed)

Ranged aura still applied even when garrisoned

Reported by: elexis Owned by: bb
Priority: Must Have Milestone: Alpha 23
Component: UI & Simulation Keywords:
Cc: Patch: Phab:704, Phab:D1219

Description

Retardado has reported that sometimes Hero auras are even applied to units if the hero is garrisoned and if that aura is a ranged aura.

Replay the attached r19835 replay to reproduce.

Attachments (2)

commands.txt (44.1 KB ) - added by elexis 7 years ago.
Notice the bug occurs upon the first garrison, but later it doesn't.
t4658.diff (1.7 KB ) - added by fatherbushido 7 years ago.

Download all attachments as: .zip

Change History (13)

by elexis, 7 years ago

Attachment: commands.txt added

Notice the bug occurs upon the first garrison, but later it doesn't.

comment:1 by fatherbushido, 7 years ago

Confirmed. Already in a21. It's wrong as after the aura source is garrisoned, the affected unit can go at the other side of the map with still the bonus applied (edit: which leads to an exploit).

Last edited 7 years ago by fatherbushido (previous) (diff)

comment:2 by fatherbushido, 7 years ago

We could call a this.Clean() on garrison. But it's weird that it's not already handle by OnRangeUpdate.

edit: For the active query, when the source of the query is garrisoned, the RangeUpdate message is not sent (we would expect that all current queried entities are in msg.removed). So, imo, it seems it's in perhaps manager that it should be fixed. But I wouldn't do too much expectation on what RangeManager is expected or not expected to do.

Last edited 7 years ago by fatherbushido (previous) (diff)

comment:3 by fatherbushido, 7 years ago

Attached patch actually updates the queries when the source of an active query is (put) out of world. (rfc)

(for the said problem, build a fortress, an hero (bouddica for example), a champion, garrison the hero, and check for example the capture stat).

Last edited 7 years ago by fatherbushido (previous) (diff)

comment:4 by Stan, 7 years ago

Shouldn't be on Phab ? No offense just asking

comment:5 by fatherbushido, 7 years ago

Because it s a bit wrong

comment:6 by elexis, 7 years ago

Milestone: BacklogAlpha 22

Not a release blocker, but the genie is out of the bottle.

by fatherbushido, 7 years ago

Attachment: t4658.diff added

comment:7 by elexis, 7 years ago

Patch: Phab:D704

comment:8 by elexis, 7 years ago

Milestone: Alpha 22Work In Progress

From the meeting today:

(19:19:45) elexis: #4658 looks like it needs an update, so might have to be pushed while fatherbushido is N/A and hope that players dont find out about the garrison ranged aura bug
(19:20:57) Itms: Push #4658

comment:9 by bb, 6 years ago

Patch: Phab:D704Phab:704, Phab:D1219

comment:10 by bb, 6 years ago

Owner: set to bb
Resolution: fixed
Status: newclosed

In 20845:

Don't early return but update the active query when having no position or when outOfWorld

Based on Patch By: fatherbushido
Patch By: temple
Differential Revision: https://code.wildfiregames.com/D1219
Differential Revision: https://code.wildfiregames.com/D704
fixes #4658

comment:11 by Stan, 6 years ago

Milestone: Work In ProgressAlpha 23

Moving to the correct milestone.

Note: See TracTickets for help on using tickets.