summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-10 20:32:31 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-10 20:32:31 +0000
commit1fb8ea107a7b638e3b785364d69fc18f05a99c2b (patch)
tree8f36d57982f1d9da1f4d855210485c1527fc08e9
parent91f9047dcf18bdccda51c1066d6d0d76ababa61c (diff)
downloadhercules-1fb8ea107a7b638e3b785364d69fc18f05a99c2b.tar.gz
hercules-1fb8ea107a7b638e3b785364d69fc18f05a99c2b.tar.bz2
hercules-1fb8ea107a7b638e3b785364d69fc18f05a99c2b.tar.xz
hercules-1fb8ea107a7b638e3b785364d69fc18f05a99c2b.zip
Made bAtkRate add the rate rather than setting it. (bugreport:4499)
Warning: This will break backwards compatibility for item scripts which rely on the previous effect for this (although most people assumed it added, as described in the bonus doc). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14456 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/map/battle.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 706ac02f2..488fb69e5 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -1,6 +1,7 @@
Date Added
2010/11/10
+ * Made bAtkRate add the rate rather than setting it. (bugreport:4499) [Paradox924X]
* Added an item_delay database usable for item-specific use delays. [Paradox924X]
2010/11/09
* Use packet 0xe7 instead of 0x1f5 within clif_tradestart() when there is no trade_partner (or an invalid one) specified even for PACKETVER >= 6. (bugreport:4544) [Paradox924X]
diff --git a/src/map/battle.c b/src/map/battle.c
index fde6402a3..19bea1036 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1396,7 +1396,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
if(sd)
{
if (sd->atk_rate != 100)
- ATK_RATE(sd->atk_rate);
+ ATK_ADDRATE(sd->atk_rate);
if(flag.cri && sd->crit_atk_rate)
ATK_ADDRATE(sd->crit_atk_rate);