Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
megastruktur opened this issue Jun 4, 2023 · 1 comment

Comments

@megastruktur
Copy link

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.

  • Enigma (Midnight pulse)
  • Phoenix (Sun Ray)
  • Terror Blade (Conjure Image)
  • Dawn Breaker (?)
@megastruktur megastruktur changed the title Bots will retreat to the base when people pick these heroes Bots will retreat to the base when people pick these heroes (7.33c) Jun 4, 2023
@JoshdanG
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants