xdh
2019-01-22 b61fe6ed796dfeb1a7ed718d8099d6edb05f36f6
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
@@ -46,6 +46,7 @@
import SkillShell
import FBCommon
import IpyGameDataPY
import EquipZhuXian
#---------------------------------------------------------------------
GameWorld.ImportAll("Script\\Skill\\" , "GameSkills")
GameWorld.ImportAll("Script\\Skill\\" , "GameBuffs")
@@ -247,7 +248,8 @@
    #还在冷却时间内无法释放
    if SkillCommon.RefreshSkillRemainTime(playerSkill, tick) != 0:
        PlayerControl.NotifyCode(curPlayer, "UseSkillCDLimit")
        AttackFailNotify(curPlayer, curSkill, ChConfig.SkillFail_CD)
        #AttackFailNotify(curPlayer, curSkill, ChConfig.SkillFail_CD)
        playerSkill.Sync_Skill()
        return False
    #5:检查玩家的魔法值是否够用这个技能
@@ -887,6 +889,7 @@
    Def_Attack_DelayTick = 5000
    # tick 误差过大则过滤
    if abs(clientTick - tick) > Def_Attack_DelayTick:
        curPlayer.Sync_ClientTick()
        GameWorld.DebugLog("tick 误差过大则过滤 > 5000")
        return False
    
@@ -1063,6 +1066,7 @@
def AttackFailNotify(curPlayer, curSkill, reason=0):
    sendPack = ChPyNetSendPack.tagMCAttackFail()
    sendPack.SkillID = curSkill.GetSkillID()
    sendPack.Reason = reason
    NetPackCommon.SendFakePack(curPlayer, sendPack)
#--------------------------玩家使用技能
#===============================================================================
@@ -1875,6 +1879,11 @@
    if upSkill.GetFuncType() == ChConfig.Def_SkillFuncType_GiftSkill:
        if not PlayerGreatMaster.GetGreatMasterFreeSkillPoint(curPlayer):
            return False
    #诛仙技能学习判断
    if upSkill.GetFuncType() == ChConfig.Def_SkillFuncType_ZhuXian:
        if not EquipZhuXian.CheckLearnZhuXianSkill(curPlayer, curSkillTypeID):
            return False
    #经验检测
    skillLvUpNeedExp = upSkill.GetLVUpCostExp()