Fix heals stacks

I just wanted to remove double-clicking cancelling not the spammy.
This commit is contained in:
metalgearsloth
2022-05-10 12:35:47 +10:00
parent 9561323592
commit 671fc55c62

View File

@@ -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;