Quote:
Originally Posted by Frosef
Bots, I believe, use the cast code located in MobAI.cpp, which controls NPCs too. Specifically, do a find for "NPC::AICastSpell" and I believe that's the function bots/NPCs use to determine spell choice. I did some poking around trying to build a better healer, too.
|
This is incorrect. There is a specific Bot::AICastSpell function for the bots in botspellsai.cpp. I started looking through this function and related functions today and found there is room for improvement in the logic. Also, a specific bot will only heal within it's own group and no bot will cast another heal on the same character for at least 2 seconds.
I have plans to improve the spell casting AI for bots but I am waiting for the spells branch to be completed so I do not have to do the work twice. Feel free to tweak the existing code in the meantime. I'll be happy to commit reasonable submissions to SVN.