summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcsnv <ctt@csnv.es>2014-09-06 17:44:16 +0200
committercsnv <ctt@csnv.es>2014-09-06 17:44:16 +0200
commit818823f51d1c995883568200f0de791ee42b3e48 (patch)
tree641ced4e769387873efde160df23ca2b826dd17a /src
parent41e2a782a7c86140a2440b67258c428e09113195 (diff)
downloadhercules-818823f51d1c995883568200f0de791ee42b3e48.tar.gz
hercules-818823f51d1c995883568200f0de791ee42b3e48.tar.bz2
hercules-818823f51d1c995883568200f0de791ee42b3e48.tar.xz
hercules-818823f51d1c995883568200f0de791ee42b3e48.zip
Fix ASPD bonus with some skills
Bug introduced in ca9b662d436d16c4ea5244cef51a2fb41eccf23d
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c1
-rw-r--r--src/map/status.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 94aa32599..73a51bfaf 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -11021,6 +11021,7 @@ struct skill_unit_group* skill_unitsetting(struct block_list *src, uint16 skill_
val1 = 10 + skill_lv + (st->agi/10); // ASPD increase
if(sd)
val1 += (pc->checkskill(sd,BA_MUSICALLESSON) + 1) / 2;
+ val1 *= 10; // ASPD works with 1000 as 100%
break;
case DC_FORTUNEKISS:
val1 = 10+skill_lv+(st->luk/10); // Critical increase
diff --git a/src/map/status.c b/src/map/status.c
index f20fc3fc1..4b22251e6 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -5569,7 +5569,8 @@ short status_calc_aspd_rate(struct block_list *bl, struct status_change *sc, int
max = sc->data[SC_ASSNCROS]->val2;
}
}
- aspd_rate -= 10 * max; // let's multiply here for consistency
+
+ aspd_rate -= max;
if(sc->data[SC_BERSERK])
aspd_rate -= 300;