diff --git a/EXILED/Exiled.Events/EventArgs/Player/SavingByAntiScp207EventArgs.cs b/EXILED/Exiled.Events/EventArgs/Player/SavingByAntiScp207EventArgs.cs index 71cd25905..dd47f8023 100644 --- a/EXILED/Exiled.Events/EventArgs/Player/SavingByAntiScp207EventArgs.cs +++ b/EXILED/Exiled.Events/EventArgs/Player/SavingByAntiScp207EventArgs.cs @@ -31,7 +31,6 @@ public SavingByAntiScp207EventArgs(ReferenceHub player, float damageAmount, Dama Handler = handler; HitboxType = hitboxType; DamageAmount = damageAmount; - DamageMultiplier = (Player.Health + Player.ArtificialHealth - AntiScp207.DeathSaveHealth) / damageAmount; IsAllowed = true; } @@ -48,7 +47,7 @@ public SavingByAntiScp207EventArgs(ReferenceHub player, float damageAmount, Dama /// /// Gets or sets the multiplier for the damage that is applied when the event is allowed. /// - public float DamageMultiplier { get; set; } + public float DamageMultiplier { get; set; } = 0; /// /// Gets or sets the multiplier for the damage that if event denied. diff --git a/EXILED/Exiled.Events/Patches/Events/Player/SavingByAntiScp207.cs b/EXILED/Exiled.Events/Patches/Events/Player/SavingByAntiScp207.cs index ac4157b7c..8247cf548 100644 --- a/EXILED/Exiled.Events/Patches/Events/Player/SavingByAntiScp207.cs +++ b/EXILED/Exiled.Events/Patches/Events/Player/SavingByAntiScp207.cs @@ -74,7 +74,7 @@ private static IEnumerable Transpiler(IEnumerable i.opcode == OpCodes.Ldloc_2); + index = newInstructions.FindLastIndex(i => i.opcode == OpCodes.Ldc_R4); newInstructions.InsertRange(index, new CodeInstruction[] {