WoWInterface SVN AbilitySayings

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /AbilitySayings
    from Rev 22 to Rev 23
    Reverse comparison

Rev 22 → Rev 23

AbilitySayings/Shaman/AstrallRecall.lua New file
0,0 → 1,19
if ( select(2, UnitClass("player")) == "SHAMAN" ) then
local f = CreateFrame("Frame")
local spellName = GetSpellInfo(556) -- Death Grip
 
f:SetScript("OnEvent",
function(self, event, arg1, arg2)
if arg1 == "player" and strfind(arg2, spellName) then
if event == "UNIT_SPELLCAST_SENT" then
 
SendChatMessage("Who Needs A HearthStone When You Can Step Through the Twisting Nether", "YELL")
 
end
end
end
)
 
f:RegisterEvent("UNIT_SPELLCAST_SENT")
f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
end