Opened 3 years ago
Closed 3 years ago
#5902 closed defect (wontfix)
Allow entities without resistance.
Reported by: | Freagarach | Owned by: | Freagarach |
---|---|---|---|
Priority: | Should Have | Milestone: | |
Component: | Simulation | Keywords: | |
Cc: | Patch: | Phab:D2994 |
Description
Currently, cmpResistance is not needed to damage a target (Attacking.js-helper) since just no resistance is assumed.
However, range queries looking for a target need an interface that is implemented, which currently is cmpResistance.
This means that when one has an entity without cmpResistance, it technically _can_ be attacked, but [Unit|Building]AI won't take that entity into account and as such won't be attacked.
It was discussed (r22754 / rP22754) that a proper fix is probably adding a Attackable / Targetable component which could be used for this purpose (and maybe other purposes as well, e.g. distribute attacks).
Change History (3)
comment:1 by , 3 years ago
Milestone: | Backlog → Work In Progress |
---|
comment:2 by , 3 years ago
Owner: | set to |
---|
comment:3 by , 3 years ago
Milestone: | Work In Progress |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
As mentioned in the patch, the cmpResistance is the receiver component of cmpAttack.