Fix heals stacks
I just wanted to remove double-clicking cancelling not the spammy.
This commit is contained in:
parent
9561323592
commit
671fc55c62
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue