Core/Guilds: merged some guild achievement implementations

This commit is contained in:
Ovahlord committed 2018-12-15 22:07:50 +01:00
1 parent 0c5905f2ee
commit af82b87bd7
7 files changed
+121 -63

No files matched your search

@@ -359,7 +359,10 @@ void WorldSession::HandleSaveGuildEmblemOpcode(WorldPacket& recvPacket)
GetPlayer()->RemoveAurasByType(SPELL_AURA_FEIGN_DEATH);
if (Guild* guild = GetPlayer()->GetGuild())
{
guild->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_BUY_GUILD_TABARD, 0, 0, 0, NULL, GetPlayer());
guild->HandleSetEmblem(this, emblemInfo);
}
else
Guild::SendSaveEmblemResult(this, ERR_GUILDEMBLEM_NOGUILD); // "You are not part of a guild!";
}