Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. function Mucksy(self, elapsed)
  2. if (IsActiveBattlefieldArena(isArena == 1)) and UnitExists("arenapet1") and UnitCastingInfo("arenapet1")=="Грубый прием" and (UnitCastingInfo("arenapet1") and select(9,UnitCastingInfo("arenapet1"))==false and GetSpellCooldown("Зуботычина")==0 and IsSpellInRange("Зуботычина", "arenapet1")==1 then
  3. RunMacroText("/use [@arenapet1]Зуботычина")
  4. end
  5. if (IsActiveBattlefieldArena(isArena == 1)) and UnitExists("arenapet2") and UnitCastingInfo("arenapet2")=="Грубый прием" and (UnitCastingInfo("arenapet2") and select(9,UnitCastingInfo("arenapet2"))==false and GetSpellCooldown("Зуботычина")==0 and IsSpellInRange("Зуботычина", "arenapet2")==1 then
  6. RunMacroText("/use [@arenapet2]Зуботычина")
  7. end
  8. if (IsActiveBattlefieldArena(isArena == 1)) and UnitExists("arenapet3") and UnitCastingInfo("arenapet3")=="Грубый прием" and (UnitCastingInfo("arenapet3") and select(9,UnitCastingInfo("arenapet3"))==false and GetSpellCooldown("Зуботычина")==0 and IsSpellInRange("Зуботычина", "arenapet3")==1 then
  9. RunMacroText("/use [@arenapet3]Зуботычина")
  10. end
  11. end
  12. CreateFrame("Frame", "MucksyFrame")
  13. MucksyFrame:SetScript("OnUpdate", Mucksy)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement