From 0fcfb97f9aab16e782440a9f785dba45e89213d4 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 26 Jun 2006 13:47:01 +0000 Subject: - Autospells will now again check for the skill's nk value, so that skills tagged "nodamage" skills will not trigger autospells. - A bit of cleaning in pc_equippoint - Corrected clif_item_sub so that pet eggs will correctly be sent as equipment (fixes them showing up "broken" and with random refine levels) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7341 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index f787bf5fd..a849e55b2 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1336,10 +1336,8 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int } //Reports say that autospell effects get triggered on skills and pretty much everything including splash attacks. [Skotlex] - //No need to check the NK value as this function is only called on attacks - //(or stuff that should invoke these things. - if(sd && !status_isdead(bl) && src != bl/* && - !(skillid && skill_get_nk(skillid)&NK_NO_DAMAGE)*/) { + if(sd && !status_isdead(bl) && src != bl && + !(skillid && skill_get_nk(skillid)&NK_NO_DAMAGE)) { struct block_list *tbl; struct unit_data *ud; int i, skilllv; -- cgit v1.2.3-60-g2f50