local FuncNode_EventBuffGroupCompare = class("FuncNode_EventBuffGroupCompare") --[[ 初始化 --]] function FuncNode_EventBuffGroupCompare:initialize(entity) self.LimitChildCount = 3 self.Type = LuaConst.ConditionFuncType.EventBuffGroupCompare end --[[ 执行 --]] function FuncNode_EventBuffGroupCompare:Run(conditionDataNode, entity, missile, buffObject, eventParams) local result = FP.Const.Zero repeat if not eventParams then logging.error(LTAG.ERROR, "HYW : Only Event Trigger can use FuncNode_EventBuffGroupCompare !! No eventParams Error! @FuncNode_EventBuffGroupCompare") break end local buffID = eventParams.buffId if not buffID then logging.error(LTAG.ERROR, "HYW : eventParams has no buffId ! @FuncNode_EventBuffGroupCompare") break end local buffData = DataSheetManager.BuffData:GetDataByBuffID(buffID) if not buffData then logging.error(LTAG.ERROR, "HYW : buffData nil Error ! @FuncNode_EventBuffGroupCompare buffID : ", buffID) break end local compareTo = FP.tonumberV1(conditionDataNode.FirstNode:Run(entity, missile, buffObject, eventParams)) if buffData.BuffGroup == compareTo then result = FP.Const.One break end compareTo = FP.tonumberV1(conditionDataNode.SecondNode:Run(entity, missile, buffObject, eventParams)) if buffData.BuffGroup == compareTo then result = FP.Const.One break end compareTo = FP.tonumberV1(conditionDataNode.ThirdNode:Run(entity, missile, buffObject, eventParams)) if buffData.BuffGroup == compareTo then result = FP.Const.One break end until true return result end return FuncNode_EventBuffGroupCompare