Code:
#showtooltip
/startattack
/stopmacro [noexists][noharm][dead]
/console Sound_EnableSFX 0
/cast [combat]14
/cast [combat]Blood Tap
/cast [combat]Unholy Frenzy
/cast [combat]Claw
/script UIErrorsFrame:Clear()
/script local CS=CastSpell;
/script local GS=GetSpellID;
/script local class=UnitClass("target");
/script local function runeCDs (r) { local a, b { if r == "unholy" then a, b = 3, 4; elseif r == "frost" then a, b = 5, 6; elseif r == "blood" then a, b = 1, 2; end; } local time1, time2 = 20, 20; local start, dur, cool = GetRuneCooldown(a); time1 = (cool and 0) or (dur - (curtime - start + GCD)); local start, dur, cool = GetRuneCooldown(b); time2 = (cool and 0) or (dur - (curtime - start + GCD)); if time1 > time2 then { return time2, time1, GetRuneType(b) == 4, GetRuneType(a) == 4l; } else { return time1, time2, GetRuneType(a) == 4, GetRuneType(b) == 4; } end; end; }
/script local frost, lfrost, fd, lfd = runeCDs("frost")
/script local unholy, lunholy = runeCDs("unholy")
/script local blood, lblood, bd, lbd = runeCDs("blood")
/script local death = availableDeathRunesCount()
/script local OB=GS("Outbreak");
/script local IT=GS("Icy Touch");
/script local PS=GS("Plague Strike");
/script local DT=GS("Dark Transformation");
/script local FS=GS("Festering Strike");
/script local SS=GS("Scourge Strike");
/script local SS=GS("Blood Strike");
/script local HW=GS("Horn of Winter");
/script local expires1 = select(7,UnitDebuff("TARGET", spells["Frost Fever"], nil, "PLAYER"))
/script local expires2 = select(7,UnitDebuff("TARGET", spells["Blood Plague"], nil, "PLAYER"))
/script if (expires1 == nil and expires2 == nil and GetSpellCooldown(spells["Outbreak"]) == 0) then CS(OB,0);end;
/script if (expires1 == nil and ((runeCDs("frost") <= 0) or availableDeathRunesCount() >= 1)) then CS(IT,0);end;
/script if (expires2 == nil and ((runeCDs("unholy") <= 0) or availableDeathRunesCount() >= 1)) then CS(PS,0);end;
/script if (select(4, UnitBuff("PET",spells["Shadow Infusion"])) == 5 and ((unholy <= 0) or (death >= 1))) then CS(DT,0);end;
/script if ((lunholy <= 0) or (lfrost <= 0 and (lfd or (frost <= 0 and fd))) or (lblood <= 0 and (lbd or (blood <= 0 and bd)))) then CS(SS,0);end;
/script if ((lfrost <= 0) and (lblood <= 0)) then CS(FS,0);end;
/script if ((UnitPower("player") >= (UnitPowerMax("player")-20)) or (select(7, UnitBuff("PLAYER",spells["Sudden Doom"]))~= nil) or (select(1, UnitBuff("PLAYER",spells["Runic Corruption"])) == nil and UnitPower("player") >= (40 - DC))) then CS(DC,0);end;
/script if ((unholy <= 0) or (death >= 1)) then CS(SS,0);end;
/script if ((frost <= 0) and (blood <= 0)) then CS(FS,0);end;
/script if (UnitPower("player") >= (40 - DC) or select(7, UnitBuff("PLAYER",spells["Sudden Doom"]))~= nil) then CS(DC,0);end;
/script if (GetSpellCooldown(spells["Horn of Winter"]) == 0) then CS(HW,0);end;
can ANYONE plz help me fix it?
Connect With Us