diff options
author | Shauren <shauren.trinity@gmail.com> | 2011-07-22 21:42:17 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2011-07-22 21:42:17 +0200 |
commit | ba4c4d89435206761c6688274eac95830d900b11 (patch) | |
tree | 46497381d0b28e0276d6ca8ff8159b13cfa89fd6 /src | |
parent | 74e2d981ac1af4b0e9101c9e5e8a5bf23fd60566 (diff) |
Core/GameObject: Added missed change to destructible health setting
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/GameObject/GameObject.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index 2f827f08585..e1b37f73928 100755 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -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*/) |