Rejuvenate extinguishes people who are on fire

This commit is contained in:
Víctor Aguilera Puerto
2020-09-23 20:23:20 +02:00
parent 2a1b90a0eb
commit 547290e3c2

View File

@@ -1,4 +1,5 @@
using Content.Server.GameObjects.Components.Mobs;
using Content.Server.GameObjects.Components.Atmos;
using Content.Server.GameObjects.Components.Mobs;
using Content.Server.GameObjects.Components.Nutrition;
using Content.Shared.GameObjects.Components.Damage;
using Content.Shared.GameObjects.Verbs;
@@ -73,6 +74,16 @@ namespace Content.Server.GlobalVerbs
{
stun.ResetStuns();
}
if (target.TryGetComponent(out FlammableComponent flammable))
{
flammable.Extinguish();
}
if (target.TryGetComponent(out CreamPiedComponent creamPied))
{
creamPied.Wash();
}
}
}
}