Fix heals stacks
I just wanted to remove double-clicking cancelling not the spammy.
This commit is contained in:
@@ -92,6 +92,8 @@ public sealed class HealingSystem : EntitySystem
|
||||
|
||||
private bool TryHeal(EntityUid uid, EntityUid user, EntityUid target, HealingComponent component)
|
||||
{
|
||||
if (component.CancelToken != null) return false;
|
||||
|
||||
if (TryComp<MobStateComponent>(target, out var state) && state.IsDead())
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user