Update attack.cpp

This commit is contained in:
Paul Coene 2020-01-30 15:19:02 -05:00 committed by GitHub
parent bcb08f99f0
commit 83ad9c86db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -724,7 +724,7 @@ int Mob::GetClassRaceACBonus()
hardcap = 32;
softcap = 15;
}
double weight = IsClient() ? CastToClient()->CalcCurrentWeight()/10.0:0;
int weight = IsClient() ? CastToClient()->CalcCurrentWeight()/10 : 0;
if (weight < hardcap - 1) {
double temp = level + 5;
if (weight > softcap) {