Fix some damage being counted wrongly which causes desyncs

This commit is contained in:
BenCat07 2020-04-28 15:32:10 +02:00
parent ff2cf72c81
commit d97f780a8b

View File

@ -815,7 +815,7 @@ public:
// General damage counter
int damage = event->GetInt("damageamount");
if (damage > player_status_list[victim].health)
if (damage > player_status_list[victim].health && !event->GetInt("health"))
damage = player_status_list[victim].health;
// Not a melee weapon