Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Interrupt PVP Earth Shock

Featured Replies

I need an interrupt script for my resto shaman. Something simple like interrupting a set target focus with Earth Shock. I tried some things but couldn't get anything to work. If anyone can help or give some guidance I would be grateful. Also, what profile should I then load into Wrobot itself? I also ask ChatGTP for lua but dont think this is correct if some u guys can check it for me rly quick !
local interruptSpells = {
    ["Healing Touch"] = true,
    ["Tranquility"] = true,
    ["Regrowth"] = true,
    ["Cyclone"] = true,
    ["Frostbolt"] = true,
    ["Polymorph"] = true,
    ["Howl of Terror"] = true,
    ["Fear"] = true,
    ["Drain Life"] = true,
    ["Holy Light"] = true,
    ["Flash of Light"] = true,
    ["Greater Heal"] = true,
    ["Flash Heal"] = true,
    ["Mind Blast"] = true,
    ["Smite"] = true,
    ["Lesser Healing Wave"] = true
}

local frame = CreateFrame("Frame")
frame:SetScript("OnUpdate", function()
    local name, _, _, startTimeMS, endTimeMS, _, _, notInterruptible = UnitCastingInfo("focus")
    
    if name and interruptSpells[name] and not notInterruptible then
        local currentTime = GetTime() * 1000
        local castProgress = (currentTime - startTimeMS) / (endTimeMS - startTimeMS) * 100

        if castProgress >= 5 and castProgress <= 10 then
            CastSpellByName("Earth Shock", "focus")
            print("Interrupted " .. name .. " with Earth Shock at " .. math.floor(castProgress) .. "% cast progress.")
        end
    end
end)

 
 
 
 
 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.