Core/Guild: Implemented guild master dethrone

This commit is contained in:
hondacrx
2018-04-22 16:42:26 -04:00
parent 2c3a0bcb02
commit c2b882eb45
15 changed files with 80 additions and 41 deletions
+9 -1
View File
@@ -440,12 +440,20 @@ namespace Game
guild.HandleNewsSetSticky(this, (uint)packet.NewsID, packet.Sticky);
}
[WorldPacketHandler(ClientOpcodes.GuildReplaceGuildMaster)]
void HandleGuildReplaceGuildMaster(GuildReplaceGuildMaster replaceGuildMaster)
{
Guild guild = GetPlayer().GetGuild();
if (guild)
guild.HandleSetNewGuildMaster(this, "", true);
}
[WorldPacketHandler(ClientOpcodes.GuildSetGuildMaster)]
void HandleGuildSetGuildMaster(GuildSetGuildMaster packet)
{
Guild guild = GetPlayer().GetGuild();
if (guild)
guild.HandleSetNewGuildMaster(this, packet.NewMasterName);
guild.HandleSetNewGuildMaster(this, packet.NewMasterName, false);
}
[WorldPacketHandler(ClientOpcodes.GuildSetAchievementTracking)]