summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-21 07:41:52 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-21 07:41:52 +0000
commit8ea7fcb1f388e9049029d2c8c77b5894f95d7b3c (patch)
treeca6cc5e4e6e70bc9796f89cf857f0b2f4590ca27 /src/map/skill.c
parent2da86f6d3ab9e5ed7cdd2d37337f2c5803ddb94e (diff)
downloadhercules-8ea7fcb1f388e9049029d2c8c77b5894f95d7b3c.tar.gz
hercules-8ea7fcb1f388e9049029d2c8c77b5894f95d7b3c.tar.bz2
hercules-8ea7fcb1f388e9049029d2c8c77b5894f95d7b3c.tar.xz
hercules-8ea7fcb1f388e9049029d2c8c77b5894f95d7b3c.zip
- Optimized some code about @size changes in chars.
- Fixed #jailtime (Bug Report 853) crash. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12117 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index e40658d85..b8107ffaa 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3094,8 +3094,9 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
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_);
- if (tsc) {
- const int scs[] = { SC_QUAGMIRE, SC_PROVOKE, SC_ROKISWEIL, SC_GRAVITATION, SC_SUITON, SC_STRIPWEAPON, SC_STRIPSHIELD, SC_STRIPARMOR, SC_STRIPHELM, SC_BLADESTOP };
+ if( tsc && dstmd->status.mode&MD_BOSS )
+ {
+ const int scs[] = { SC_QUAGMIRE, SC_PROVOKE, SC_ROKISWEIL, SC_GRAVITATION, SC_SUITON, SC_STRIPWEAPON, SC_STRIPSHIELD, SC_STRIPARMOR, SC_STRIPHELM, SC_BLADESTOP };
for (i = SC_COMMON_MIN; i <= SC_COMMON_MAX; i++)
if (tsc->data[i]) status_change_end(bl, i, -1);
for (i = 0; i < ARRAYLENGTH(scs); i++)