diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-03 21:46:59 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-03 21:46:59 +0000 |
commit | d44ca6520a2755831e7e9cca47da64531d449a64 (patch) | |
tree | 262d773201dee186f99b289d525b5b2ad70ab45b /src/map/skill.c | |
parent | 8dbe82d0e5d5e862679695f75087de657ca4d8d0 (diff) | |
download | hercules-d44ca6520a2755831e7e9cca47da64531d449a64.tar.gz hercules-d44ca6520a2755831e7e9cca47da64531d449a64.tar.bz2 hercules-d44ca6520a2755831e7e9cca47da64531d449a64.tar.xz hercules-d44ca6520a2755831e7e9cca47da64531d449a64.zip |
Fixed Self Destruction from hitting hidden characters, bugreport:310
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15371 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index de6349746..b612e6c2f 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -3535,8 +3535,12 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int } break; + case NPC_SELFDESTRUCTION: { + struct status_change *tsc = NULL; + if( (tsc = status_get_sc(bl)) && tsc->data[SC_HIDING] ) + break; + } case HVAN_EXPLOSION: - case NPC_SELFDESTRUCTION: if (src != bl) skill_attack(BF_MISC,src,src,bl,skillid,skilllv,tick,flag); break; |