Core/Items: Disable legion artifacts except fishing artifact
Port From (https://github.com/TrinityCore/TrinityCore/commit/e718440599b2ce69a45bfdf0af0aee7d37621072)
This commit is contained in:
@@ -34,7 +34,7 @@ namespace Game
|
||||
return;
|
||||
|
||||
Item artifact = _player.GetItemByGuid(artifactAddPower.ArtifactGUID);
|
||||
if (!artifact)
|
||||
if (!artifact || artifact.IsArtifactDisabled())
|
||||
return;
|
||||
|
||||
uint currentArtifactTier = artifact.GetModifier(ItemModifier.ArtifactTier);
|
||||
@@ -210,7 +210,7 @@ namespace Game
|
||||
return;
|
||||
|
||||
Item artifact = _player.GetItemByGuid(confirmArtifactRespec.ArtifactGUID);
|
||||
if (!artifact)
|
||||
if (!artifact || artifact.IsArtifactDisabled())
|
||||
return;
|
||||
|
||||
ulong xpCost = 0;
|
||||
|
||||
Reference in New Issue
Block a user