/
if ( select(2, UnitClass("player")) == "SHAMAN" ) then |
local f = CreateFrame("Frame") |
local spellName = GetSpellInfo(556) -- Death Grip |
local spellName = GetSpellInfo(556) -- Astral Recall |
f:SetScript("OnEvent", |
function(self, event, arg1, arg2) |
if arg1 == "player" and strfind(arg2, spellName) then |
if event == "UNIT_SPELLCAST_SENT" then |
if event == "SPELL_CAST_SUCCESS" then |
SendChatMessage("Who Needs A HearthStone When You Can Step Through the Twisting Nether", "YELL") |
end |
) |
f:RegisterEvent("UNIT_SPELLCAST_SENT") |
f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED") |
f:RegisterEvent("SPELL_CAST_SUCCESS") |
end |