summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-24 17:45:04 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-24 17:45:04 +0000
commitfbfffeaf7052b5a6e32b69fcec1045b55356f3fc (patch)
tree770385c2654054aa63328439b350b1df0b128b1b /src/map/guild.c
parentd98ba0ca473c8d893895b46f7f22e2cf5a58ea64 (diff)
downloadhercules-fbfffeaf7052b5a6e32b69fcec1045b55356f3fc.tar.gz
hercules-fbfffeaf7052b5a6e32b69fcec1045b55356f3fc.tar.bz2
hercules-fbfffeaf7052b5a6e32b69fcec1045b55356f3fc.tar.xz
hercules-fbfffeaf7052b5a6e32b69fcec1045b55356f3fc.zip
Updated new guild skills (60%)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@347 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index fff6305d4..411289aa7 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -865,8 +865,13 @@ int guild_notice_changed(int guild_id,const char *mes1,const char *mes2)
int guild_change_emblem(struct map_session_data *sd,int len,const char *data)
{
nullpo_retr(0, sd);
+ struct guild *g = NULL;
- return intif_guild_emblem(sd->status.guild_id,len,data);
+ if ((g = guild_search(sd->status.guild_id)) && guild_checkskill(g, GD_GLORYGUILD)>0)
+ return intif_guild_emblem(sd->status.guild_id,len,data);
+
+ clif_skill_fail(sd,GD_GLORYGUILD,0,0);
+ return 0;
}
// ギルドエンブレム変更通知
int guild_emblem_changed(int len,int guild_id,int emblem_id,const char *data)