What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Death Knight Custom Class

Vastico

New Member
Joined
Jul 28, 2011
Messages
424
Reaction score
10
I am making a Custom Class for my Death Knight (Blood), I just wanted to pass some thoughts about the rotation/priority.

Currently my rotation/priority is:
Code:
CreateSpellCast("Death Grip", Delegator => Me.CurrentTarget.Distance > 15),
                CreateMoveToAndFace(5f, Delegator => Me.CurrentTarget),
                CreateSpellCast("Mind Freeze", Delegator => Me.CurrentTarget.IsCasting || Me.CurrentTarget.ChanneledCastingSpellId != 0),
                CreateSpellCast("Strangulate", Delegator => Me.CurrentTarget.IsCasting || Me.CurrentTarget.ChanneledCastingSpellId != 0),
                CreateSpellCast("Pestilence", Delegator => Me.CurrentTarget.Debuffs.ContainsKey("Blood Plague") 
                    && Me.CurrentTarget.Debuffs.ContainsKey("Frost Fever") 
                    && (from add in NearbyUnfriendlyUnits
                        where !add.HasAura("Blood Plague") && !add.HasAura("Frost Fever") && add.Distance < 10
                        select add).Count() > 0),
                new Decorator(
                    Delegator => SpellManager.CanCast("Death and Decay") && NearbyUnfriendlyUnits.Count(a => a.Distance < 8) > 1,
                    new TreeSharp.Action(
                        Delegator =>
                        {
                            SpellManager.Cast("Death and Decay");
                            LegacySpellManager.ClickRemoteLocation(Me.CurrentTarget.Location);
                        }
                    )
                ),
                CreateSpellCast("Death Strike", Delegator => Me.HealthPercent < 90),
                CreateSpellCast("Icy Touch", Delegator => !Me.CurrentTarget.HasAura("Frost Fever")),
                CreateSpellCast("Plague Strike", Delegator => !Me.CurrentTarget.HasAura("Blood Plague")),
                CreateSpellCast("Blood Boil", Delegator => NearbyUnfriendlyUnits.Count(a => a.Distance < 8) > 1),
                CreateSpellCast("Heart Strike"),
                CreateSpellCast("Death Coil")

Thanks too Singular for many of their methods and utilities.

Now this works absolutely fine but I am usually left with some unholy runes as I am level 63. I've been trying to find a way to get what the time left is for the rune cooldowns for the frost ones.

I have attached a few event handlers:
Code:
            Lua.Events.AttachEvent("RUNE_POWER_UPDATE", UpdateRunePower);
            Lua.Events.AttachEvent("RUNE_TYPE_UPDATE", UpdateRuneType);

These output the rune index of your rune bar, to get the RuneType I can sue Me.GetRuneType perfectly fine but I can't seem to get the cooldown for the slot, does anyone have any ideas on how to do this?

Once I have that I can make it so if the cooldown is maybe 2 seconds it will wait to cast Death Strike instead of wasting the frost rune on Icy Touch. Thanks.
 
Back
Top