From 6209367816352a8307fc4f84cce54ea781589a8e Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 16 Jun 2006 19:59:22 +0000 Subject: - 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 --- Changelog-Trunk.txt | 3 +++ src/map/atcommand.c | 4 ++-- 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); -- cgit v1.2.3-70-g09d2