Skip to content

Commit

Permalink
Fix bleeding effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Vretu-Dev committed Oct 29, 2024
1 parent b9dcd1a commit a6a7734
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions SCP1853Buff/SCP1853Buff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,27 +87,27 @@ private void OnStaminaCheck(object sender, ElapsedEventArgs e)

if (Config.VisualEffect)
{
player.EnableEffect(EffectType.Bleeding, 1, 1);
player.EnableEffect(EffectType.Bleeding, 1, 2);
}
if (Config.KillOnZeroHp && player.Health < 0.8)
if (!Config.VisualEffect && Config.KillOnZeroHp && player.Health < 0.8)
{
player.EnableEffect(EffectType.Bleeding, 1, 1);
player.EnableEffect(EffectType.Bleeding, 1, 2);
}
}
}
}
}
private void OnHurting(HurtingEventArgs ev)
{
if (Config.VisualEffect)
if (ev.DamageHandler.Type == DamageType.Bleeding)
{
if (ev.DamageHandler.Type == DamageType.Bleeding)
if (Config.VisualEffect)
{
ev.IsAllowed = false;
if (Config.KillOnZeroHp && ev.Player.Health < 0.8)
{
ev.IsAllowed = true;
}
}
if (Config.KillOnZeroHp && ev.Player.Health < 0.8)
{
ev.IsAllowed = true;
}
}
}
Expand Down

0 comments on commit a6a7734

Please sign in to comment.