fix: Fixes timer index offset (#1907)

### Summary

- Fixes timer intervals not continuing
- Fixes `Timer.Index` being off by 1. Should start at 0 for the first OnTick
- Simplifies Gift of Renewal end check
- Fixes force of nature not applying at the proper time and simplifies the timer logic.
This commit is contained in:
Kamron Batman 2024-08-06 15:46:40 -07:00 • committed by GitHub
parent 2c9b3ef112
commit 28860b7f53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35 additions and 47 deletions

View file

@ -102,7 +102,8 @@ namespace Server.Spells.Spellweaving
protected override void OnTick()
{
if (Index + 1 == Count)
// Last tick will change running to false
if (!Running)
{
StopEffect(_mobile);
_mobile.PlaySound(0x455);