diff options
author | Nihadm89 <nihadm89@hotmail.com> | 2015-02-10 11:49:56 -0500 |
---|---|---|
committer | Nihadm89 <nihadm89@hotmail.com> | 2015-02-10 11:49:56 -0500 |
commit | 3575c7985a1ed1c8e94f7a468de95909741aa473 (patch) | |
tree | 08ebcf4f73b5a70497422efa8760738d6b7e36e7 /src/map/status.c | |
parent | 56c4c0d997f0776c606a9a9594772f86ea181b68 (diff) | |
download | hercules-3575c7985a1ed1c8e94f7a468de95909741aa473.tar.gz hercules-3575c7985a1ed1c8e94f7a468de95909741aa473.tar.bz2 hercules-3575c7985a1ed1c8e94f7a468de95909741aa473.tar.xz hercules-3575c7985a1ed1c8e94f7a468de95909741aa473.zip |
Fixing Prestige formula
It was giving too much def. Adjusted and confirmed with malufett
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c index 3da0238c5..296bbe1f3 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -5064,7 +5064,7 @@ defType status_calc_def(struct block_list *bl, struct status_change *sc, int def if (sc->data[SC_SHIELDSPELL_REF] && sc->data[SC_SHIELDSPELL_REF]->val1 == 2) def += sc->data[SC_SHIELDSPELL_REF]->val2; if (sc->data[SC_PRESTIGE]) - def += def * sc->data[SC_PRESTIGE]->val1 / 100; + def += sc->data[SC_PRESTIGE]->val1; if (sc->data[SC_VOLCANIC_ASH] && (bl->type==BL_MOB)) { if (status_get_race(bl)==RC_PLANT) def /= 2; @@ -8836,7 +8836,7 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t val1 *= 15; // Defence added if( sd ) val1 += 10 * pc->checkskill(sd,CR_DEFENDER); - val1 *= status->get_lv(bl) / 100; + val1 = val1 * status->get_lv(bl) / 100; break; case SC_BANDING: tick_time = 5000; // [GodLesZ] tick time |