@@ -56,9 +56,6 @@ public sealed class DashAbilitySystem : EntitySystem
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void OnDash(Entity<DashAbilityComponent> ent, ref DashEvent args)
|
private void OnDash(Entity<DashAbilityComponent> ent, ref DashEvent args)
|
||||||
{
|
{
|
||||||
if (!_timing.IsFirstTimePredicted)
|
|
||||||
return;
|
|
||||||
|
|
||||||
var (uid, comp) = ent;
|
var (uid, comp) = ent;
|
||||||
var user = args.Performer;
|
var user = args.Performer;
|
||||||
if (!CheckDash(uid, user))
|
if (!CheckDash(uid, user))
|
||||||
|
|||||||
@@ -128,8 +128,7 @@ public abstract class SharedNinjaGlovesSystem : EntitySystem
|
|||||||
public bool AbilityCheck(EntityUid uid, BeforeInteractHandEvent args, out EntityUid target)
|
public bool AbilityCheck(EntityUid uid, BeforeInteractHandEvent args, out EntityUid target)
|
||||||
{
|
{
|
||||||
target = args.Target;
|
target = args.Target;
|
||||||
return _timing.IsFirstTimePredicted
|
return !_combatMode.IsInCombatMode(uid)
|
||||||
&& !_combatMode.IsInCombatMode(uid)
|
|
||||||
&& _hands.GetActiveItem(uid) == null
|
&& _hands.GetActiveItem(uid) == null
|
||||||
&& _interaction.InRangeUnobstructed(uid, target);
|
&& _interaction.InRangeUnobstructed(uid, target);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user