summaryrefslogtreecommitdiff
path: root/src/map/mob.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/mob.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/mob.c')
-rw-r--r--src/map/mob.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 574362daa..7ee56773d 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1711,6 +1711,14 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
sp += sd->sp_gain_race[status->race];
sp += sd->sp_gain_race[status->mode&MD_BOSS?RC_BOSS:RC_NONBOSS];
hp += sd->hp_gain_value;
+ if(sd->ud.skillid && skill_get_type(sd->ud.skillid)==BF_MAGIC &&
+ (temp=pc_checkskill(sd,HW_SOULDRAIN))>0 &&
+ skill_get_inf(sd->ud.skillid)!=INF_GROUND_SKILL
+ ){ //Soul Drain should only work on targetted spells [Skotlex]
+ if (pc_issit(sd)) pc_setstand(sd); //Character stuck in attacking animation while 'sitting' fix. [Skotlex]
+ clif_skill_nodamage(src,&md->bl,HW_SOULDRAIN,temp,1);
+ sp += md->level*(95+15*temp)/100;
+ }
if (hp||sp)
status_heal(src, hp, sp, battle_config.show_hp_sp_gain?2:0);
if (sd->mission_mobid == md->class_) { //TK_MISSION [Skotlex]