From 781818eb4fe809b3cc787b26b110d83280385b46 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 14 Jul 2006 01:15:08 +0000 Subject: - Tuned up some more NJ_KAENSIN based on Tharis's information. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7665 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/map/skill.c b/src/map/skill.c index b55c6bea8..be9343d7a 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6408,7 +6408,7 @@ struct skill_unit_group *skill_unitsetting (struct block_list *src, int skillid, if (sd) val1 = sd->status.child; break; case NJ_KAENSIN: - val1 = (skilllv+1)/2 + 4; + val2 = (skilllv+1)/2 + 4; skill_clear_group(src,1); break; @@ -6461,6 +6461,7 @@ struct skill_unit_group *skill_unitsetting (struct block_list *src, int skillid, uy = y + layout->dy[i]; switch (skillid) { case MG_FIREWALL: /* ファイヤーウォール */ + case NJ_KAENSIN: val2=group->val2; break; case WZ_ICEWALL: /* アイスウォール */ @@ -7031,8 +7032,8 @@ int skill_unit_onplace_timer (struct skill_unit *src, struct block_list *bl, uns case UNT_KAENSIN: skill_attack(BF_MAGIC,ss,&src->bl,bl,sg->skill_id,sg->skill_lv,tick,0); - if (--sg->val1 <= 0) - skill_delunitgroup(NULL,sg); + if (--src->val2 <= 0) + skill_delunit(src); break; } -- cgit v1.2.3-70-g09d2