From c66ce46f90f67ee9e2d78b7e3347316d247fe0fd Mon Sep 17 00:00:00 2001 From: WarrentyExpired Date: Wed, 14 Oct 2026 13:31:23 -0400 Subject: [PATCH] #W# Tweak: Moongates now hide you when you use them. --- Projects/UOContent/Items/CustomMoonGate.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Projects/UOContent/Items/CustomMoonGate.cs b/Projects/UOContent/Items/CustomMoonGate.cs index 043602654..85f0e3606 100644 --- a/Projects/UOContent/Items/CustomMoonGate.cs +++ b/Projects/UOContent/Items/CustomMoonGate.cs @@ -94,11 +94,19 @@ public partial class CustomMoongate : Item { if (m is PlayerMobile pm) { - pm.Hidden = true; // Close any existing moongate gumps before opening a new one pm.CloseGump(); pm.SendGump(new CustomMoongateGump(this)); Effects.PlaySound(pm.Location, pm.Map, 0x20E); + Timer.DelayCall(() => + { + if (pm.Alive && pm.Map == Map && pm.InRange(Location, 1)) + { + pm.Combatant = null; + pm.Warmode = false; + pm.Hidden = true; + } + }); } } }