summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/atcommand.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index d9a826e04..597f278fb 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -1,5 +1,7 @@
Date Added
+2010/11/20
+ * Fixed @doom and @doommap spamming packets for the visual effect on invoker unnecessarily over whole map and server respectively. The effect is now displayed on each killed character (bugreport:871, since r311). [Ai4rei]
2010/11/19
* Various VC6-related fixes and tweaks. [Ai4rei]
- Fixed a typo in VC6 project files, that prevented login-server from compiling (bugreport:4061, since r12727).
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index a6eb86163..a5805ad18 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -3479,7 +3479,6 @@ int atcommand_doom(const int fd, struct map_session_data* sd, const char* comman
struct s_mapiterator* iter;
nullpo_retr(-1, sd);
- clif_specialeffect(&sd->bl,450,ALL_SAMEMAP);
iter = mapit_getallusers();
for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) )
@@ -3487,6 +3486,7 @@ int atcommand_doom(const int fd, struct map_session_data* sd, const char* comman
if (pl_sd->fd != fd && pc_isGM(sd) >= pc_isGM(pl_sd))
{
status_kill(&pl_sd->bl);
+ clif_specialeffect(&pl_sd->bl,450,AREA);
clif_displaymessage(pl_sd->fd, msg_txt(61)); // The holy messenger has given judgement.
}
}
@@ -3506,7 +3506,6 @@ int atcommand_doommap(const int fd, struct map_session_data* sd, const char* com
struct s_mapiterator* iter;
nullpo_retr(-1, sd);
- clif_specialeffect(&sd->bl,450,ALL_CLIENT);
iter = mapit_getallusers();
for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) )
@@ -3514,6 +3513,7 @@ int atcommand_doommap(const int fd, struct map_session_data* sd, const char* com
if (pl_sd->fd != fd && sd->bl.m == pl_sd->bl.m && pc_isGM(sd) >= pc_isGM(pl_sd))
{
status_kill(&pl_sd->bl);
+ clif_specialeffect(&pl_sd->bl,450,AREA);
clif_displaymessage(pl_sd->fd, msg_txt(61)); // The holy messenger has given judgement.
}
}