hxp
2019-03-28 b69fe56d5ebb784c4430cb5e86f460efafa1b30a
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -5375,35 +5375,6 @@
    if BuffSkill.DelBuffBySkillID(curPlayer, ChConfig.Def_SkillID_LimitSuperBuff, tick):
    
        PlayerControl(curPlayer).RefreshPlayerAttrByBuff()
#---------------------------------------------------------------------
##清除生产采集BUF
# @param curPlayer 玩家实例
# @param tick 时间戳
# @param isLeaveServer 玩家是否离开服务器
# @return 返回值无意义
# @remarks 清除生产采集BUF
def DelProduceBuff(curPlayer, tick, isLeaveServer=False):
    if not isLeaveServer:
        if curPlayer.GetPlayerAction() != IPY_GameWorld.paProduce:
            #玩家当前状态不在生产采集,不处理
            return
    #清除生产buff(ID20021)
    BuffSkill.DelBuffBySkillID(curPlayer, ChConfig.Def_ProduceBuffID, tick)
    #清除活动无敌Buff
    BuffSkill.DelBuffBySkillID(curPlayer, ChConfig.Def_SkillID_ActionWuDi, tick)
    if not isLeaveServer:
        #设置玩家空闲状态
        ChangePlayerAction(curPlayer, IPY_GameWorld.paNull)
        #通知客户端
        curPlayer.Notify_ProductionState(ChConfig.Def_EndProduction)
        #PlayerControl(curPlayer).RefreshAllState()
    return
    
#---------------------------------------------------------------------
##特殊状态处理