summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 14:52:59 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 14:52:59 +0000
commit7825f436c4b59d2a38a46a208f7d604c7be21dbe (patch)
tree359c7bbfa3dfd9c6aff8174c2037868c518c3c71 /src/map/skill.c
parent3129c09e75f844e80f4a3b28f09b7bf3b81cdb0e (diff)
downloadhercules-7825f436c4b59d2a38a46a208f7d604c7be21dbe.tar.gz
hercules-7825f436c4b59d2a38a46a208f7d604c7be21dbe.tar.bz2
hercules-7825f436c4b59d2a38a46a208f7d604c7be21dbe.tar.xz
hercules-7825f436c4b59d2a38a46a208f7d604c7be21dbe.zip
- Moved souldrain code from skill_counter_additional_effect to mob_dead. It should display the skill animation correctly now.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7033 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index f6cb70c48..45305ba58 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1448,18 +1448,6 @@ int skill_counter_additional_effect (struct block_list* src, struct block_list *
}
}
- if(sd && bl->type == BL_MOB && status_isdead(bl) &&
- skillid && skill_get_type(skillid)==BF_MAGIC &&
- skill_get_inf(skillid)!=INF_GROUND_SKILL &&
- (rate=pc_checkskill(sd,HW_SOULDRAIN))>0)
- { //Soul Drain should only work on targetted spells [Skotlex]
- int sp;
- 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;
- status_heal(src, 0, sp, 3);
- }
-
//Trigger counter-spells to retaliate against damage causing skills. [Skotlex]
if(dstsd && !status_isdead(bl) && src != bl && !(skillid && skill_get_nk(skillid)&NK_NO_DAMAGE))
{
@@ -5601,7 +5589,7 @@ int skill_castend_id( int tid, unsigned int tick, int id,int data )
if (ud->skilltimer == -1) {
if(md) md->skillidx = -1;
- else ud->skillid = 0; //Non mobs can't clear this one as it is used for skill condition 'afterskill'
+ else ud->skillid = 0; //mobs can't clear this one as it is used for skill condition 'afterskill'
ud->skilllv = ud->skilltarget = 0;
}
return 1;