From 16c5028d6274e5c1a21dfcc0f26f926597ff2edd Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 12 Feb 2007 18:02:41 +0000 Subject: - 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 --- src/map/atcommand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/atcommand.c') 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 -- cgit v1.2.3-60-g2f50