local FuncNode_CanUseBuffSkill = class("FuncNode_CanUseBuffSkill") local BuffSkillSystem = require"Battle/Logic/Entity/System/BuffSkillSystem" --[[ 初始化 --]] function FuncNode_CanUseBuffSkill:initialize(entity) self.LimitChildCount = 1 self.Type = LuaConst.ConditionFuncType.CanUseBuffSkill end --[[ 执行 --]] function FuncNode_CanUseBuffSkill:Run(conditionDataNode, entity, missile) local index = FP.tonumberV1(conditionDataNode.FirstNode:Run(entity, missile)) return BuffSkillSystem.CanUseBuffSkill(entity, BuffSkillSystem.GetBuffSkillKeyPosByIndex(index)) and FP.Const.One or FP.Const.Zero end return FuncNode_CanUseBuffSkill