mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Fixed cross faction guilds not allowed by config (#1631)
* - Fixed cross faction guilds not allowed by config * - Fixed doubled method bug * - Restored deleted method
This commit is contained in:
parent
20025b7dfa
commit
21de08baab
@ -90,7 +90,11 @@ void GuildInviteAction::SendPacket(WorldPacket packet)
|
|||||||
bot->GetSession()->HandleGuildInviteOpcode(data);
|
bot->GetSession()->HandleGuildInviteOpcode(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GuildInviteAction::PlayerIsValid(Player* member) { return !member->GetGuildId(); }
|
bool GuildInviteAction::PlayerIsValid(Player* member)
|
||||||
|
{
|
||||||
|
return !member->GetGuildId() && (sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD) ||
|
||||||
|
(bot->GetTeamId() == member->GetTeamId()));
|
||||||
|
}
|
||||||
|
|
||||||
bool GuildPromoteAction::isUseful()
|
bool GuildPromoteAction::isUseful()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user