Actually, that's a bug... I just looked it up, and Spell[401].timeleft (401 is just an example of course) is bypassing the code that updates the duration of a spell -- it's supposed to calculate the time left and return the value whenever it's checked, which is what Spellsong.timeleft is properly doing. I did it that way because there's no reason to waste CPU time updating the duration of spells when nothing is even paying attention to that information.
I fixed it for the next update, but for the time being, you can use Spell[401].minsleft or Spell[401].secsleft instead. Both of those are working properly:
Code:
;e echo Spell[401].timeleft
--- Lich: exec1 active.
[exec1: 4.46164881666667]
--- Lich: exec1 has finished.
;e echo Spell[401].minsleft
--- Lich: exec1 active.
[exec1: 4.22727866666667]
--- Lich: exec1 has finished.
;e echo Spell[401].timeleft
--- Lich: exec1 active.
[exec1: 4.22727866666667]
--- Lich: exec1 has finished.
;e echo Spell[401].minsleft
--- Lich: exec1 active.
[exec1: 4.059945]
--- Lich: exec1 has finished.
Last edited by Shaelun; 05-21-2008 at 03:19 PM.
I visualize a time when we will be to robots what dogs are to humans, and I'm rooting for the machines. -- Claude Shannon