Skip to content

Commit

Permalink
Fixed afflictionUpdate only being called server-side
Browse files Browse the repository at this point in the history
  • Loading branch information
evilfactory committed Sep 25, 2023
1 parent b8e8fbd commit a58cb82
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,7 @@ public virtual void Update(CharacterHealth characterHealth, Limb targetLimb, flo
{
GrainEffectStrength -= amount;
}
#if SERVER
GameMain.LuaCs.Hook.Call("afflictionUpdate", new object[] { this, characterHealth, targetLimb, deltaTime });
#endif
GameMain.LuaCs.Hook.Call("afflictionUpdate", new object[] { this, characterHealth, targetLimb, deltaTime });
}

public void ApplyStatusEffects(ActionType type, float deltaTime, CharacterHealth characterHealth, Limb targetLimb)
Expand Down

0 comments on commit a58cb82

Please sign in to comment.