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 Silier)

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)

2019-10-27_0022.zip (5.7 KB ) - added by Silier 5 years ago.

Download all attachments as: .zip

Change History (6)

by Silier, 5 years ago

Attachment: 2019-10-27_0022.zip added

comment:1 by Silier, 5 years ago

Description: modified (diff)

comment:2 by Silier, 5 years ago

Description: modified (diff)
Priority: Must HaveNice to Have
Summary: Unit does not attack or changes targets frequently when attacked [mod]Units with 0 max range are able to attack

comment:3 by Freagarach, 4 years ago

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"?

in reply to:  3 comment:4 by Silier, 4 years ago

E.g. I can have initially max range 0 and use tech or aura to make it non 0.

comment:5 by Stan, 3 years ago

Milestone: Alpha 24Backlog

Backlogging due to lack of progress.

Note: See TracTickets for help on using tickets.