diff options
author | Playtester <Playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-17 15:04:20 +0000 |
---|---|---|
committer | Playtester <Playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-17 15:04:20 +0000 |
commit | c6e045bbfd4c9d989d6e77c282147c54638c8df5 (patch) | |
tree | d024d0532d85af23e9ad17c725f893f08fd8e50a | |
parent | d07e61fc333613cb44a97403442f5d2f329cca1c (diff) | |
download | hercules-c6e045bbfd4c9d989d6e77c282147c54638c8df5.tar.gz hercules-c6e045bbfd4c9d989d6e77c282147c54638c8df5.tar.bz2 hercules-c6e045bbfd4c9d989d6e77c282147c54638c8df5.tar.xz hercules-c6e045bbfd4c9d989d6e77c282147c54638c8df5.zip |
* Monocell, Instant Death and Class Change will now fail on bosses (bugreport:2907)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13783 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/skill.c | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 2a68cd1de..ba842f769 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,8 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +09/05/17 + * Monocell, Instant Death and Class Change will now fail on bosses (bugreport:2907) [Playtester] 09/05/15 * AutoSpellWhenHit now triggers on normal+skill by default (bugreport:1652) [Playtester] * Removed the undocumented custom level feature from monster spawn lines (bugreport:3076) [ultramage] diff --git a/src/map/skill.c b/src/map/skill.c index cc3c034dc..9f7ec7b15 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -3320,6 +3320,11 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in case SA_MONOCELL: if (dstmd) { + if ( dstmd->status.mode&MD_BOSS ) + { + clif_skill_fail(sd,skillid,0,0); + break; + } int class_ = skillid==SA_MONOCELL?1002:mob_get_random_id(2, 1, 0); clif_skill_nodamage(src,bl,skillid,skilllv,1); mob_class_change(dstmd,class_); @@ -3334,6 +3339,11 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in } break; case SA_DEATH: + if ( dstmd && dstmd->status.mode&MD_BOSS ) + { + clif_skill_fail(sd,skillid,0,0); + break; + } clif_skill_nodamage(src,bl,skillid,skilllv,1); status_kill(bl); break; |