From 2dccb6282656562bb0a5a7af6b9cd8677dc4e9c6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 7 Apr 2008 04:55:26 +0000 Subject: -Sight rasher now affects the wizard's own and other's icewalls. -Sight rasher, sight blaster, and arrow shower are now the only three skills that will affect traps. (bugreport:59) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12516 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index fd7d3994d..1ba45bbed 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1624,10 +1624,13 @@ int skill_attack (int attack_type, struct block_list* src, struct block_list *ds clif_skillinfoblock(tsd); } } - if (skillid != WZ_HEAVENDRIVE && bl->type == BL_SKILL && damage > 0) { + if (skillid != WZ_SIGHTRASHER && + skillid != WZ_SIGHTBLASTER && + skillid != AC_SHOWER && + bl->type == BL_SKILL && damage > 0) { struct skill_unit* su = (struct skill_unit*)bl; if (su->group && skill_get_inf2(su->group->skill_id)&INF2_TRAP) - damage = 0; //Only Heaven's drive may damage traps. [Skotlex] + damage = 0; //Sight rasher, blaster, and arrow shower may dmg traps. [Kevin] } if (dmg.dmg_lv == ATK_DEF && (type = skill_get_walkdelay(skillid, skilllv)) > 0) @@ -3632,7 +3635,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in status_change_end(src,SC_SIGHT,-1); clif_skill_nodamage(src,bl,skillid,skilllv,1); map_foreachinrange(skill_area_sub,src, - skill_get_splash(skillid, skilllv),splash_target(src), + skill_get_splash(skillid, skilllv),BL_CHAR|BL_SKILL, src,skillid,skilllv,tick, flag|BCT_ENEMY|1, skill_castend_damage_id); break; -- cgit v1.2.3-70-g09d2