mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
init dagger for assasination rogue
This commit is contained in:
parent
99885b56bb
commit
f3aedd6485
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user