Use percent hp and mana in creature spawns table.

This commit is contained in:
ratkosrb
2019-01-24 08:46:01 +02:00
parent 66296ef47c
commit cf6e4f1292
7 changed files with 108 additions and 50 deletions
+1 -1
View File
@@ -680,7 +680,7 @@ void Object::BuildValuesUpdate(uint8 updatetype, ByteBuffer * data, UpdateMask *
else
*data << uint32(m_uint32Values[index]);
}
// Hide real health value. Send a percent instead. See ShowHealth.Values option in mangosd.conf
// Hide real health value. Send a percent instead. See ShowHealthValues option in mangosd.conf
else if (!ShowHealthValues && (index == UNIT_FIELD_HEALTH || index == UNIT_FIELD_MAXHEALTH))
{
Player* owner = ((Unit*)this)->GetCharmerOrOwnerPlayerOrPlayerItself();