summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-06-16 12:23:35 -0400
committermekolat <mekolat@users.noreply.github.com>2015-06-16 12:52:46 -0400
commited8bbf523e78c3d30ffe8bd9b452fc33e0796769 (patch)
tree4e346e4d684e9503c1196f4fce772f179186d4c1 /src/map
parent5e0b18ca7746b006f9a4fe64a706959af878a5f6 (diff)
downloadtmwa-ed8bbf523e78c3d30ffe8bd9b452fc33e0796769.tar.gz
tmwa-ed8bbf523e78c3d30ffe8bd9b452fc33e0796769.tar.bz2
tmwa-ed8bbf523e78c3d30ffe8bd9b452fc33e0796769.tar.xz
tmwa-ed8bbf523e78c3d30ffe8bd9b452fc33e0796769.zip
send pvp channel update when using pvp atcommands
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp
index 63a1159..5db8288 100644
--- a/src/map/atcommand.cpp
+++ b/src/map/atcommand.cpp
@@ -4108,6 +4108,9 @@ ATCE atcommand_pvp(Session *s, dumb_ptr<map_session_data> sd,
clif_displaymessage(s, "##3PvP : ##BOff"_s);
}
+ sd->state.pvp_rank = 0;
+ clif_pvpstatus(sd); // send my channel to others
+
pc_setpvptimer(sd, battle_config.player_pvp_time);
return ATCE::OKAY;
}
@@ -4127,6 +4130,8 @@ ATCE atcommand_charpvp(Session *, dumb_ptr<map_session_data>,
return ATCE::EXIST;
pl_sd->state.pvpchannel = channel;
+ pl_sd->state.pvp_rank = 0;
+ clif_pvpstatus(pl_sd); // send their channel to others
return ATCE::OKAY;
}