public static bool PreCombatOverlord(object ret)
{
if (FunkyGame.GameIsInvalid) return false;
FunkyGame.Targeting.CheckPrecombat();
//Check for game prohibiting ui elements (Achievements, Skills, Waypoint Map, etc)
var uie = UI.FindGameProhibitingElements();
if (uie != null)
{
UI.ClosingUIElements = true;
return true;
}
if (OutOfGame.MuleBehavior)
{
if (BotMain.StatusText.Contains("Game Finished"))
{
if (ZetaDia.Actors.GetActorsOfType<GizmoPlayerSharedStash>(true, true).Any())
{
return true;
}
}
}
else if (ExitGameBehavior.ShouldExitGame)
{
ExitGameBehavior.BehaviorEngaged = true;
return true;
}
else if (CharacterControl.AltHeroGamblingEnabled)
{
if (!BrainBehavior.IsVendoring)
return true;
}
//else if(FunkyBaseExtension.Settings.AdventureMode.AllowCombatModifications && BountyCache.RiftTrialIsActiveQuest && FunkyGame.Hero.iCurrentLevelID == 405915)
//{
// Logger.DBLog.Info("Performing Trial Rift Handler Behavior!");
// return true;
//}
//else if (GoblinBehavior.BehaviorEngaged && GoblinBehavior.ShouldRunBehavior())
//{
// Logger.DBLog.Info("Starting Goblin Behavior.");
// return true;
//}
return false;
}