cleanup and changed empowered action cost
This commit is contained in:
@@ -13,8 +13,7 @@ public class EffectApplicationBehavior(EffectData effectData) : IAbilityBehavior
|
||||
private Effect? _effect;
|
||||
private ActiveEffectHandle? _effectHandle;
|
||||
public void OnStarted(AbilityBehaviorContext context)
|
||||
{
|
||||
GD.Print("This is applying the periodic effect to the flying weapon");
|
||||
{
|
||||
_effect = new Effect(effectData, new EffectOwnership(context.Owner, context.Owner));
|
||||
_effectHandle = context.Owner.EffectsManager.ApplyEffect(_effect);
|
||||
context.AbilityHandle.CommitAbility();
|
||||
@@ -22,7 +21,6 @@ public class EffectApplicationBehavior(EffectData effectData) : IAbilityBehavior
|
||||
|
||||
public void OnEnded(AbilityBehaviorContext context)
|
||||
{
|
||||
GD.Print("This is removing the periodic effect from the flying weapon");
|
||||
if (_effectHandle is not null)
|
||||
context.Owner.EffectsManager.RemoveEffect(_effectHandle);
|
||||
context.InstanceHandle.End();
|
||||
|
||||
Reference in New Issue
Block a user