summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-08 18:04:09 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-08 18:04:09 +0000
commit4fbbae2b1e8504ef3837b6d7095e1e8977157b94 (patch)
tree6966926ef195f51d0b488d5ce770dab85f09a21f /src
parentbf9918022ea2c4c2b1e52b7a9b15e69f5f9774e4 (diff)
downloadhercules-4fbbae2b1e8504ef3837b6d7095e1e8977157b94.tar.gz
hercules-4fbbae2b1e8504ef3837b6d7095e1e8977157b94.tar.bz2
hercules-4fbbae2b1e8504ef3837b6d7095e1e8977157b94.tar.xz
hercules-4fbbae2b1e8504ef3837b6d7095e1e8977157b94.zip
Fixed bugreport:6601 guild aura refreshes as soon as you ressurect instead of awaiting its next iteration
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16761 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/pc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index b370b6296..f07d4583c 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6666,14 +6666,20 @@ int pc_dead(struct map_session_data *sd,struct block_list *src)
return 1;
}
-void pc_revive(struct map_session_data *sd,unsigned int hp, unsigned int sp)
-{
+void pc_revive(struct map_session_data *sd,unsigned int hp, unsigned int sp) {
if(hp) clif_updatestatus(sd,SP_HP);
if(sp) clif_updatestatus(sd,SP_SP);
pc_setstand(sd);
if(battle_config.pc_invincible_time > 0)
pc_setinvincibletimer(sd, battle_config.pc_invincible_time);
+
+ if( sd->state.gmaster_flag ) {
+ guild_guildaura_refresh(sd,GD_LEADERSHIP,guild_checkskill(sd->state.gmaster_flag,GD_LEADERSHIP));
+ guild_guildaura_refresh(sd,GD_GLORYWOUNDS,guild_checkskill(sd->state.gmaster_flag,GD_GLORYWOUNDS));
+ guild_guildaura_refresh(sd,GD_SOULCOLD,guild_checkskill(sd->state.gmaster_flag,GD_SOULCOLD));
+ guild_guildaura_refresh(sd,GD_HAWKEYES,guild_checkskill(sd->state.gmaster_flag,GD_HAWKEYES));
+ }
}
// script? ˜A
//