mirror of
https://github.com/opentibiabr/canary
synced 2026-08-16 06:26:09 -04:00
These changes make a small but significant fix to the familiar system on player login. It ensures that the remaining familiar summon time is never negative by clamping the value to zero. This prevents potential issues if the stored summon time is in the past. - Clamp `familiarTimeLeft` to zero to prevent negative values by using `math.max(0, familiarSummonTime - os.time())` in `familiarOnLogin.onLogin` (`data/scripts/creaturescripts/familiar/on_login.lua`). Resolves #3710 |
||
|---|---|---|
| .. | ||
| on_advance.lua | ||
| on_death.lua | ||
| on_login.lua | ||