View Single Post
05-13-17, 10:07 AM   #8
Kakjens
A Cliff Giant
Join Date: Apr 2017
Posts: 75
Knowing the last relevant spell before entering combat is not so easy. One thought on how to implement it.
During non-combat, store in local to the lua file variable with the last casted spell and timestamp. When entering combat, verify that it is relevant by checking that there's small time difference between timestamp and current time.
This way you would also be able to collect statistics about spells with which you initiate combat.
The other thing is whether you want to track only one spell preceding combat, or, for example, on use trinkets, racials (e.g, berserking), potion usage, etc. as well.
Does not solve extra action bar spell issue.
  Reply With Quote