using CoreGame; using GAS.Runtime; namespace CoreGame.Render { public class GEComponent_ScareMove : GameplayEffectComponent { public override void OnGameplayEffectApplied(GameplayEffectComponentSpec partSelf, GameplayEffectSpec GESpec) { base.OnGameplayEffectApplied(partSelf, GESpec); GESpec.Owner.owner.ReplaceScareMove(BattleConst.RandomScareMoveCD, BattleConst.RandomScareMoveCD); } public override void OnGameplayEffectDisApplied(GameplayEffectComponentSpec partSelf, GameplayEffectSpec GESpec) { base.OnGameplayEffectDisApplied(partSelf, GESpec); GESpec.Owner.owner.RemoveScareMove(); } } }