| | |
| | | curMap = GameWorld.GetMap()
|
| | | #校验客户端时间
|
| | | if not PlayerControl.PlayerMoveCheckClientWorldTick(curPlayer, clientWorldTick, client_StartX, client_StartY):
|
| | | curPlayer.Sync_ClientTick()
|
| | | return
|
| | |
|
| | | #移动点检查
|
| | |
| | |
|
| | | #校验客户端时间
|
| | | if not PlayerControl.PlayerMoveCheckClientWorldTick(curPlayer, sendPack_WorldTick, sendPack_SeverPosX, sendPack_SeverPosY):
|
| | | curPlayer.Sync_ClientTick()
|
| | | return False
|
| | |
|
| | | dist = GameWorld.GetDist(curPlayer.GetPosX(), curPlayer.GetPosY(), sendPack_SeverPosX, sendPack_SeverPosY)
|
| | |
| | | #时间相差过大,可能因网络引起,拉回
|
| | | GameWorld.DebugLog("PlayerMoveCheckClientWorldTick -- 服务器tick %s-客户端%s时间相差过大,可能因网络引起,拉回" % (
|
| | | gameWorldTick, clientWorldTick), curPlayer.GetID())
|
| | | curPlayer.Sync_ClientTick()
|
| | | return False
|
| | |
|
| | | if gameWorldTick - curPlayer.GetDictByKey("CheckTick") > 60000:
|
| | |
| | | return
|
| | |
|
| | | if not CheckClientAttackTick(curPlayer, clientTick, tick):
|
| | | AttackFailNotify(curPlayer, curSkill, ChConfig.SkillFail_AtkInterval) |
| | | AttackFailNotify(curPlayer, curSkill, ChConfig.SkillFail_AtkInterval) |
| | | curPlayer.Sync_ClientTick() |
| | | return
|
| | |
|
| | | #已经在攻击中
|