summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-08-10 13:38:08 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2013-08-10 13:38:08 +0800
commitd8b2eb622f14e10e4da0e521deb5dee6e849affa (patch)
treee9a19fee9cff67b79ad50224d821d6cf6e51f650 /src/map/status.c
parent1197e46b6ca1f399edc18fbd60a3e2c4adf6c32f (diff)
downloadhercules-d8b2eb622f14e10e4da0e521deb5dee6e849affa.tar.gz
hercules-d8b2eb622f14e10e4da0e521deb5dee6e849affa.tar.bz2
hercules-d8b2eb622f14e10e4da0e521deb5dee6e849affa.tar.xz
hercules-d8b2eb622f14e10e4da0e521deb5dee6e849affa.zip
Fixed Bug#7643
-Fixed SC_ZANGETSU glitch formula. Fixed Bug#7582 -Where quest log's monster counter is not displaying properly. -Fixed renewal atk having wrong parenthesis for variance atk formula. Special Thanks to: Michieru and CottonCandy Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 5928e9550..e7c3eaece 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -8680,10 +8680,10 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
tick_time = 1000;
break;
case SC_ZANGETSU:
- val2 = iStatus->get_lv(bl) / 3 + 20 * val1;
+ val2 = val4 = iStatus->get_lv(bl) / 3 + 20 * val1;
val3 = iStatus->get_lv(bl) / 2 + 30 * val1;
val2 = (!(status_get_hp(bl)%2) ? val2 : -val3);
- val3 = (!(status_get_sp(bl)%2) ? val2 : -val3);
+ val3 = (!(status_get_sp(bl)%2) ? val4 : -val3);
break;
case SC_GENSOU:
{
@@ -10932,8 +10932,8 @@ int status_get_weapon_atk(struct block_list *bl, struct weapon_atk *watk, int fl
variance = 5.0f * watk->atk * watk->wlv / 100.0f;
strdex_bonus = watk->atk * dstr / 200.0f;
- min = (watk->atk - (int)(variance + strdex_bonus)) + watk->atk2;
- max = (watk->atk + (int)(variance + strdex_bonus)) + watk->atk2;
+ min = (int)(watk->atk - variance + strdex_bonus) + watk->atk2;
+ max = (int)(watk->atk + variance + strdex_bonus) + watk->atk2;
}else if( watk->atk ){
min = watk->atk * 80 / 100;
max = watk->atk * 120 / 100;