6116 子 【开发】【1.6】当玩家攻击无敌状态的目标时候进入cd / 【后端】【1.6】攻击无敌目标技能进入cd - # 根据策划需求 以客户端动作为标准,不可攻击状态也进入CD
2个文件已修改
21 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
@@ -1419,6 +1419,21 @@
        PYView_UseSkillPos(attacker, skillID, battleType, useSkillPosX, useSkillPosY, g_skillHurtList, False)
    
    return
# 通知客户端表现封包 无其他作用
def Sync_AttackResult(attacker, curSkill):
    global g_skillHurtList
    g_skillHurtList.Clear()
    defender = None
    if SkillShell.GetSkillFireAim(curSkill) == ChConfig.Def_UseSkillAim_Obj:
        useSkillTagID = attacker.GetUseSkillTagID()
        useSkillTagType = attacker.GetUseSkillTagType()
        defender = GameWorld.GetObj(useSkillTagID, useSkillTagType)
    __Sync_AttackResult(attacker, defender, curSkill)
##############################主动攻击成功#############################
## 玩家攻击成功
#  @param curPlayer 攻击Obj
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py
@@ -138,10 +138,8 @@
        SkillShell.AttackFailNotify(curPlayer, useSkillData)
        GameWorld.DebugLog("----攻击失败 可能是技能CD %s"%skillTypeID)
        # 根据策划需求 以客户端动作为标准,不可攻击状态也进入CD
        playerSkill = curPlayer.GetSkillManager().FindSkillBySkillTypeID(useSkillData.GetSkillTypeID())
        if playerSkill and playerSkill.GetRemainTime() == 0:
            SkillCommon.SetSkillRemainTime(playerSkill, PlayerControl.GetReduceSkillCDPer(curPlayer), tick, curPlayer)
        BaseAttack.Sync_AttackResult(curPlayer, useSkillData)
    if useSkillData and useSkillData.GetSkillID() != ChConfig.Def_SkillID_Somersault:
        # 跟随玩家同频率攻击
        PetControl.PetFight(curPlayer, tick)