summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorgreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-22 00:10:08 +0000
committergreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-22 00:10:08 +0000
commitf4fe3b62d35fe1856f31a3e6f572bd2d3970a7cd (patch)
tree6b2846a269f492648e7bf285ae90737eda322013 /src/map/skill.c
parentb37efb0fe8c81e15c1cee646cc8c7bf344c9ead6 (diff)
downloadhercules-f4fe3b62d35fe1856f31a3e6f572bd2d3970a7cd.tar.gz
hercules-f4fe3b62d35fe1856f31a3e6f572bd2d3970a7cd.tar.bz2
hercules-f4fe3b62d35fe1856f31a3e6f572bd2d3970a7cd.tar.xz
hercules-f4fe3b62d35fe1856f31a3e6f572bd2d3970a7cd.zip
Fixed bugreport:5537 SR_GENTLETOUCH_CURE now acts with official behavior.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15910 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c43
1 files changed, 27 insertions, 16 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 3000023d3..1e8f57c5a 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8091,23 +8091,34 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
break;
case SR_GENTLETOUCH_CURE:
- if( status_isimmune(bl) ) {
- clif_skill_nodamage(src,bl,skillid,skilllv,0);
- break;
- }
- if( (tsc && tsc->opt1) && rand()%100 < 5 * skilllv ) {
- status_change_end(bl, SC_STONE, -1 );
- status_change_end(bl, SC_FREEZE, -1 );
- status_change_end(bl, SC_STUN, -1 );
- status_change_end(bl, SC_POISON, -1 );
- status_change_end(bl, SC_SILENCE, -1 );
- status_change_end(bl, SC_BLIND, -1 );
- status_change_end(bl, SC_HALLUCINATION, -1 );
- status_change_end(bl, SC_BURNING, -1 );
- status_change_end(bl, SC_FREEZING, -1 );
- skill_castend_nodamage_id(src, bl, AL_HEAL, skilllv, tick, flag);
+ {
+ int heal;
+
+ if( status_isimmune(bl) )
+ {
+ clif_skill_nodamage(src,bl,skillid,skilllv,0);
+ break;
+ }
+
+ heal = 120 * skilllv + status_get_max_hp(bl) * (2 + skilllv) / 100;
+ status_heal(bl, heal, 0, 0);
+ clif_skill_nodamage(src, bl, AL_HEAL, heal, 1);
+
+ if( (tsc && tsc->opt1) && (rnd()%100 < ((skilllv * 5) + (status_get_dex(src) + status_get_lv(src)) / 4) - (1 + (rnd() % 10))) )
+ {
+ status_change_end(bl, SC_STONE, INVALID_TIMER);
+ status_change_end(bl, SC_FREEZE, INVALID_TIMER);
+ status_change_end(bl, SC_STUN, INVALID_TIMER);
+ status_change_end(bl, SC_POISON, INVALID_TIMER);
+ status_change_end(bl, SC_SILENCE, INVALID_TIMER);
+ status_change_end(bl, SC_BLIND, INVALID_TIMER);
+ status_change_end(bl, SC_HALLUCINATION, INVALID_TIMER);
+ status_change_end(bl, SC_BURNING, INVALID_TIMER);
+ status_change_end(bl, SC_FREEZING, INVALID_TIMER);
+ }
+
+ clif_skill_nodamage(src,bl,skillid,skilllv,1);
}
- clif_skill_nodamage(src,bl,skillid,skilllv,1);
break;
case WA_SWING_DANCE:
case WA_MOONLIT_SERENADE: