Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function greaterHeal()
- gh_shouldStop = gh_shouldStop or false
- gh_castFinishTime = gh_castFinishTime or 0
- gh_nextCastAt = gh_nextCastAt or 0
- local currentTime = GetTime()
- local gh_cooldown = spellCooldown("Greater Heal")
- if gh_cooldown > 0 then
- gh_castFinishTime = currentTime + 2.5 - 1.5 + gh_cooldown
- gh_shouldStop = true
- end
- if UnitHealth("Target") > UnitHealthMax("Target")-2000 and currentTime > gh_castFinishTime-0.2 and gh_shouldStop then
- stopcast()
- gh_nextCastAt = currentTime + 0.2
- gh_shouldStop = false
- end
- if gh_cooldown <= 0 and currentTime > gh_nextCastAt then
- cast("Greater Heal(rank 2)")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement