From 946ac597b9150562536c14df2667c0bfd053e86f Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Thu, 10 Aug 2023 01:32:31 +0800 Subject: [PATCH] fix fury warrior equip init --- src/PlayerbotFactory.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/PlayerbotFactory.cpp b/src/PlayerbotFactory.cpp index 0696ed87..286a333a 100644 --- a/src/PlayerbotFactory.cpp +++ b/src/PlayerbotFactory.cpp @@ -2970,19 +2970,21 @@ float PlayerbotFactory::CalculateItemScore(uint32 item_id, Player* bot) score *= 0.5; } // spec without double hand - // enhancement, rogue, ice dk, shield tank + // enhancement, rogue, ice dk, shield tank, fury warrior without titan's grip but with duel wield if (isDoubleHand && ((cls == CLASS_SHAMAN && tab == 1 && bot->HasSpell(674)) || (cls == CLASS_ROGUE) || (cls == CLASS_DEATH_KNIGHT && tab == 1) || - (cls == CLASS_WARRIOR && tab == 1 && !bot->HasSpell(49152)) || + (cls == CLASS_WARRIOR && tab == 1 && !bot->HasAura(49152) && bot->HasSpell(674)) || IsShieldTank(bot))) { score *= 0.1; } // spec with double hand - // fury with titan's grip, bear, retribution, blood dk + // fury with titan's grip, fury without duel wield, arms, bear, retribution, blood dk if (isDoubleHand && - ((cls == CLASS_WARRIOR && tab == 1 && bot->HasSpell(49152)) || + ((cls == CLASS_WARRIOR && tab == WARRIOR_TAB_FURY && bot->HasAura(49152)) || + (cls == CLASS_WARRIOR && tab == WARRIOR_TAB_FURY && !bot->HasSpell(674)) || + (cls == CLASS_WARRIOR && tab == WARRIOR_TAB_ARMS) || (cls == CLASS_DRUID && tab == 1) || (cls == CLASS_PALADIN && tab == 2) || (cls == CLASS_DEATH_KNIGHT && tab == 0) || @@ -2998,7 +3000,7 @@ float PlayerbotFactory::CalculateItemScore(uint32 item_id, Player* bot) score *= 0.1; } } - return (0.01 + score) * itemLevel * (quality + 1); + return (0.0001 + score) * itemLevel * (quality + 1); // return score; }