diff --git a/Content.Server/EntityEffects/Effects/FlammableReaction.cs b/Content.Server/EntityEffects/Effects/FlammableReaction.cs index c1d024a4ef..8e1f6d81e1 100644 --- a/Content.Server/EntityEffects/Effects/FlammableReaction.cs +++ b/Content.Server/EntityEffects/Effects/FlammableReaction.cs @@ -38,7 +38,8 @@ namespace Content.Server.EntityEffects.Effects reagentArgs.EntityManager.System().AdjustFireStacks(args.TargetEntity, quantity * multiplier, flammable); if (reagentArgs.Reagent != null) reagentArgs.Source?.RemoveReagent(reagentArgs.Reagent.ID, reagentArgs.Quantity); - } else + } + else { args.EntityManager.System().AdjustFireStacks(args.TargetEntity, multiplier, flammable); } diff --git a/Content.Server/EntityEffects/Effects/Ignite.cs b/Content.Server/EntityEffects/Effects/Ignite.cs index cca2a301fd..85d7f09145 100644 --- a/Content.Server/EntityEffects/Effects/Ignite.cs +++ b/Content.Server/EntityEffects/Effects/Ignite.cs @@ -1,3 +1,4 @@ +using Content.Server.Atmos.Components; using Content.Server.Atmos.EntitySystems; using Content.Shared.Database; using Content.Shared.EntityEffects; @@ -19,13 +20,17 @@ public sealed partial class Ignite : EntityEffect public override void Effect(EntityEffectBaseArgs args) { + if (!args.EntityManager.TryGetComponent(args.TargetEntity, out FlammableComponent? flammable)) + return; + var flamSys = args.EntityManager.System(); if (args is EntityEffectReagentArgs reagentArgs) { - flamSys.Ignite(reagentArgs.TargetEntity, reagentArgs.OrganEntity ?? reagentArgs.TargetEntity); - } else + flamSys.Ignite(reagentArgs.TargetEntity, reagentArgs.OrganEntity ?? reagentArgs.TargetEntity, flammable: flammable); + } + else { - flamSys.Ignite(args.TargetEntity, args.TargetEntity); + flamSys.Ignite(args.TargetEntity, args.TargetEntity, flammable: flammable); } } } diff --git a/Content.Server/Tiles/TileEntityEffectSystem.cs b/Content.Server/Tiles/TileEntityEffectSystem.cs index 7149f16e1a..4d866cb254 100644 --- a/Content.Server/Tiles/TileEntityEffectSystem.cs +++ b/Content.Server/Tiles/TileEntityEffectSystem.cs @@ -23,10 +23,11 @@ public sealed class TileEntityEffectSystem : EntitySystem private void OnTileStepTriggered(Entity ent, ref StepTriggeredOffEvent args) { var otherUid = args.Tripper; + var effectArgs = new EntityEffectBaseArgs(otherUid, EntityManager); foreach (var effect in ent.Comp.Effects) { - effect.Effect(new EntityEffectBaseArgs(otherUid, EntityManager)); + effect.Effect(effectArgs); } } }