Stamina is only drained when you are gaining experience after killing a monster. If you are training with summoned monsters, being attacked, or making runes, your time of stamina will remain
Source: https://tibia.fandom.com/wiki/Stamina
Stamina only decreases when you gain experience, so if you remain online attacking a monster but you don't actually kill it, your stamina won´t decrease.
However, since you won't be offline or in a resting area (assuming you have the daily bonus active) you won't regenerate any stamina.
Golden Contribution - Winter Update 2024 contestNovember 24, 2024
Brighid Grand Explorateur - Applying to TibiaQA team as ModeratorNovember 19, 2024
Looking for new TibiaQA staff membersJuly 12, 2024