rokojori_action_library/Runtime/Behavior/Fight/IsAllyAttacking.cs

18 lines
287 B
C#
Raw Normal View History

using Godot;
using Rokojori.Extensions;
namespace Rokojori;
[Tool]
[GlobalClass]
public partial class IsAllyAttacking:SceneCondition
{
[Export]
public FightSlot slot;
public override bool Evaluate()
{
return FightManager.Get()?.IsAnyOtherAttacking( slot ) ?? false;
}
}