From 4a9cb071329617557bba5ea03dfefb8486cfe39e Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Wed, 5 Apr 2023 19:17:15 -0400 Subject: [PATCH] [Cleanup] Remove unnecessary setting of reuse variable in Bot::DoClassAttacks() (#3233) # Notes - Bash, Kick, and Taunt have the same reuse time, no reason to set it to the same value. --- zone/bot.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index dd490bb29..4a4fa8aa4 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -5158,7 +5158,7 @@ void Bot::DoClassAttacks(Mob *target, bool IsRiposte) { float HasteModifier = (GetHaste() * 0.01f); uint16 skill_to_use = -1; int bot_level = GetLevel(); - int reuse = (TauntReuseTime * 1000); + int reuse = (TauntReuseTime * 1000); // Same as Bash and Kick bool did_attack = false; switch (GetClass()) { case WARRIOR: @@ -5218,7 +5218,6 @@ void Bot::DoClassAttacks(Mob *target, bool IsRiposte) { if (GetWeaponDamage(target, GetBotItem(EQ::invslot::slotSecondary)) <= 0 && GetWeaponDamage(target, GetBotItem(EQ::invslot::slotShoulders)) <= 0) dmg = DMG_INVULNERABLE; - reuse = (BashReuseTime * 1000); DoSpecialAttackDamage(target, EQ::skills::SkillBash, dmg, 0, -1, reuse); did_attack = true; } @@ -5245,7 +5244,6 @@ void Bot::DoClassAttacks(Mob *target, bool IsRiposte) { if (GetWeaponDamage(target, GetBotItem(EQ::invslot::slotFeet)) <= 0) dmg = DMG_INVULNERABLE; - reuse = (KickReuseTime * 1000); DoSpecialAttackDamage(target, EQ::skills::SkillKick, dmg, 0, -1, reuse); did_attack = true; }