summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorRidley8819 <ridley8819@gmail.com>2014-10-27 15:29:21 +0100
committerRidley8819 <ridley8819@gmail.com>2014-10-27 15:29:21 +0100
commitf17d1fca535916634a55cc63437ce37f21abe35c (patch)
tree544416db6ed607daa6df71913c55beb5c98f3d81 /src/map/status.c
parentbf9e067bf1e5c6bc15d313e0a197fd8f4b2ec131 (diff)
downloadhercules-f17d1fca535916634a55cc63437ce37f21abe35c.tar.gz
hercules-f17d1fca535916634a55cc63437ce37f21abe35c.tar.bz2
hercules-f17d1fca535916634a55cc63437ce37f21abe35c.tar.xz
hercules-f17d1fca535916634a55cc63437ce37f21abe35c.zip
Fix Gentle Touch Change map-server crash
Report:8415 http://hercules.ws/board/tracker/issue-8415-gentle-touch-change-crash/
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index ac7d7d237..824ad1f58 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -8798,7 +8798,7 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t
struct block_list * src2;
val3 = st->agi * val1 / 60; // ASPD increase: [(Target AGI x Skill Level) / 60] %
if( (src2 = map->id2bl(val2)) ){
- val4 = ( 200/status_get_int(src2)?status_get_int(src2):1 ) * val1;// MDEF decrease: MDEF [(200 / Caster INT) x Skill Level]
+ val4 = ( 200/(status_get_int(src2)?status_get_int(src2):1) ) * val1;// MDEF decrease: MDEF [(200 / Caster INT) x Skill Level]
val2 = ( status_get_dex(src2)/4 + status_get_str(src2)/2 ) * val1 / 5; // ATK increase: ATK [{(Caster DEX / 4) + (Caster STR / 2)} x Skill Level / 5]
}
}