View Single Post
  #27  
Old 06-13-2020, 01:46 AM
DMN DMN is offline
Planar Protector

DMN's Avatar

Join Date: May 2016
Location: My own special hell
Posts: 3,346
Default

Quote:
Originally Posted by DeathsSilkyMist [You must be logged in to view images. Log in or Register.]
I do programming for a living. This game was built in 1999. Keeping track of every single spell on a character on a per tick basis is a waste of your 56k modem's precious data.

There are two kinds of spells that can stick on a player:

1. Passive buffs
2. Spells that can be resisted.

For passive buffs, there is no need to check the buff on a per tick basis. The server just needs to know when the buff should wear off, and if the player has forcibly removed the buff.

For spells that can be resisted, the server must keep track of the spell on a per tick basis. This is because each tick could cause the spell to be resisted. These kinds of spells must be strictly monitored. This is why you cannot get an extra tick on a DoT, a root, a charm, etc.

For passive buffs, you COULD get an extra tick, because the server is just checking for when the spell wears off, not how many ticks the buff has lasted. Torpor is almost certainly classified as a passive buff with a short timer, rather than a DoT. It makes sense, since Torpor is like a super regeneration. The Regeneration line of spells probably works the same way. The server isn't checking the spell on a per tick basis. The server just checks if you have the buff, and gives you the extra HP.
It only heals you on a server tick. Server ticks are every 6 seconds. it lasts until it has healed you for 4 ticks. If you cast it just before a tick, it would heal you and count down 1 tick, if it was cast just after the tick it would not heal you for that tick nor count down 1 tick. How is this possibly confusing you?