summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]