Thread Tools Display Modes
01-15-19, 12:08 PM   #1
doofus
A Chromatic Dragonspawn
Join Date: Feb 2018
Posts: 158
How to tell if player is unable to move

I would like to know whether "player" is rooted and I could look for the appropriate debuff but there are so many of them that ave same effect. Is there an API function that could tell me?
  Reply With Quote
01-15-19, 02:16 PM   #2
wardz
A Deviate Faerie Dragon
 
wardz's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 17
If it's only for yourself, you can probably use C_LossOfControl.GetEventInfo

See here for reference.
  Reply With Quote
01-15-19, 02:36 PM   #3
jlam
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 29
You can look in FrameXML/LossOfControlFrame.lua for examples of how the C_LossOfControl system is meant to be used. However, not every debuff that causes a Loss Of Control event is caught by the C_LossOfControl system, so you'll still need either some database to catch those debuffs or else scan tooltips for "[Rr]ooted".
  Reply With Quote
01-16-19, 03:25 AM   #4
doofus
A Chromatic Dragonspawn
Join Date: Feb 2018
Posts: 158
I think it is academic now, the reason I was interested is because my DH could not move due to a spider's "Vile Webbing" I think the debuff was...

Is there a way to acquire a loss of control debuff for testing purposes? Play with a Rogue and ask them to stun you or with a druid and ask them to root you perhaps?
  Reply With Quote
01-16-19, 08:43 AM   #5
liquidbase
A Warpwood Thunder Caller
 
liquidbase's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 97
Originally Posted by doofus View Post
I think it is academic now, the reason I was interested is because my DH could not move due to a spider's "Vile Webbing" I think the debuff was...

Is there a way to acquire a loss of control debuff for testing purposes? Play with a Rogue and ask them to stun you or with a druid and ask them to root you perhaps?
Test this with a mob that has the ability. Just be careful not to kill them.
Testing it with another player only makes sense if you query several roots / stuns.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to tell if player is unable to move

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off