Add missing alert round for ranged attacks

This commit is contained in:
nytmyr
2024-12-12 08:00:12 -06:00
parent 693abdd42c
commit 1aa71598a0
+2 -1
View File
@@ -1841,7 +1841,8 @@ bool Bot::BotRangedAttack(Mob* other, bool CanDoubleAttack) {
) {
if (!Ammo || ammoItem->GetCharges() < 1) {
if (!GetCombatRoundForAlerts()) {
GetOwner()->Message(Chat::Yellow, "I do not have enough any ammo.");
SetCombatRoundForAlerts();
BotGroupSay(this, "I do not have enough any ammo!");
}
}