summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2014-10-30 13:03:25 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2014-10-30 13:03:25 +0800
commit04c7b7326365c4f68e64875ca3519a20c1f81b79 (patch)
tree746576f7e1ab549fafa1919975b10ab2e067ca58
parent5a55c6f349b2f094494d83f3012004a76ed934a0 (diff)
downloadhercules-04c7b7326365c4f68e64875ca3519a20c1f81b79.tar.gz
hercules-04c7b7326365c4f68e64875ca3519a20c1f81b79.tar.bz2
hercules-04c7b7326365c4f68e64875ca3519a20c1f81b79.tar.xz
hercules-04c7b7326365c4f68e64875ca3519a20c1f81b79.zip
Fixed Bug#7915
-http://hercules.ws/board/tracker/issue-7915-mind-breaker/ Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
-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 524d5b6a7..7ae6606e3 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -4713,6 +4713,8 @@ unsigned short status_calc_matk(struct block_list *bl, struct status_change *sc,
if( !viewable ){
/* some statuses that are hidden in the status window */
+ if (sc->data[SC_MINDBREAKER])
+ matk += matk * sc->data[SC_MINDBREAKER]->val2/100;
return (unsigned short)cap_value(matk,0,USHRT_MAX);
}
@@ -4737,8 +4739,6 @@ unsigned short status_calc_matk(struct block_list *bl, struct status_change *sc,
if (sc->data[SC_IZAYOI])
matk += 25 * sc->data[SC_IZAYOI]->val1;
#endif
- if (sc->data[SC_MINDBREAKER])
- matk += matk * sc->data[SC_MINDBREAKER]->val2/100;
if( sc->data[SC_ZANGETSU] )
matk += sc->data[SC_ZANGETSU]->val3;
if (sc->data[SC_MAGICPOWER] && sc->data[SC_MAGICPOWER]->val4)