summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-06-17 00:31:23 -0700
committermalufett <malufett.eat.my.binaries@gmail.com>2013-06-17 00:31:23 -0700
commit962d203f95fd8b81d504f60aa28bb17cc268395d (patch)
treeee135ec397a8eceb679db918614084a32cc96952 /src/map/battle.c
parent23167727ed5e798f12e2b9140b405b83003186e7 (diff)
downloadhercules-962d203f95fd8b81d504f60aa28bb17cc268395d.tar.gz
hercules-962d203f95fd8b81d504f60aa28bb17cc268395d.tar.bz2
hercules-962d203f95fd8b81d504f60aa28bb17cc268395d.tar.xz
hercules-962d203f95fd8b81d504f60aa28bb17cc268395d.zip
Fixed Bug#7380
-showprogressbar should now work as official.(Thanks Kyeme & Ryuuzaki) Fixed insane damage of Hatred Skills. (http://hercules.ws/board/topic/1110-renewal-attack/ - Thanks Axiom)
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 31fe502f6..731c6f618 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -753,8 +753,8 @@ int battle_calc_masteryfix(struct block_list *src, struct block_list *target, ui
int ratio = sd->status.base_level + status_get_dex(src) + status_get_luk(src);
if ( i == 2 ) ratio += status_get_str(src); //Star Anger
if (skill < 4 )
- ratio /= 12 - 3 * skill;
- damage += damage * ratio;
+ ratio /= (12 - 3 * skill);
+ damage += damage * ratio / 100;
}
if( sc ){