From 85af0a06305e6f771482da973244737e47bcf34c Mon Sep 17 00:00:00 2001 From: Gustavo Date: Wed, 29 Mar 2017 06:28:06 -0300 Subject: Core/Battlegrounds: disable health regen for battleground vehicles (#19183) Updates issue #950 --- src/server/game/Battlegrounds/Battleground.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3