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.

How to cancel the current cast?

Featured Replies

I have been creating a hunter profile for awhile now. I am pretty happy with the fight class editor, nice work! 

One thing I have not been able to figure out is how to cancel my Cobra shot (or any other shot that takes awhile to cast) if my kill shot is castable (target health under 20%). At the moment if I am casting, and Kill shot becomes available to use, I have to wait for the current cast to finish.

Thanks all, 

Rickster

 

  • 2 months later...
  • Author

I thought this was working, but now I have noticed several times now that while in the midst casting Cobra Shot, kill shot becomes available and Cobra Shot doesn't stop casting?

I have attached my fight class for inspection...

Thanks!

 

ricks_BM2.xml

  • Author

I did some experimenting and I think the problem is that the LUA call is protected?

I removed the spell is usable kill shot check in the conditions for testing so that it would simply cancel Cobra Shot each time it was cast. This had no effect and CS continued casting.

If I replace  SpellStopCasting(); with message("text");

The screen shows a message box with "text" each time Cobra shot starts to cast...

The documentation shows that it is protected.

http://wowprogramming.com/docs/api/SpellStopCasting

Any way around this?

Thanks,

Rick

20 hours ago, Rickster said:

I did some experimenting and I think the problem is that the LUA call is protected?

I removed the spell is usable kill shot check in the conditions for testing so that it would simply cancel Cobra Shot each time it was cast. This had no effect and CS continued casting.

If I replace  SpellStopCasting(); with message("text");

The screen shows a message box with "text" each time Cobra shot starts to cast...

The documentation shows that it is protected.

http://wowprogramming.com/docs/api/SpellStopCasting

Any way around this?

Thanks,

Rick

WRobot can run protected lua command, you can try to move your character if SpellStopCasting() don't works ( http://wowprogramming.com/docs/api/MoveForwardStart and http://wowprogramming.com/docs/api/MoveForwardStop )

  • Author

Using "is Spell Useable" was not always triggering as it should, the ultimate solution is to use "is Spell Overlayed" in conjunction with "casting Spell Name" in the conditionals.

========= Conditionals =========

is spell overlayed: Kill Shot, True

casting spell name: Cobra Shot, true

=============================

That in addition to the LUA spell entries above:

SpellStopCasting();
SpellStopCasting();
CastSpellByName("Kill Shot");

It is working great!

Thanks again,

Rick

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.