Core/GameObject: Added missed change to destructible health setting

This commit is contained in:
Shauren
2011-07-22 21:42:17 +02:00
parent 74e2d981ac
commit ba4c4d8943
@@ -1763,6 +1763,8 @@ void GameObject::ModifyHealth(int32 change, Unit* attackerOrHealer /*= NULL*/, u
SetDestructibleState(GO_DESTRUCTIBLE_DESTROYED, player, false);
else if (GetGOValue()->Building.Health <= GetGOInfo()->building.damagedNumHits)
SetDestructibleState(GO_DESTRUCTIBLE_DAMAGED, player, false);
else if (GetGOValue()->Building.Health == GetGOValue()->Building.MaxHealth)
SetDestructibleState(GO_DESTRUCTIBLE_INTACT, player, false);
}
void GameObject::SetDestructibleState(GameObjectDestructibleState state, Player* eventInvoker /*= NULL*/, bool setHealth /*= false*/)