summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-16 19:59:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-16 19:59:22 +0000
commit6209367816352a8307fc4f84cce54ea781589a8e (patch)
tree22b34008948d458ee04f9626dbc29aa5333c5f5b
parente4206211f72bdd727fccbe2b67d7f5a6b42c7e65 (diff)
downloadhercules-6209367816352a8307fc4f84cce54ea781589a8e.tar.gz
hercules-6209367816352a8307fc4f84cce54ea781589a8e.tar.bz2
hercules-6209367816352a8307fc4f84cce54ea781589a8e.tar.xz
hercules-6209367816352a8307fc4f84cce54ea781589a8e.zip
- Corrected @speed to alter your base speed instead of battle one. Means the change remains for much longer (until status_calc_pc is invoked, which could be due to equipping/unequipping stuff)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7214 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt3
-rw-r--r--src/map/atcommand.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 264615fd7..f9566f4ae 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/06/16
+ * Corrected @speed to alter your base speed instead of battle one. Means
+ the change remains for much longer (until status_calc_pc is invoked, which
+ could be due to equipping/unequipping stuff) [Skotlex]
* Modified the bNoMagicDamage/bNoWeaponDamage bonuses to be a 0-100
setting. Meaning you can do bonus bNoMagicDamage,50; To make all magic
damage be reduced by half. This bonus stack, so two cards with
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 073382f71..189b54f71 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2113,8 +2113,8 @@ int atcommand_speed(
speed = atoi(message);
if (speed >= MIN_WALK_SPEED && speed <= MAX_WALK_SPEED) {
- sd->battle_status.speed = speed;
- clif_updatestatus(sd, SP_SPEED);
+ sd->base_status.speed = speed;
+ status_calc_bl(&sd->bl, SCB_SPEED);
clif_displaymessage(fd, msg_table[8]); // Speed changed.
} else {
sprintf(atcmd_output, "Please, enter a valid speed value (usage: @speed <%d-%d>).", MIN_WALK_SPEED, MAX_WALK_SPEED);