summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-09 16:52:24 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-09 16:52:24 +0000
commitf7a7b1d041ff396d96468be30bc4914e626979b3 (patch)
treeeadb9ef5f012dc1806186edeea43bb54e793a7ea /src/map/skill.c
parent49000e689a2516db20060d88871762f5a3bcac39 (diff)
downloadhercules-f7a7b1d041ff396d96468be30bc4914e626979b3.tar.gz
hercules-f7a7b1d041ff396d96468be30bc4914e626979b3.tar.bz2
hercules-f7a7b1d041ff396d96468be30bc4914e626979b3.tar.xz
hercules-f7a7b1d041ff396d96468be30bc4914e626979b3.zip
- Moved perfect_hiding from state to special_state, so that it clears out when you remove your pet.
- Probably fixed the Taekwon Rest skills. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8687 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 5d3ae3f3d..aa5df9d19 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8956,7 +8956,8 @@ static int skill_sit_in (struct block_list *bl, va_list ap)
if(type&2 && (pc_checkskill(sd,TK_HPTIME) > 0 || pc_checkskill(sd,TK_SPTIME) > 0 ))
{
sd->state.rest=1;
- status_calc_regen(bl, status_get_status_data(bl), status_get_regen_data(bl));
+ status_calc_regen(bl, &sd->battle_status, &sd->regen);
+ status_calc_regen_rate(bl, &sd->regen, &sd->sc);
}
return 0;
@@ -8969,8 +8970,11 @@ static int skill_sit_out (struct block_list *bl, va_list ap)
sd=(struct map_session_data*)bl;
if(sd->state.gangsterparadise && type&1)
sd->state.gangsterparadise=0;
- if(sd->state.rest && type&2)
+ if(sd->state.rest && type&2) {
sd->state.rest=0;
+ status_calc_regen(bl, &sd->battle_status, &sd->regen);
+ status_calc_regen_rate(bl, &sd->regen, &sd->sc);
+ }
return 0;
}
@@ -8981,7 +8985,7 @@ int skill_sit (struct map_session_data *sd, int type)
nullpo_retr(0, sd);
- if((lv = pc_checkskill(sd,RG_GANGSTER)) <= 0) {
+ if((lv = pc_checkskill(sd,RG_GANGSTER)) > 0) {
flag|=1;
range = skill_get_splash(RG_GANGSTER, lv);
}