Core/Creature: Allow to disable HP regen in Raids even if the target is unreachable

Port From (https://github.com/TrinityCore/TrinityCore/commit/07863a7a6817dbb16fbd740130149bf727a6a136)
This commit is contained in:
hondacrx
2022-02-22 19:49:05 -05:00
parent db46b39a93
commit 87d3646a83
4 changed files with 35 additions and 4 deletions
+2
View File
@@ -312,6 +312,8 @@ namespace Game
/// @todo Add MonsterSight (with meaning) in worldserver.conf or put them as define
Values[WorldCfg.SightMonster] = GetDefaultValue("MonsterSight", 50.0f);
Values[WorldCfg.RegenHpCannotReachTargetInRaid] = GetDefaultValue("Creature.RegenHPCannotReachTargetInRaid", true);
if (reload)
{
int val = GetDefaultValue("GameType", 0);