diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-20 08:19:44 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-20 08:19:44 +0000 |
commit | 35564818933ee4714a221fb30c1654bceaf43133 (patch) | |
tree | e74321e2e2aed9fee36e8378fe33f7414d2ac8be /src/map/atcommand.c | |
parent | c85eeb984653f656b73bbb4468e06328e0655091 (diff) | |
download | hercules-35564818933ee4714a221fb30c1654bceaf43133.tar.gz hercules-35564818933ee4714a221fb30c1654bceaf43133.tar.bz2 hercules-35564818933ee4714a221fb30c1654bceaf43133.tar.xz hercules-35564818933ee4714a221fb30c1654bceaf43133.zip |
* 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).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/renewal@14475 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 4 |
1 files changed, 2 insertions, 2 deletions
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. } } |