local FuncNode_EventBuffIDCompare = class("FuncNode_EventBuffIDCompare") --[[ 初始化 --]] function FuncNode_EventBuffIDCompare:initialize(entity) self.LimitChildCount = 3 self.Type = LuaConst.ConditionFuncType.EventBuffIDCompare end --[[ 执行 --]] function FuncNode_EventBuffIDCompare: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_EventBuffIDCompare !! No eventParams Error! @FuncNode_EventBuffIDCompare") break end local buffID = eventParams.buffId if not buffID then logging.error(LTAG.ERROR, "HYW : eventParams has no buffId ! @FuncNode_EventBuffIDCompare") break end local compareTo = FP.tonumberV1(conditionDataNode.FirstNode:Run(entity, missile, buffObject, eventParams)) if buffID == compareTo then result = FP.Const.One break end compareTo = FP.tonumberV1(conditionDataNode.SecondNode:Run(entity, missile, buffObject, eventParams)) if buffID == compareTo then result = FP.Const.One break end compareTo = FP.tonumberV1(conditionDataNode.ThirdNode:Run(entity, missile, buffObject, eventParams)) if buffID == compareTo then result = FP.Const.One break end until true return result end return FuncNode_EventBuffIDCompare