Ok, this worked out perfectly fine. It didn't feel weird at all because, as I said, most target switching happens when the previous one dies, and even when it doesn't, chances are DnD is gonna be down anyway... AND EVEN IF IT'S NOT, it won't cast it if you're moving, so unless you select a target that's outta range while standing still, it can't go wrong.
That said, Wulf, feel free to take it for a spin yourself if you're on the fence about implementing this.
Just remember this will ONLY take over during Madness.
Anyway... on to the code!
Code:
public static HashSet<uint> OverrideDnD { get { return _overrideDnD; } }
private static readonly HashSet<uint> _overrideDnD = new HashSet<uint>
{
56846, // Arm Tentacle -- Madness of DW
56167, // Arm Tentacle -- Madness of DW
56168, // Wing Tentacle - Madness of DW
56471, // Mutated Corruption
57962, // Deathwing ----- Madness of DW (his head)
};
^ This goes anywhere in the BossList.cs
Now, in the Unholy.cs file:
Code:
Spells.CastSpellAtLocation("Death and Decay", u => Me, ret => BossList.OverrideDnD.Contains(Me.CurrentTarget.Entry) && (Me.UnholyRuneCount == 2) && !Me.IsMoving && !Me.CurrentTarget.IsMoving && Me.CurrentRunicPower < 110 && (Me.CurrentTarget.CurrentHealth > 1000000 || Me.CurrentTarget.MaxHealth == 1) && Units.CountEnnemiesInRange(Me.Location, 1000) >=1, "Death and Decay"),
^ This goes above the first DnD line.
Code:
Spells.CastSpellAtLocation("Death and Decay", u => Me, ret => BossList.OverrideDnD.Contains(Me.CurrentTarget.Entry) && !Me.IsMoving && !Me.CurrentTarget.IsMoving && (Me.CurrentTarget.CurrentHealth > 310000 || Me.CurrentTarget.MaxHealth == 1) && Units.CountEnnemiesInRange(Me.Location, 1000) >=1, "Death and Decay"),
^ This goes above the second DnD line.
I'm also adding my local file so you can take a quicker look, but have in mind I've altered a bit the healing % and have commented out some CDs I like to manage on my own (I leave ERW and Rocket Barrage to the bot).
This won't skyrocket the dps, but if people use this for guild runs, it'd look suspicious to anyone that took a look at a log and noticed you didn't cast a single DnD. And again, it works great so...
And with this, I BELIEVE the Unholy rotation is perfect

.