public static void Initialize() { Main.Log("Initialized"); ZEPriestSettings.Load(); _settings = ZEPriestSettings.CurrentSetting; Talents.InitTalents(_settings.AssignTalents, _settings.UseDefaultTalents, _settings.TalentCodes); _wandThreshold = _settings.WandThreshold > 100 ? 50 : _settings.WandThreshold; Main.SetRange(_distaneRange); // Fight end FightEvents.OnFightEnd += (ulong guid) => { _usingWand = false; _goInMFRange = false; _dispelTimer.Reset(); _iCanUseWand = false; Main.SetRange(_distaneRange); }; // Fight start FightEvents.OnFightStart += (WoWUnit unit, CancelEventArgs cancelable) => { _iCanUseWand = ToolBox.HaveRangedWeaponEquipped(); }; Rotation(); }
public static void ShowConfiguration() { ZEPriestSettings.Load(); ZEPriestSettings.CurrentSetting.ToForm(); ZEPriestSettings.CurrentSetting.Save(); }