mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
fix classbots autogear not working when altbots autogear turned off (#1060)
* fix classbots autogear not working when altbots autogear turned off
This commit is contained in:
parent
b9747fdd69
commit
92d63c7cbc
@ -208,14 +208,12 @@ bool AutoGearAction::Execute(Event event)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sPlayerbotAIConfig->autoGearCommandAltBots)
|
if (!sPlayerbotAIConfig->autoGearCommandAltBots &&
|
||||||
{
|
!sPlayerbotAIConfig->IsInRandomAccountList(bot->GetSession()->GetAccountId()))
|
||||||
if (!sRandomPlayerbotMgr->IsRandomBot(bot))
|
|
||||||
{
|
{
|
||||||
botAI->TellError("You cannot use autogear on alt bots.");
|
botAI->TellError("You cannot use autogear on alt bots.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
botAI->TellMaster("I'm auto gearing");
|
botAI->TellMaster("I'm auto gearing");
|
||||||
uint32 gs = sPlayerbotAIConfig->autoGearScoreLimit == 0
|
uint32 gs = sPlayerbotAIConfig->autoGearScoreLimit == 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user