Fixes creature health not being updated in client

This commit is contained in:
Hondacrx
2025-08-27 21:19:53 -04:00
parent 799f8a13c6
commit 9fc908cc5f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2891,7 +2891,7 @@ namespace Game.Entities
if (GetLevel() < levelForTarget)
return 1.0f;
return (float)GetMaxHealthByLevel(levelForTarget) / GetCreateHealth();
return (float)GetMaxHealthByLevel(levelForTarget) / (float)GetCreateHealth();
}
public float GetBaseDamageForLevel(uint level)
@@ -1210,7 +1210,7 @@ namespace Game.Entities
}
}
public class UnitData() : HasChangesMask(223)
public class UnitData() : HasChangesMask((int)EntityFragment.CGObject, TypeId.Unit, 223)
{
public UpdateField<bool> Field_314 = new(0, 1);
public UpdateField<List<uint>> StateWorldEffectIDs = new(0, 2);