diff --git a/EXILED/Exiled.Events/EventArgs/Item/CacklingEventArgs.cs b/EXILED/Exiled.Events/EventArgs/Item/CacklingEventArgs.cs index 69150fd22..8e491ee0b 100644 --- a/EXILED/Exiled.Events/EventArgs/Item/CacklingEventArgs.cs +++ b/EXILED/Exiled.Events/EventArgs/Item/CacklingEventArgs.cs @@ -1,4 +1,4 @@ -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- // // Copyright (c) ExMod Team. All rights reserved. // Licensed under the CC BY-SA 3.0 license. @@ -20,13 +20,12 @@ public class CacklingEventArgs : IMarshmallowEvent, IDeniableEvent /// /// Initializes a new instance of the class. /// - /// The Player cackling. /// The marshmallow item of the player cackling. /// Whether the player is allowed to cackle. - public CacklingEventArgs(Player player, MarshmallowItem marshmallow, bool isAllowed = true) + public CacklingEventArgs(MarshmallowItem marshmallow, bool isAllowed = true) { - Player = player; Marshmallow = Item.Get(marshmallow); + Player = Marshmallow.Owner; IsAllowed = isAllowed; } diff --git a/EXILED/Exiled.Events/EventArgs/Item/PunchingEventArgs.cs b/EXILED/Exiled.Events/EventArgs/Item/PunchingEventArgs.cs index d616d34e9..d2d927d95 100644 --- a/EXILED/Exiled.Events/EventArgs/Item/PunchingEventArgs.cs +++ b/EXILED/Exiled.Events/EventArgs/Item/PunchingEventArgs.cs @@ -1,4 +1,4 @@ -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- // // Copyright (c) ExMod Team. All rights reserved. // Licensed under the CC BY-SA 3.0 license. @@ -20,13 +20,12 @@ public class PunchingEventArgs : IMarshmallowEvent, IDeniableEvent /// /// Initializes a new instance of the class. /// - /// The Player attacking. /// The marshmallow item of the player attacking. /// Whether the player is allowed to punch. - public PunchingEventArgs(Player player, MarshmallowItem marshmallow, bool isAllowed = true) + public PunchingEventArgs(MarshmallowItem marshmallow, bool isAllowed = true) { - Player = player; Marshmallow = Item.Get(marshmallow); + Player = Marshmallow.Owner; IsAllowed = isAllowed; } diff --git a/EXILED/Exiled.Events/Handlers/Internal/Round.cs b/EXILED/Exiled.Events/Handlers/Internal/Round.cs index f7c3b6f4e..3da3e94ef 100644 --- a/EXILED/Exiled.Events/Handlers/Internal/Round.cs +++ b/EXILED/Exiled.Events/Handlers/Internal/Round.cs @@ -91,6 +91,9 @@ public static void OnSpawningRagdoll(SpawningRagdollEventArgs ev) { if (ev.Role.IsDead() || !ev.Role.IsFpcRole()) ev.IsAllowed = false; + + if (ev.DamageHandlerBase is Exiled.Events.Patches.Fixes.FixMarshmallowManFF fixMarshamllowManFf) + ev.DamageHandlerBase = fixMarshamllowManFf.MarshmallowItem.NewDamageHandler; } /// diff --git a/EXILED/Exiled.Events/Patches/Events/Item/Cackling.cs b/EXILED/Exiled.Events/Patches/Events/Item/Cackling.cs index 9c71dd86c..fec7811ec 100644 --- a/EXILED/Exiled.Events/Patches/Events/Item/Cackling.cs +++ b/EXILED/Exiled.Events/Patches/Events/Item/Cackling.cs @@ -1,4 +1,4 @@ -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- // // Copyright (c) ExMod Team. All rights reserved. // Licensed under the CC BY-SA 3.0 license. @@ -38,18 +38,14 @@ private static IEnumerable Transpiler(IEnumerable // Copyright (c) ExMod Team. All rights reserved. // Licensed under the CC BY-SA 3.0 license. @@ -40,18 +40,14 @@ private static IEnumerable Transpiler(IEnumerable "Stabbed with Marshmallow Item by " + Attacker.Nickname; #pragma warning restore SA1600 // Elements should be documented #pragma warning disable SA1313 // Parameter names should begin with lower-case letter @@ -77,7 +79,7 @@ private static IEnumerable Transpiler(IEnumerable