summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-02 20:32:43 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-02 20:32:43 +0000
commit833fa2b474c0eeca359f4f28b09cccd501066918 (patch)
tree22027ae174909ad11109e6abdbff187d1e51b33a /src
parentc8a5f4e2bbf5dd6d92cb78ab865b8fe0f24bb617 (diff)
downloadhercules-833fa2b474c0eeca359f4f28b09cccd501066918.tar.gz
hercules-833fa2b474c0eeca359f4f28b09cccd501066918.tar.bz2
hercules-833fa2b474c0eeca359f4f28b09cccd501066918.tar.xz
hercules-833fa2b474c0eeca359f4f28b09cccd501066918.zip
Little add on NJ_HUUMA
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8069 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 4965b2de9..ad0efe30c 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2012,6 +2012,15 @@ int skill_attack (int attack_type, struct block_list* src, struct block_list *ds
dmg.dmotion = clif_skill_damage(dsrc,bl,tick,dmg.amotion,dmg.dmotion, damage, dmg.div_, skillid, -1, 5);
break;
}
+ case NJ_HUUMA:
+ { //Only display skill animation for skill's target.
+ struct unit_data *ud = unit_bl2ud(src);
+ if (ud && ud->skilltarget == bl->id)
+ dmg.dmotion = clif_skill_damage(dsrc,bl,tick,dmg.amotion,dmg.dmotion, damage, dmg.div_, skillid, (lv!=0)?lv:skilllv, type);
+ else
+ dmg.dmotion = clif_skill_damage(dsrc,bl,tick,dmg.amotion,dmg.dmotion, damage, dmg.div_, 0, -1, type); // Skill_id = 0 => no effect on other targets
+ break;
+ }
case PA_GOSPEL: //Should look like Holy Cross [Skotlex]
dmg.dmotion = clif_skill_damage(dsrc,bl,tick,dmg.amotion,dmg.dmotion, damage, dmg.div_, CR_HOLYCROSS, -1, 5);
break;