mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
[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:
committed by
GitHub
parent
0f9427098d
commit
dd71420a0e
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user