adamqqqplay / dota2ai

Ranked Matchmaking AI: An improved Dota2 AI based on Valve's default AI. Has more than 3 million subscribers on Steam.
http://steamcommunity.com/sharedfiles/filedetails/?id=855965029
GNU General Public License v3.0
310 stars 85 forks source link

Bots treat Illusions and summons/controlled as players #94

Open megastruktur opened 1 year ago

megastruktur commented 1 year ago

Looks like bots can't distinguish between player and controlled units so they use every skill + ultimates on them. Is there a API/hack you could fix that one? Thanks :)

adamqqqplay commented 1 year ago

Theoretically, we cannot directly judge whether the unit is a phantom from the Dota2 API. But we do use some methods to distinguish, such as observing whether the unit has a special debuff, and whether the damage it takes is normal. Unfortunately, these methods sometimes fail to work, just as human players sometimes misjudge.

Regarding summons, there is indeed room for improvement. Thanks for your advice!