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:
parent
2c9b3ef112
commit
28860b7f53
4 changed files with 35 additions and 47 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue