From 53f79acda916220faf53ed3e4d12872740c80df3 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 (cherry picked from commit 85af0a06305e6f771482da973244737e47bcf34c) --- 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 7b5972cf394..e8ac41d3059 100644 --- a/src/server/game/Battlegrounds/Battleground.cpp +++ b/src/server/game/Battlegrounds/Battleground.cpp @@ -1557,6 +1557,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