summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-01-10 05:54:28 +0000
committerrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-01-10 05:54:28 +0000
commitbac08d580258b69b365db32ab1705df232851c5b (patch)
tree9f1e3ca599e89419b1486055c45732b5f6676f29 /src/map/skill.c
parentca217557a8f647f06e11a1d89592bc0b1c4d1b3e (diff)
downloadhercules-bac08d580258b69b365db32ab1705df232851c5b.tar.gz
hercules-bac08d580258b69b365db32ab1705df232851c5b.tar.bz2
hercules-bac08d580258b69b365db32ab1705df232851c5b.tar.xz
hercules-bac08d580258b69b365db32ab1705df232851c5b.zip
Fixed bugreport:7151 where NJ_ISSEN don't consume HP on plant type monsters.
Fixed bugreport:7154 where RC_BOSS type monsters are not immune with SC_DEEPSLEEP. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17090 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 03e4c4baf..757165107 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3714,7 +3714,14 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, uint
#ifdef RENEWAL
sc_start(src,SC_EXTREMITYFIST2,100,skill_lv,skill_get_time(skill_id,skill_lv));
#endif
- }
+ }else
+ status_set_hp(src,
+#ifdef RENEWAL
+ max(status_get_max_hp(src)/100, 1)
+#else
+ 1
+#endif
+ , 0);
dir = map_calc_dir(src,bl->x,bl->y);
if( dir > 0 && dir < 4) x = -i;