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

21 lines
469 B
C#

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);
}
}