Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Allahuakbar(self)
- r=UnitPower('player') c=CastSpellByName cd=GetSpellCooldown p='player' b=UnitBuff d=UnitDebuff gm="Golpe mortal" mc="Machaque colosal" t='target' u=IsUsableSpell vr="Ataque de la victoria" local starts, durations, enableds=GetSpellCooldown("Golpe mortal") timelefts=(starts+durations-GetTime())
- if IsModifierKeyDown()
- then return
- elseif
- r>=80 then c("Golpe heroico")
- end
- if (UnitHealth(t)/UnitHealthMax(t)<=0.19)
- then return
- elseif timelefts>=1.36 and not b(p,"Machaque colosal") and cd(mc)==0 then c(mc)
- elseif timelefts>=1.36 and r>=25 and d(t,mc)
- then c("Embate")
- elseif timelefts>=1.06 and r>=10 and cd("Abrumar")==0
- then c("Abrumar")
- elseif timelefts>=1.36 and r<=10 and cd("Grito de batalla")==0
- then c("Grito de batalla")
- elseif cd(gm)==0 then c(gm)
- end
- if (UnitHealth("target")/UnitHealthMax("target")>=0.19)
- then return
- elseif r>=30 then CastSpellByName("Ejecutar")
- end
- end
- CreateFrame("Frame", "AllahuakbarFrame")
- AllahuakbarFrame:SetScript("OnUpdate", Allahuakbar)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement