public static IConditionBuilder IsActiveSkill(this IMetaStatBuilders @this, Skill skill) { var activeSkillItemSlot = @this.ActiveSkillItemSlot(skill.Id); var activeSkillSocketIndex = @this.ActiveSkillSocketIndex(skill.Id); return(activeSkillItemSlot.Value.Eq((double)skill.ItemSlot) .And(activeSkillSocketIndex.Value.Eq(skill.SocketIndex))); }