diff options
author | Kevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-07 22:25:22 +0000 |
---|---|---|
committer | Kevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-07 22:25:22 +0000 |
commit | a2a9d9d23a168313d6eab7efbc084ca9770f1ff5 (patch) | |
tree | 9ee220c98aea4c78cf1ceb9655afccf5c983ce3d /src/map | |
parent | cfc7ee65d8663665d8490067ed591b21ee31a3ad (diff) | |
download | hercules-a2a9d9d23a168313d6eab7efbc084ca9770f1ff5.tar.gz hercules-a2a9d9d23a168313d6eab7efbc084ca9770f1ff5.tar.bz2 hercules-a2a9d9d23a168313d6eab7efbc084ca9770f1ff5.tar.xz hercules-a2a9d9d23a168313d6eab7efbc084ca9770f1ff5.zip |
Immunity to magic now makes you immune to the SC effect as well. (bugreport:1277)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12527 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index cd2b5fc4d..5b0a21154 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -2197,6 +2197,9 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int if (skillid && skill_get_type(skillid) == BF_MAGIC && status_isimmune(bl) == 100) { //GTB makes all targetted magic display miss with a single bolt. + sc_type sct = status_skill2sc(skillid); + if(sct != SC_NONE) + status_change_end(bl, sct, -1); clif_skill_damage(src, bl, tick, status_get_amotion(src), status_get_dmotion(bl), 0, 1, skillid, skilllv, skill_get_hit(skillid)); return 1; } |