how to block spell on succeed cast (or remove spell from acitonbar / change actionbar
I'm trying to create script which would block the spell "Explosive Shot" for 2 sec (so the spell will be unclickable or so) when this spell is successfully cast.
EDIT: so far I was only able to check when the Explosive Shot happens and track when I can shot again, if not possible to block the spell (make it unclicable) then I was thinking to remove the icon from action bar so there is actualy nothing to be clicked on, or if you even think up anything else which would prevent to cast again, then Im open to ideas. So far this is working fine to check when the spell was casted and when can be casted again: Code:
local myFrame = CreateFrame("Frame"); EDIT3: I have tried ChangeActionBarPage() but it works only out of combat. According to this link https://www.wowinterface.com/forums/...ad.php?t=55594 there is a way to do it in combat. can anyone advice how-to please? |
At the end on succesfull cast I have created a button which I placed ower the spell in actionbar so its incluckable for a period of time or untill target has the debuff drom the spell...
Sort of good solution, works fine, DPS somehow raised up because Im not casting spells which has no effect because the debuff already exists on target but instead casting other spells... |
All times are GMT -6. The time now is 03:06 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI