Core/Misc: Updated GameObjectTemplate structure

Port From (https://github.com/TrinityCore/TrinityCore/commit/3714bf8e7a5f4d1b066303c0f9bde0becc64e5eb)
This commit is contained in:
hondacrx
2019-08-15 12:19:25 -04:00
parent e869f76034
commit 06085aba8e
4 changed files with 22 additions and 25 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ namespace Game
[WorldPacketHandler(ClientOpcodes.ArtifactAddPower)]
void HandleArtifactAddPower(ArtifactAddPower artifactAddPower)
{
if (!_player.GetGameObjectIfCanInteractWith(artifactAddPower.ForgeGUID, GameObjectTypes.ArtifactForge))
if (!_player.GetGameObjectIfCanInteractWith(artifactAddPower.ForgeGUID, GameObjectTypes.ItemForge))
return;
Item artifact = _player.GetItemByGuid(artifactAddPower.ArtifactGUID);
@@ -160,7 +160,7 @@ namespace Game
[WorldPacketHandler(ClientOpcodes.ArtifactSetAppearance)]
void HandleArtifactSetAppearance(ArtifactSetAppearance artifactSetAppearance)
{
if (!_player.GetGameObjectIfCanInteractWith(artifactSetAppearance.ForgeGUID, GameObjectTypes.ArtifactForge))
if (!_player.GetGameObjectIfCanInteractWith(artifactSetAppearance.ForgeGUID, GameObjectTypes.ItemForge))
return;
ArtifactAppearanceRecord artifactAppearance = CliDB.ArtifactAppearanceStorage.LookupByKey(artifactSetAppearance.ArtifactAppearanceID);