From 96294d3af57201ed970e89dc5669f4b5394a27fd Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 6 May 2020 15:16:45 -0400 Subject: [PATCH] Core/Battlegrounds: disable health regen for battleground vehicles Port From (https://github.com/TrinityCore/TrinityCore/commit/53f79acda916220faf53ed3e4d12872740c80df3) --- Source/Game/BattleGrounds/BattleGround.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Game/BattleGrounds/BattleGround.cs b/Source/Game/BattleGrounds/BattleGround.cs index 1511ed56d..5f97b7b91 100644 --- a/Source/Game/BattleGrounds/BattleGround.cs +++ b/Source/Game/BattleGrounds/BattleGround.cs @@ -1471,6 +1471,9 @@ namespace Game.BattleGrounds if (respawntime != 0) creature.SetRespawnDelay(respawntime); + if (creature.IsVehicle()) + creature.SetRegeneratingHealth(false); + return creature; }