Fixed afflictionUpdate only being called server-side

This commit is contained in:
EvilFactory
2023-09-25 09:43:06 -03:00
parent b8e8fbd3b3
commit a58cb8251f
@@ -450,9 +450,7 @@ namespace Barotrauma
{ {
GrainEffectStrength -= amount; GrainEffectStrength -= amount;
} }
#if SERVER GameMain.LuaCs.Hook.Call("afflictionUpdate", new object[] { this, characterHealth, targetLimb, deltaTime });
GameMain.LuaCs.Hook.Call("afflictionUpdate", new object[] { this, characterHealth, targetLimb, deltaTime });
#endif
} }
public void ApplyStatusEffects(ActionType type, float deltaTime, CharacterHealth characterHealth, Limb targetLimb) public void ApplyStatusEffects(ActionType type, float deltaTime, CharacterHealth characterHealth, Limb targetLimb)