diff options
author | Michieru <Michieru@users.noreply.github.com> | 2014-10-27 17:12:44 +0100 |
---|---|---|
committer | Michieru <Michieru@users.noreply.github.com> | 2014-10-27 17:12:44 +0100 |
commit | 9e615051bad4a381f7039055e509d00831209379 (patch) | |
tree | 544416db6ed607daa6df71913c55beb5c98f3d81 | |
parent | bf9e067bf1e5c6bc15d313e0a197fd8f4b2ec131 (diff) | |
parent | f17d1fca535916634a55cc63437ce37f21abe35c (diff) | |
download | hercules-9e615051bad4a381f7039055e509d00831209379.tar.gz hercules-9e615051bad4a381f7039055e509d00831209379.tar.bz2 hercules-9e615051bad4a381f7039055e509d00831209379.tar.xz hercules-9e615051bad4a381f7039055e509d00831209379.zip |
Merge pull request #377 from Ridley8819/master
Fix Gentle Touch Change map-server crash
-rw-r--r-- | src/map/status.c | 2 |
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] } } |