Core/GameObjects: Updated gameobject template structure to 9.0

Port From (https://github.com/TrinityCore/TrinityCore/commit/364f6eec9a4d6d044666a172a2823161e0e3a418)
This commit is contained in:
hondacrx
2020-12-13 18:13:51 -05:00
parent b50b4265ad
commit ed190daffa
8 changed files with 245 additions and 56 deletions
@@ -1789,12 +1789,15 @@ namespace Game.Entities
return;
//required lvl checks!
uint level = player.GetLevel();
if (level < info.MeetingStone.minLevel)
return;
level = targetPlayer.GetLevel();
if (level < info.MeetingStone.minLevel)
return;
var userLevels = Global.DB2Mgr.GetContentTuningData(info.ContentTuningId, player.m_playerData.CtrOptions.GetValue().ContentTuningConditionMask);
if (userLevels.HasValue)
if (player.GetLevel() < userLevels.Value.MaxLevel)
return;
var targetLevels = Global.DB2Mgr.GetContentTuningData(info.ContentTuningId, targetPlayer.m_playerData.CtrOptions.GetValue().ContentTuningConditionMask);
if (targetLevels.HasValue)
if (targetPlayer.GetLevel() < targetLevels.Value.MaxLevel)
return;
if (info.entry == 194097)
spellId = 61994; // Ritual of Summoning