From c3f8b8073b3ddb24269c78860be6d6f812271713 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Fri, 30 Jul 2021 12:09:44 -0400 Subject: [PATCH] Fix bots with ExtraAttackChance changes (#1480) This should probably be updated to match everything in client, but this will at least fix compile --- zone/bot.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 757d77b9a..0cb352a18 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -3272,7 +3272,9 @@ void Bot::AI_Process() } TEST_COMBATANTS(); - int32 ExtraAttackChanceBonus = (spellbonuses.ExtraAttackChance + itembonuses.ExtraAttackChance + aabonuses.ExtraAttackChance); + auto ExtraAttackChanceBonus = + (spellbonuses.ExtraAttackChance[0] + itembonuses.ExtraAttackChance[0] + + aabonuses.ExtraAttackChance[0]); if (ExtraAttackChanceBonus) { if (p_item && p_item->GetItem()->IsType2HWeapon()) {