fix: js not working on page swap

also fixed saving throw percentages being used on heling operations
This commit is contained in:
Itsigo committed 2024-04-01 20:52:51 +00:00
1 parent a47ae03747
commit 05b4ffab16
5 files changed
+234 -286

No files matched your search

+1 -1
View File
@@ -146,7 +146,7 @@ func TrackerDamage(c fiber.Ctx) error {
heal := c.FormValue("heal")
savingThrow := c.FormValue("savingthrow")
if savingThrow == "on" || heal == "false" {
if savingThrow == "on" && heal != "true" {
damageFloat := float64(damage) * 0.33333
damage -= int(math.Round(damageFloat))
}