Code:
if not ( divinestormcd > 0 and duration > 1.5) then
print("Divine Storm Ready!") and VFL.AdaptiveUnschedule(dstas);
end
this is not valid lua code.
use this instead:
Code:
if not ( divinestormcd > 0 and duration > 1.5) then
print("Divine Storm Ready!");
VFL.AdaptiveUnschedule(dstas);
end
i dont think the changes you made in the second post provide any significant performance improvemts, but checking for the cd every 0.1 seconds is a very inefficient way to handle this. there should be some events you can use.
create an anonymous frame and register an event to that frame, then use the OnEvent handler to call your cd-checking function.
check the event-section on wowwiki for a event that suites your needs.