summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-07 18:21:49 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-07 18:21:49 +0000
commit1e1fee4e8e3c9cc5636afcbeeacd9e833a9aecd7 (patch)
tree1ec05ad48ca6a62e7327a8d2c4a22b80de4219ec /src/map/skill.c
parent959387743887e9a57cf31b950f23be9bd34b919f (diff)
downloadhercules-1e1fee4e8e3c9cc5636afcbeeacd9e833a9aecd7.tar.gz
hercules-1e1fee4e8e3c9cc5636afcbeeacd9e833a9aecd7.tar.bz2
hercules-1e1fee4e8e3c9cc5636afcbeeacd9e833a9aecd7.tar.xz
hercules-1e1fee4e8e3c9cc5636afcbeeacd9e833a9aecd7.zip
- Some cleaning of the Sage endow skills.
- Added a check to free a character from memory when changing map servers. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7571 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 5c020b76d..fea16d55f 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3545,9 +3545,10 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
pc_delitem(sd, i, skill_db[skillid].amount[0], 0);
}
// 100% success rate at lv4 & 5, but lasts longer at lv5
- i = skilllv <4?(60+skilllv*10):100;
- i = sc_start(bl,type,i,skilllv,skill_get_time(skillid,skilllv));
- if(!i) {
+ if(!clif_skill_nodamage(src,bl,skillid,skilllv,
+ sc_start(bl,type,(60+skilllv*10),skilllv,
+ skill_get_time(skillid,skilllv)))
+ ) {
if (sd) clif_skill_fail(sd,skillid,0,0);
if (skill_break_equip(bl, EQP_WEAPON, 10000, BCT_PARTY) &&
sd && sd != dstsd)