23 lines
671 B
C#
23 lines
671 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Beyond
|
|
{
|
|
public class UseCovertGazeStep : MonoBehaviour
|
|
{
|
|
public BaseStepController baseStepController;
|
|
public MagicAttacks magicAttacks;
|
|
|
|
// Start is called before the first frame update
|
|
private void Start()
|
|
{
|
|
// [FIX] Checked the equipped item name instead of 'selectedEffect'
|
|
baseStepController.ConditionsAreMet += () =>
|
|
{
|
|
var item = magicAttacks.GetEquippedSpellItem();
|
|
return item != null && item.name.Contains("Covert Gaze");
|
|
};
|
|
}
|
|
}
|
|
} |