summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-12 18:02:41 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-12 18:02:41 +0000
commit16c5028d6274e5c1a21dfcc0f26f926597ff2edd (patch)
tree18dafae15f96bf4403e492da64ea473513890760 /src/map/atcommand.c
parent97353c7d82e3537982d2687f3b16a6c92e25b33b (diff)
downloadhercules-16c5028d6274e5c1a21dfcc0f26f926597ff2edd.tar.gz
hercules-16c5028d6274e5c1a21dfcc0f26f926597ff2edd.tar.bz2
hercules-16c5028d6274e5c1a21dfcc0f26f926597ff2edd.tar.xz
hercules-16c5028d6274e5c1a21dfcc0f26f926597ff2edd.zip
- Corrected range of self destruction / bio explosion to be equal to their splash range.
- Corrected Spider Web casting around caster instead of target's position - Corrected a possible crash during login due to checking for the incorrect variable (lets pc_calc_status be invoked when it shouldn't) - Reenabled the base status aspd calculation for homunc (status_calc_bl calculates battle_status, status_calc_homunculus calculates base_status, they are not the same!) - Corrected the meaning of "skill_display_fail&2", made 2 the default setting. - Added bounds checking to map_foreachincell - Opt2 values (poison, blind, and so on) are now resent on warp/map-change - Corrected description of isloggedin script command. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9853 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index d0fbdf291..9a427547c 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -4167,14 +4167,14 @@ int atcommand_stat_all(const int fd, struct map_session_data* sd, const char* co
*status[index] = new_value;
clif_updatestatus(sd, SP_STR + index);
clif_updatestatus(sd, SP_USTR + index);
- status_calc_pc(sd, 0);
count++;
}
}
- if (count > 0) // if at least 1 stat modified
+ if (count > 0) { // if at least 1 stat modified
+ status_calc_pc(sd, 0);
clif_displaymessage(fd, msg_txt(84)); // All stats changed!
- else {
+ } else {
if (value < 0)
clif_displaymessage(fd, msg_txt(177)); // Impossible to decrease a stat.
else