r2mods/ilspy_dump/ror2_csproj/RoR2.Skills/EngiMineDeployerSkill.cs

21 lines
469 B
C#
Raw Permalink Normal View History

2024-10-04 07:26:37 +00:00
using System.Collections.Generic;
using EntityStates.Engi.MineDeployer;
namespace RoR2.Skills;
public class EngiMineDeployerSkill : SkillDef
{
public override bool CanExecute(GenericSkill skillSlot)
{
List<BaseMineDeployerState> instancesList = BaseMineDeployerState.instancesList;
for (int i = 0; i < instancesList.Count; i++)
{
if (instancesList[i].owner == skillSlot.gameObject)
{
return false;
}
}
return base.CanExecute(skillSlot);
}
}