/// <summary>
/// When Smoke Screen should be cast
/// </summary>
private static bool SmokeScreenCondition(SkillMeta meta)
{
meta.CastFlags = CanCastFlags.NoTimer;
// Buff Already Active
if (GetHasBuff(SNOPower.DemonHunter_ShadowPower) && [COLOR="#FF0000"]Player.SecondaryResource >= 55[/COLOR])
return false;
// Mobs in range
if [COLOR="#FF0000"]([/COLOR](TargetUtil.AnyMobsInRange(15) || (Legendary.MeticulousBolts.IsEquipped && TargetUtil.AnyMobsInRange(60))) [COLOR="#FF0000"]&& Player.SecondaryResource >= 55)[/COLOR]
return true;
// Defensive Cast
if [COLOR="#FF0000"]([/COLOR]((Player.CurrentHealthPct <= 0.50 || Player.IsRooted || Player.IsIncapacitated)) [COLOR="#FF0000"]&& Player.SecondaryResource >= 55)[/COLOR]
return true;
// Spam Setting
if (Settings.Combat.DemonHunter.SpamSmokeScreen)
return true;
return false;
}
/// <summary>
/// When Preperation should be cast
/// </summary>
private static bool PreperationCondition(SkillMeta meta)
{
meta.ReUseDelay = Runes.DemonHunter.FocusedMind.IsActive ? 15000 : 500;
meta.CastFlags = CanCastFlags.NoTimer;
if (!Runes.DemonHunter.Punishment.IsActive && [COLOR="#FF0000"]Player.SecondaryResource <= 50[/COLOR])
return true;
if (Runes.DemonHunter.Punishment.IsActive && Player.PrimaryResource <= 75 && (TargetUtil.AnyElitesInRange(50f) || Enemies.Nearby.UnitCount > 5))
return true;
return false;
}
It runs ~40 with UE, however I run Nats as it runs 42+ with 5-10 min left on timer.