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.

What does IsSpellUsable check for?

Featured Replies

Hey all
i've begun rewritting my fightclases to C#.
I am using IsSpellUsable which is all nice and good.
I've looked in the dll, which is obviously obfusticated.
I can't seem to find heads and toe on what IsSpellUsable does?
I know that it checks if you have cooldown on spell, and i'm guessing that it checks if target is in line of sight.
Does it also check if you are already casting something?
Because i for some spells like frost bolt etc. you don't want to wait with casting till you are not casting, due to the lag making you able to cast faster if you spam the button. :)
Also what about launch? CastSpellByName ?

Edited by Ordush

Hello, WRobot method "IsSpellUsable" check if spell is not gray in action bar (mana, cooldown, usable on target, ...: https://wow.gamepedia.com/API_IsUsableSpell and https://wow.gamepedia.com/API_GetSpellCooldown ).

if it is not a spell at cast on self, you need to check if target is in "line of sight" and target distance:

var notInLineOfSight = TraceLine.TraceLineGo(ObjectManager.ObjectManager.Target.Position);
var isGoodDistance  = spell.IsDistanceGood;

 

  • Author
4 hours ago, Droidz said:

Hello, WRobot method "IsSpellUsable" check if spell is not gray in action bar (mana, cooldown, usable on target, ...: https://wow.gamepedia.com/API_IsUsableSpell and https://wow.gamepedia.com/API_GetSpellCooldown ).

if it is not a spell at cast on self, you need to check if target is in "line of sight" and target distance:


var notInLineOfSight = TraceLine.TraceLineGo(ObjectManager.ObjectManager.Target.Position);
var isGoodDistance  = spell.IsDistanceGood;

 

Ah cool.
@Droidz The most important thing for me was just to know whether or not  it was trying to cast while casting.
(UnitCastingInfo("player") == nil) :)

  • 1 month later...
On 27.12.2017 at 3:32 AM, Coleman said:

How does it work without the spell on the action bar?

In vanilla, it doesn't, because you can only check for IsUsableAction. For TBC onwards, there is IsUsableSpell

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.