| | |
| | | if not __DoClientUseSkillEx(curPlayer, useSkillData, tick):
|
| | | SkillShell.AttackFailNotify(curPlayer, useSkillData)
|
| | | GameWorld.DebugLog("----攻击失败 可能是技能CD %s"%skillTypeID)
|
| | | |
| | | # 根据策划需求 以客户端动作为标准,不可攻击状态也进入CD
|
| | | BaseAttack.Sync_AttackResult(curPlayer, useSkillData)
|
| | | |
| | | if useSkillData and useSkillData.GetSkillID() != ChConfig.Def_SkillID_Somersault:
|
| | | # 跟随玩家同频率攻击
|
| | | PetControl.PetFight(curPlayer, tick)
|
| | |
| | | ProcessProDef(curPlayer, tick)
|
| | | return
|
| | |
|
| | | def Sync_PKBossState(curPlayer):
|
| | | psState = 1 if curPlayer.GetDictByKey(ChConfig.Def_PDict_PKStateTick) else 0
|
| | | curPlayer.SendPropertyRefresh(ShareDefine.CDBPlayerRefresh_PKState, psState, False)
|
| | | |
| | | bossState = 1 if curPlayer.GetDictByKey(ChConfig.Def_PDict_BossStateTick) else 0
|
| | | curPlayer.SendPropertyRefresh(ShareDefine.CDBPlayerRefresh_BossState, bossState, False)
|
| | | return
|
| | |
|
| | | # 脱离PK战斗 X秒后按比例恢复
|
| | | def ProcessProDef(curPlayer, tick):
|
| | | if PlayerControl.GetProDefHPPer(curPlayer) == 0:
|