You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
706 B
20 lines
706 B
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();
|
|
}
|
|
}
|
|
}
|