diff options
author | Gustavo <sirikfoll@hotmail.com> | 2017-03-29 06:28:06 -0300 |
---|---|---|
committer | tkrokli <tkrokli@users.noreply.github.com> | 2017-03-29 11:28:06 +0200 |
commit | 85af0a06305e6f771482da973244737e47bcf34c (patch) | |
tree | 13917f8c3dcbc5ed39f90a01c2b23692fa4bd057 /src | |
parent | f6f36be004c3b8c7d09e0f320d5aabb8a9129109 (diff) |
Core/Battlegrounds: disable health regen for battleground vehicles (#19183)
Updates issue #950
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Battlegrounds/Battleground.cpp | 3 |
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; } |