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
320 stars 86 forks source link

Bots will retreat to the base when people pick these heroes (7.33c) #90

Open megastruktur opened 1 year ago

megastruktur commented 1 year ago

We've faced this bug long time ago. The bots will run away to their base when near these heroes. So we can push them to their throne from the very 1st level. We think that this happens because of some "dangerous" abilities. While they are in a cooldown bots behave normally.

JoshdanG commented 1 year ago

I was able to reproduce with Enigma, Phoenix and Terror Blade, but not with Dawn Breaker.

I think this is due to the Hero Power calculation -- basically an estimate of how much damage they can do to their enemies. Midnight Pulse and Sun Ray are AOE % life damage, so these end up with ridiculous numbers. A level 1 hero's power is ~300; level 30 6-slotted anti-mage is ~4k; level 1 Enigma or Phoenix is ~8k. You can see these values using "dota_bot_debug_team 2" or "dota_bot_debug_team 3" for radiant/dire respectively.

I was also able to reproduce the cooldown effect. This is super cheaty -- even using it in fog causes a clear change in enemy behavior.

For TB, seems like both Reflection and Conjure Image are pretty strong (~1k).

This is the built in retreat behavior and power-level calculation, so those would need to be written from scratch. We don't get to cheat (calling GetOffensivePower() returns -1 like it should), so it would probably make bots dumber about when to retreat.