mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-14 09:29:09 +00:00
Run clang-format
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it
|
||||
* and/or modify it under version 2 of the License, or (at your option), any later version.
|
||||
*/
|
||||
|
||||
#include "GuildBankAction.h"
|
||||
|
||||
#include "GuildMgr.h"
|
||||
#include "Playerbots.h"
|
||||
|
||||
@@ -18,7 +20,7 @@ bool GuildBankAction::Execute(Event event)
|
||||
return false;
|
||||
}
|
||||
|
||||
GuidVector gos = *botAI->GetAiObjectContext()->GetValue<GuidVector >("nearest game objects");
|
||||
GuidVector gos = *botAI->GetAiObjectContext()->GetValue<GuidVector>("nearest game objects");
|
||||
for (GuidVector::iterator i = gos.begin(); i != gos.end(); ++i)
|
||||
{
|
||||
GameObject* go = botAI->GetGameObject(*i);
|
||||
@@ -58,11 +60,12 @@ bool GuildBankAction::MoveFromCharToBank(Item* item, GameObject* bank)
|
||||
std::ostringstream out;
|
||||
|
||||
Guild* guild = sGuildMgr->GetGuildById(bot->GetGuildId());
|
||||
//guild->SwapItems(bot, 0, playerSlot, 0, INVENTORY_SLOT_BAG_0, 0);
|
||||
// guild->SwapItems(bot, 0, playerSlot, 0, INVENTORY_SLOT_BAG_0, 0);
|
||||
|
||||
// check source pos rights (item moved to bank)
|
||||
if (!guild->MemberHasTabRights(bot->GetGUID(), 0, GUILD_BANK_RIGHT_DEPOSIT_ITEM))
|
||||
out << "I can't put " << chat->FormatItem(item->GetTemplate()) << " to guild bank. I have no rights to put items in the first guild bank tab";
|
||||
out << "I can't put " << chat->FormatItem(item->GetTemplate())
|
||||
<< " to guild bank. I have no rights to put items in the first guild bank tab";
|
||||
else
|
||||
{
|
||||
out << chat->FormatItem(item->GetTemplate()) << " put to guild bank";
|
||||
|
||||
Reference in New Issue
Block a user