mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-06 15:32:25 +00:00
Refactored do_after to use a flag-based system for options (#17127)
* Refactored do_after to use a flag-based system for options * More flags * Ditto * Use the HAS_FLAG macro * do_after pass * Fix burning paper code * Resolve issues from Fluffy's code reviews * .
This commit is contained in:
@@ -446,7 +446,8 @@
|
||||
|
||||
if (user.max_stamina == -1 || user.stamina == user.max_stamina)
|
||||
if (user.stamina_bar)
|
||||
QDEL_NULL(user.stamina_bar)
|
||||
user.stamina_bar.endProgress()
|
||||
user.stamina_bar = null
|
||||
else
|
||||
if (!user.stamina_bar)
|
||||
user.stamina_bar = new(user, user.max_stamina, src)
|
||||
|
||||
Reference in New Issue
Block a user