// Arcane Blast - 2 second cooldown, big AoE
if (!useOocBuff && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.Wizard_Archon_ArcaneBlast_Fire, CombatBase.CanCastFlags.NoTimer) && TargetUtil.AnyMobsInRange(15, 1))
{
return new TrinityPower(SNOPower.Wizard_Archon_ArcaneBlast_Fire, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 1, 1);
}
// Disintegrate
if (!useOocBuff && !isCurrentlyAvoiding && !Player.IsIncapacitated && (CurrentTarget.CountUnitsBehind(25f) > 2 || Settings.Combat.Wizard.NoArcaneStrike || Settings.Combat.Wizard.KiteLimit > 0))
{
return new TrinityPower(SNOPower.Wizard_Archon_DisintegrationWave_Fire, 49f, Vector3.Zero, -1, CurrentTarget.ACDGuid, 0, 0);
}
// Arcane Strike Rapid Spam at close-range only, and no AoE inbetween us and target
if (!useOocBuff && !Player.IsIncapacitated && !Settings.Combat.Wizard.NoArcaneStrike &&
!CacheData.TimeBoundAvoidance.Any(aoe => MathUtil.IntersectsPath(aoe.Position, aoe.Radius, Player.Position, CurrentTarget.Position)))
{
return new TrinityPower(SNOPower.Wizard_Archon_ArcaneStrike_Fire, 7f, Vector3.Zero, -1, CurrentTarget.ACDGuid, 1, 1);
}
// Disintegrate as final option just in case
if (!useOocBuff && !isCurrentlyAvoiding && !Player.IsIncapacitated)
{
return new TrinityPower(SNOPower.Wizard_Archon_DisintegrationWave_Fire, 49f, Vector3.Zero, -1, CurrentTarget.ACDGuid, 0, 0);
}
mine works with fire even fireblast, but this code will only work for fire archons...