public override void OnClick() { ShadowguardInstance instance = ShadowguardController.GetInstance(_From.Location, _From.Map); if (instance != null && instance.Region.Contains(_From.Location)) { ShadowguardEncounter.MovePlayer(_From, ShadowguardController.Instance.KickLocation); if (instance.Encounter != null) { instance.Encounter.CheckPlayerStatus(_From); } } }
public static void Initialize() { if (ShadowguardController.Instance == null) { return; } ColUtility.ForEach(ShadowguardController.Instance.Addons.Where(addon => addon.Map != Map.Internal), addon => { ShadowguardInstance instance = ShadowguardController.GetInstance(addon.Location, addon.Map); if (instance != null && !instance.InUse) { instance.ClearRegion(); } }); }