bwapi icon indicating copy to clipboard operation
bwapi copied to clipboard

cloaked, undetected units have isCloaked() returning false

Open krasi0 opened this issue 8 years ago • 5 comments

E.g. a cloaked, enemy Terran Wraith would have the following flags set: exists() == true isDetected() == false isCloaked() == false isBurrowed() == false getHitPoints() == 0 the type will be correctly reported as Terran Wraith

Everything seems to be as expected except for isCloaked() returning false.

krasi0 avatar Apr 08 '16 14:04 krasi0

Actually this seems the correct behavior to me. isCloaked() only makes sense on your own units, not the enemy.

If the enemy unit is not in sight(one of the reasons would be cloaking) you shouldn't be able to get any info on them.

ajdvoynos avatar May 04 '16 20:05 ajdvoynos

IMO, isCloaked() makes sense regardless of the owner. A human player is able to distinguish between a cloaked and a burrowed unit for example. Perhaps, it wasn't clear, but I was talking about units which ARE in sight, just not detected by an own observer.

krasi0 avatar May 04 '16 20:05 krasi0

@heinermann to answer your question on IRC, this is the highest priority issue for me. As well as having enemy Sweep scans appear in the getAllUnits() result set

krasi0 avatar Aug 08 '16 09:08 krasi0

TODO: Figure out what do to

N00byEdge avatar Mar 07 '19 15:03 N00byEdge

...

N00byEdge avatar Mar 07 '19 17:03 N00byEdge