init dagger for assasination rogue

This commit is contained in:
Yunfan Li
2023-08-10 00:50:50 +08:00
parent 99885b56bb
commit f3aedd6485

View File

@@ -9,6 +9,7 @@
#include "GuildMgr.h"
#include "MapMgr.h"
#include "PetDefines.h"
#include "PlayerbotAI.h"
#include "PlayerbotAIConfig.h"
#include "Playerbots.h"
#include "PerformanceMonitor.h"
@@ -2993,6 +2994,9 @@ float PlayerbotFactory::CalculateItemScore(uint32 item_id, Player* bot)
if (cls == CLASS_HUNTER && proto->SubClass == ITEM_SUBCLASS_WEAPON_THROWN) {
score *= 0.1;
}
if (cls == CLASS_ROGUE && tab == ROGUE_TAB_ASSASSINATION && proto->SubClass != ITEM_SUBCLASS_WEAPON_DAGGER) {
score *= 0.1;
}
}
return (0.01 + score) * itemLevel * (quality + 1);
// return score;