What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Check if skill is available

pmfutbgdfemn

New Member
Joined
Mar 5, 2014
Messages
23
Is there a way to check if a skill is off cooldown? In particular, I want to check when Jump is available and use Power Surge beforehand.
 
Actionmanager.CanCast(spellname,gameobject) returns true when the spell is off cooldown, target in los, and its useable against that target.
 
Ah, thanks. Sorry, I probably could have figured that out with a little exploration.

Have a trickier question; I have it setup to use Life Surge after Vorpal Strike, and Full Thrust as the highest attack on the priority list so Life Surge crit is on my strongest ability. However, sometimes it'll use an off-gcd ability, like a Jump, before the Full Thrust goes off, burning the Life Surge. Is there any way to block other abilities from going off until a certain action is used.
 
simple solution would be to add something like

Code:
!Code.Player.HasAura("Life Surge")
to all the abilities that are off GCD
 
Yeah, I was hoping there was some way to 'force' the next ability used to be a certain one, blocking all other temporarily, but I guess not. Thanks.
 
Back
Top