local FuncNode_EventSkillDifferentFromLast = class("FuncNode_EventSkillDifferentFromLast") --[[ 初始化 --]] function FuncNode_EventSkillDifferentFromLast:initialize(entity) self.LimitChildCount = 0 self.Type = LuaConst.ConditionFuncType.EventSkillDifferentFromLast end --[[ 执行 --]] function FuncNode_EventSkillDifferentFromLast:Run(conditionDataNode, entity, missile, buffObject, params) local skillID = nil if params then if params.skillData then skillID = params.skillData.BelongTo elseif params.skillID then skillID = params.skillID if skillID then local skilData = entity:GetSkillData(skillID) if skillData then skillID = skillData.BelongTo end end end end if skillID == nil then if params then logging.error(LTAG.ERROR, "HYW : 事件参数没有skillData 或 skillID 参数,无法进行SkillID条件比较 @FuncNode_EventSkillDifferentFromLast entityID : ", entity.EntityID) else logging.error(LTAG.ERROR, "HYW : 事件参数不存在 @FuncNode_EventSkillDifferentFromLast entityID : ", entity.EntityID) end end return skillID ~= entity.components.record.lastBelongToSkillID and FP.Const.One or FP.Const.Zero end return FuncNode_EventSkillDifferentFromLast