[Feature] NPCs with bows and arrows do ranged attacks (#2322)

* NPCs with bows and arrows do ranged attacks

Who knew!!

* PR comments

Co-authored-by: Akkadius <akkadius1@gmail.com>
This commit is contained in:
Michael Cook (mackal)
2022-07-30 15:28:06 -04:00
committed by GitHub
parent 0f9427098d
commit dd71420a0e
4 changed files with 55 additions and 36 deletions
+3 -1
View File
@@ -1336,9 +1336,11 @@ void Mob::AI_Process() {
// See if we can summon the mob to us
if (!HateSummon()) {
//could not summon them, check ranged...
if (GetSpecialAbility(SPECATK_RANGED_ATK))
if (GetSpecialAbility(SPECATK_RANGED_ATK) || HasBowAndArrowEquipped()) {
doranged = true;
}
// Now pursue
// TODO: Check here for another person on hate list with close hate value