From 945b24704d229b4211762f6504260f4e0980608e Mon Sep 17 00:00:00 2001 From: protimus Date: Thu, 29 Dec 2011 19:56:48 +0000 Subject: Fixed Dragon Breath don't causes damage on hidden enemies. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15316 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/map/skill.c b/src/map/skill.c index 1cdbd7e49..73303b25c 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -2877,7 +2877,7 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int { struct map_session_data *sd = NULL; struct status_data *tstatus; - struct status_change *sc; + struct status_change *sc, *tsc; if (skillid > 0 && skilllv <= 0) return 0; @@ -3520,11 +3520,16 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int case NPC_SMOKING: case GS_FLING: case NJ_ZENYNAGE: + skill_attack(BF_MISC,src,src,bl,skillid,skilllv,tick,flag); + break; /** * Rune Knight **/ case RK_DRAGONBREATH: - skill_attack(BF_MISC,src,src,bl,skillid,skilllv,tick,flag); + if( tsc && (tsc->data[SC_HIDING] )) { + clif_skill_nodamage(src,src,skillid,skilllv,1); + } else + skill_attack(BF_MISC,src,src,bl,skillid,skilllv,tick,flag); break; case HVAN_EXPLOSION: -- cgit v1.2.3-70-g09d2