RaphaelRoyerRivard / MicroMachine

Starcraft 2 Bot
MIT License
12 stars 0 forks source link

Handle Anti-Armor missile #1362

Open Unusual229 opened 3 years ago

Unusual229 commented 3 years ago

When a raven energy drops by 75 (or 74 because of regen), check the rotation of the raven. If the targeted unit type isn't tank, banshee or BC, we assume its an AA missile. Our units around the targeted unit should move out of the way or the targeted unit should move away (the missile is really fast, might not be possible). The missile radius is 2.88. The cast range is 10. If we have multiple units that are perfectly aligned with the raven rotation, assume its the furthest unit, not sure how many decimals there are, this might not be necessary.