summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-01 04:00:38 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-01 04:00:38 +0000
commit9297c096f234e6568e22165cac6d8c11f0491b31 (patch)
tree5ae9bbb40762dd88dd58eba937a0ab3c30cf4cba /src/map
parent78314d2fc9e4aa68d0b8557d84f219f9e8827881 (diff)
downloadhercules-9297c096f234e6568e22165cac6d8c11f0491b31.tar.gz
hercules-9297c096f234e6568e22165cac6d8c11f0491b31.tar.bz2
hercules-9297c096f234e6568e22165cac6d8c11f0491b31.tar.xz
hercules-9297c096f234e6568e22165cac6d8c11f0491b31.zip
- Fixed Soul Drain not really giving you SP
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6907 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/skill.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 15b222160..b6ed04147 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1465,12 +1465,7 @@ int skill_counter_additional_effect (struct block_list* src, struct block_list *
if (pc_issit(sd)) pc_setstand(sd); //Character stuck in attacking animation while 'sitting' fix. [Skotlex]
clif_skill_nodamage(src,bl,HW_SOULDRAIN,rate,1);
sp = (status_get_lv(bl))*(95+15*rate)/100;
- if(sp > sd->status.max_sp - sd->status.sp)
- sp = sd->status.max_sp - sd->status.sp;
- if (sp) {
- sd->status.sp += sp;
- clif_heal(sd->fd,SP_SP,sp);
- }
+ status_heal(src, 0, sp, 3);
}
//Trigger counter-spells to retaliate against damage causing skills. [Skotlex]