ski
Well-Known Member
- Joined
- Feb 12, 2010
- Messages
- 3,720
I used to use (while Me.Casting > 0){Thread.Sleep(100);} during my spell casts to try and sleep the CC while it was casting (so it wasn't just spamming the log with spellcasts), only I just realized that that statement doesn't actually do anything. Me.Casting is a check to see the int of the spell your casting, and not a value of (Am I casting?).
So I found SpellManager.GlobalCooldown and SpellManager.CastBarVisible, which are both bools that should return true if the GCD is active or my cast bar is showing (aka, if I'm casting). Unfortunately, neither seem to work.
I've tried this code:
But it never enters the while() loop. It will cast Immolate 100 times, but never sleep or report the debug message to the log. Does anyone know if either of these actually work?
So I found SpellManager.GlobalCooldown and SpellManager.CastBarVisible, which are both bools that should return true if the GCD is active or my cast bar is showing (aka, if I'm casting). Unfortunately, neither seem to work.
I've tried this code:
Code:
if (SpellManager.CastSpell("Immolate", false)) {
slog("Spells: Casting Immolate.");
while (SpellManager.GlobalCooldown == true || SpellManager.CastBarVisible == true){
Thread.Sleep(averageLag);
slog("Debug: sleeping 100");
}
return true;
But it never enters the while() loop. It will cast Immolate 100 times, but never sleep or report the debug message to the log. Does anyone know if either of these actually work?