mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 10:30:01 +01:00
dual wield for rogue
This commit is contained in:
parent
4be7461b73
commit
8f20e721af
@ -1642,6 +1642,7 @@ void PlayerbotFactory::InitSkills()
|
|||||||
|
|
||||||
uint32 skillLevel = bot->getLevel() < 40 ? 0 : 1;
|
uint32 skillLevel = bot->getLevel() < 40 ? 0 : 1;
|
||||||
uint32 dualWieldLevel = bot->getLevel() < 20 ? 0 : 1;
|
uint32 dualWieldLevel = bot->getLevel() < 20 ? 0 : 1;
|
||||||
|
uint32 dualWieldLevelForRogue = bot->getLevel() < 10 ? 0 : 1;
|
||||||
SetRandomSkill(SKILL_DEFENSE);
|
SetRandomSkill(SKILL_DEFENSE);
|
||||||
switch (bot->getClass())
|
switch (bot->getClass())
|
||||||
{
|
{
|
||||||
@ -1735,6 +1736,7 @@ void PlayerbotFactory::InitSkills()
|
|||||||
SetRandomSkill(SKILL_CROSSBOWS);
|
SetRandomSkill(SKILL_CROSSBOWS);
|
||||||
SetRandomSkill(SKILL_FIST_WEAPONS);
|
SetRandomSkill(SKILL_FIST_WEAPONS);
|
||||||
SetRandomSkill(SKILL_THROWN);
|
SetRandomSkill(SKILL_THROWN);
|
||||||
|
bot->SetSkill(SKILL_DUAL_WIELD, 0, dualWieldLevelForRogue, dualWieldLevelForRogue);
|
||||||
break;
|
break;
|
||||||
case CLASS_DEATH_KNIGHT:
|
case CLASS_DEATH_KNIGHT:
|
||||||
SetRandomSkill(SKILL_SWORDS);
|
SetRandomSkill(SKILL_SWORDS);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user