Skip to content

Commit

Permalink
[12777] Fix issue with afk playerin duel logout request from client a…
Browse files Browse the repository at this point in the history
…fter 30 mins. We can logout during duel. Btw during duel we must be in combat for some timer without any action. Also change message from "duel cancel" to "duel FLED"
  • Loading branch information
Cyberium committed Nov 11, 2014
1 parent 43caf20 commit cc542de
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/game/MiscHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ void WorldSession::HandleLogoutRequestOpcode(WorldPacket& /*recv_data*/)

// Can not logout if...
if (GetPlayer()->isInCombat() || //...is in combat
GetPlayer()->duel || //...is in Duel
//...is jumping ...is falling
GetPlayer()->m_movementInfo.HasMovementFlag(MovementFlags(MOVEFLAG_FALLING | MOVEFLAG_FALLINGFAR)))
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ void Player::CleanupsBeforeDelete()
if (m_uint32Values) // only for fully created Object
{
TradeCancel(false);
DuelComplete(DUEL_INTERRUPTED);
DuelComplete(DUEL_FLED);
}

// notify zone scripts for player logout
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12776"
#define REVISION_NR "12777"
#endif // __REVISION_NR_H__

0 comments on commit cc542de

Please sign in to comment.