summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2015-02-11 23:54:43 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2015-02-11 23:54:43 +0800
commit062eaaa6509a6f10f7166e60b59e90835c3d2964 (patch)
tree08ebcf4f73b5a70497422efa8760738d6b7e36e7
parent56c4c0d997f0776c606a9a9594772f86ea181b68 (diff)
parent3575c7985a1ed1c8e94f7a468de95909741aa473 (diff)
downloadhercules-062eaaa6509a6f10f7166e60b59e90835c3d2964.tar.gz
hercules-062eaaa6509a6f10f7166e60b59e90835c3d2964.tar.bz2
hercules-062eaaa6509a6f10f7166e60b59e90835c3d2964.tar.xz
hercules-062eaaa6509a6f10f7166e60b59e90835c3d2964.zip
Merge pull request #460 from Nihadm89/patch-2
Fixed LG_PRESTIGE DEF formula
-rw-r--r--src/map/status.c4
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