State health

This commit is contained in:
Jackz 2022-08-24 12:55:04 -05:00
parent e762ae8de2
commit 75322c044e
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View file

@ -129,7 +129,8 @@ public void Event_HealSuccess(Event event, const char[] name, bool dontBroadcast
if(client) {
int target = GetClientOfUserId(event.GetInt("subject"));
int amount = event.GetInt("health_restored");
PrintToConsoleAll("[Debug] %N healed %N (+%d health)", client, target, amount);
int orgHealth = GetClientHealth(target) - amount;
PrintToConsoleAll("[Debug] %N healed %N (+%d health, was %d)", client, target, amount, orgHealth);
}
}