From 833fa2b474c0eeca359f4f28b09cccd501066918 Mon Sep 17 00:00:00 2001 From: toms Date: Wed, 2 Aug 2006 20:32:43 +0000 Subject: Little add on NJ_HUUMA git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8069 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/map/skill.c | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 7193d854a..e84bc2143 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/08/02 + * Little add on NJ_HUUMA [Toms] * Merged Mpeg's work on Ninja skills [Toms] * Fixed Martyr's Reckoning having a cap damage of 32k. [Skotlex] * Now you can teleport in Thanatos Boss room, but you can't respawn there [Playtester] 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; -- cgit v1.2.3-70-g09d2