Opened 5 years ago
Last modified 3 years ago
#5631 new defect
Units with 0 max range are able to attack
Reported by: | Silier | Owned by: | |
---|---|---|---|
Priority: | Nice to Have | Milestone: | Backlog |
Component: | Simulation | Keywords: | |
Cc: | wraitii | Patch: |
Description (last modified by )
While I was playing with mod, I got very strange behaviour from my hero. He or failed to attack enemy, after getting out of range and back he succeeded, or when he was attacked multiple times, he was changing targets before landing a hit.
My changes to unitai were minimal and not existed around attacking code.
I founded out that it was caused by my hero having max range = 0, but how was he able to attack anyone at start?
revision: 23095
link to mod: https://drive.google.com/file/d/1BmcDhfKDvI0ubM0zTuND3nG3NChJ2j0x/view?usp=sharing
Attachments (1)
Change History (6)
by , 5 years ago
Attachment: | 2019-10-27_0022.zip added |
---|
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
comment:2 by , 5 years ago
Description: | modified (diff) |
---|---|
Priority: | Must Have → Nice to Have |
Summary: | Unit does not attack or changes targets frequently when attacked [mod] → Units with 0 max range are able to attack |
follow-up: 4 comment:3 by , 4 years ago
comment:4 by , 4 years ago
E.g. I can have initially max range 0 and use tech or aura to make it non 0.
Max range allowed to have a zero-value made explicit in r7452. Is there a reason why the type is "nonNegativeDecimal" whilst it could be "positiveDecimal"?