protected override Composite CreateBehavior() { return(new Action(ret => { TrinityApi.SetProperty("CombatBase", "IsQuestingMode", true); // CombatBase.IsQuestingMode = true; Logger.Log("Setting Trinity Combat mode as QUESTING for the current profile."); _isDone = true; })); }
public async Task <bool> SetQuestingTask() { Logger.Debug("Attempting to set Trinity IsQuestingMode to {0}", Mode); if (!TrinityApi.SetProperty("Trinity.Combat.Abilities.CombatBase", "IsQuestingMode", Mode)) { //Logger.Error("Unable to set IsQuestingMode Property"); } object isQuestingMode; if (!TrinityApi.GetProperty("Trinity.Combat.Abilities.CombatBase", "IsQuestingMode", out isQuestingMode)) { //Logger.Error("Unable to read IsQuestingMode property for validation"); } if (isQuestingMode as bool? == Mode) { Logger.Log("Successfully set Trinity Combat mode as QUESTING for the current profile."); } _isDone = true; return(true); }