summaryrefslogtreecommitdiff
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
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
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/map/skill.c7
2 files changed, 2 insertions, 6 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 5b7031b7b..e494dbc2c 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/05/31
+ * Fixed Soul Drain not really giving you SP [Skotlex]
* [Fixed]:
- Suppressed compilation warning in chrif.c [Lance]
* [Fixed]:
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]