public bool CanUse(CharacterContext context) { if (context.Self.Mana < _manaCost) { return(false); } if (_range <= 0 && context.HasState(CharacterWorldState.HasEnemyTargetInMeleeRange) == false) { return(false); } return(true); }
public bool CanUse(CharacterContext context) { return(context.HasState(CharacterWorldState.HasEnemyTargetInMeleeRange)); }