aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo <sirikfoll@hotmail.com>2017-03-29 06:28:06 -0300
committertkrokli <tkrokli@users.noreply.github.com>2017-03-29 11:28:06 +0200
commit85af0a06305e6f771482da973244737e47bcf34c (patch)
tree13917f8c3dcbc5ed39f90a01c2b23692fa4bd057
parentf6f36be004c3b8c7d09e0f320d5aabb8a9129109 (diff)
Core/Battlegrounds: disable health regen for battleground vehicles (#19183)
Updates issue #950
-rw-r--r--src/server/game/Battlegrounds/Battleground.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp
index 6a2275ed415..1fe5f3b0a3f 100644
--- a/src/server/game/Battlegrounds/Battleground.cpp
+++ b/src/server/game/Battlegrounds/Battleground.cpp
@@ -1527,6 +1527,9 @@ Creature* Battleground::AddCreature(uint32 entry, uint32 type, float x, float y,
if (respawntime)
creature->SetRespawnDelay(respawntime);
+ if (creature->IsVehicle())
+ creature->setRegeneratingHealth(false);
+
return creature;
}