aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKandera <KanderaDev@gmail.com>2012-04-17 09:56:08 -0400
committerKandera <KanderaDev@gmail.com>2012-04-17 09:56:08 -0400
commit17d87c0103703d38eb64f595e8a2155553b39d29 (patch)
treeb946845f4ed4734469dbd5b34bd5116232f5c51e
parent61cb2db1bd57e90e56a62853c9445e243a189125 (diff)
Core/Misc: researched the reasons for instance reset failure and added them as comments to the sendresetinstancefailed function.
-rwxr-xr-xsrc/server/game/Entities/Player/Player.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 0992c488315..141902fbbdc 100755
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -19777,7 +19777,11 @@ void Player::SendResetInstanceSuccess(uint32 MapId)
void Player::SendResetInstanceFailed(uint32 reason, uint32 MapId)
{
- // TODO: find what other fail reasons there are besides players in the instance
+ /*reasons for instance reset failure:
+ // 0: There are players inside the instance.
+ // 1: There are players offline in your party.
+ // 2>: There are players in your party attempting to zone into an instance.
+ */
WorldPacket data(SMSG_INSTANCE_RESET_FAILED, 4);
data << uint32(reason);
data << uint32(MapId);