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
716 B
20 lines
716 B
1 month ago
|
using CoreGame;
|
||
|
using GAS.Runtime;
|
||
|
|
||
|
namespace CoreGame.Render
|
||
|
{
|
||
|
public class GEComponent_ConfuseMove : GameplayEffectComponent
|
||
|
{
|
||
|
public override void OnGameplayEffectApplied(GameplayEffectComponentSpec partSelf, GameplayEffectSpec GESpec)
|
||
|
{
|
||
|
base.OnGameplayEffectApplied(partSelf, GESpec);
|
||
|
GESpec.Owner.owner.ReplaceConfuseMove(BattleConst.RandomConfuseMoveCD, BattleConst.RandomConfuseMoveCD);
|
||
|
}
|
||
|
|
||
|
public override void OnGameplayEffectDisApplied(GameplayEffectComponentSpec partSelf, GameplayEffectSpec GESpec)
|
||
|
{
|
||
|
base.OnGameplayEffectDisApplied(partSelf, GESpec);
|
||
|
GESpec.Owner.owner.RemoveConfuseMove();
|
||
|
}
|
||
|
}
|
||
|
}
|