summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprotimus <protimus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 19:56:48 +0000
committerprotimus <protimus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 19:56:48 +0000
commit945b24704d229b4211762f6504260f4e0980608e (patch)
tree80b9836a7beec686af3580a6f7c6a3ef46295a8b
parent436c70610126315020a83ac11d3b2ffc8afe06a5 (diff)
downloadhercules-945b24704d229b4211762f6504260f4e0980608e.tar.gz
hercules-945b24704d229b4211762f6504260f4e0980608e.tar.bz2
hercules-945b24704d229b4211762f6504260f4e0980608e.tar.xz
hercules-945b24704d229b4211762f6504260f4e0980608e.zip
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
-rw-r--r--src/map/skill.c9
1 files changed, 7 insertions, 2 deletions
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: