r2mods/ilspy_dump/ror2_csproj/EntityStates.ImpMonster.Weapon/CloakPermanent.cs

31 lines
598 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
using UnityEngine.Networking;
namespace EntityStates.ImpMonster.Weapon;
public class CloakPermanent : BaseState
{
public override void OnEnter()
{
base.OnEnter();
if ((bool)base.characterBody && NetworkServer.active)
{
base.characterBody.AddBuff(RoR2Content.Buffs.Cloak);
}
}
public override void OnExit()
{
if ((bool)base.characterBody && NetworkServer.active)
{
base.characterBody.RemoveBuff(RoR2Content.Buffs.Cloak);
}
base.OnExit();
}
public override InterruptPriority GetMinimumInterruptPriority()
{
return InterruptPriority.PrioritySkill;
}
}