mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
Add additional trading options (#1186)
* Add addclass bots to trading list, differentiate between buying and selling. * typos * Try calling playerguid * point IsAddclassBot to IsRandomBot * typo * Fix through IsAddClassbot * Working Version * Minor typos.
This commit is contained in:
@@ -2204,6 +2204,19 @@ bool RandomPlayerbotMgr::IsRandomBot(ObjectGuid::LowType bot)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
bool RandomPlayerbotMgr::IsAddclassBot(Player* bot)
|
||||
{
|
||||
if (bot && GET_PLAYERBOT_AI(bot))
|
||||
{
|
||||
if (GET_PLAYERBOT_AI(bot)->IsRealPlayer())
|
||||
return false;
|
||||
}
|
||||
if (bot)
|
||||
{
|
||||
return IsAddclassBot(bot->GetGUID().GetCounter());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool RandomPlayerbotMgr::IsAddclassBot(ObjectGuid::LowType bot)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user