diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-10-27 13:54:23 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-10-27 13:54:23 +0000 |
commit | 5612c2738964c0747ecf754b7cf5f834b3e09cef (patch) | |
tree | cc99b8951fbcce5503b1df3762fbf6ef17790c3f /src/map/skill.c | |
parent | 8868ae19d71ef5b73fe54d08471da78e0b2e9b38 (diff) | |
download | hercules-5612c2738964c0747ecf754b7cf5f834b3e09cef.tar.gz hercules-5612c2738964c0747ecf754b7cf5f834b3e09cef.tar.bz2 hercules-5612c2738964c0747ecf754b7cf5f834b3e09cef.tar.xz hercules-5612c2738964c0747ecf754b7cf5f834b3e09cef.zip |
Fixed quest will never get erased when it's the only quest you have.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14105 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index a36168191..6b19d23d6 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -5670,14 +5670,20 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in case NPC_WIDESTUN: case NPC_SLOWCAST: case NPC_WIDEHELLDIGNITY: - case NPC_WIDESOULDRAIN: if (flag&1) - { - if( skillid == NPC_WIDESOULDRAIN ) - status_percent_damage(src,bl,0,((skilllv-1)%5+1)*20,false); - else - sc_start(bl,type,100,skilllv,skill_get_time2(skillid,skilllv)); + sc_start(bl,type,100,skilllv,skill_get_time2(skillid,skilllv)); + else { + skill_area_temp[2] = 0; //For SD_PREAMBLE + clif_skill_nodamage(src,bl,skillid,skilllv,1); + map_foreachinrange(skill_area_sub, bl, + skill_get_splash(skillid, skilllv),BL_CHAR, + src,skillid,skilllv,tick, flag|BCT_ENEMY|SD_PREAMBLE|1, + skill_castend_nodamage_id); } + break; + case NPC_WIDESOULDRAIN: + if (flag&1) + status_percent_damage(src,bl,0,((skilllv-1)%5+1)*20,false); else { skill_area_temp[2] = 0; //For SD_PREAMBLE clif_skill_nodamage(src,bl,skillid,skilllv,1); |