fix: Converts stealable artifacts to a system instead of a spawner. (#979)

This commit is contained in:
Kamron Batman 2022-03-27 19:37:10 -07:00 • committed by GitHub
parent b61968db86
commit e148e1cabb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 450 additions and 437 deletions

View file

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Server.Engines.ConPVP;
using Server.Engines.Stealables;
using Server.Factions;
using Server.Items;
using Server.Mobiles;
@ -79,11 +80,9 @@ namespace Server.SkillHandlers
var root = toSteal.RootParent;
var mobRoot = root as Mobile;
StealableArtifactsSpawner.StealableInstance si = null;
if (toSteal.Parent == null || !toSteal.Movable)
{
si = StealableArtifactsSpawner.GetStealableInstance(toSteal);
}
StealableArtifacts.StealableInstance si = toSteal.Parent == null || !toSteal.Movable
? StealableArtifacts.GetStealableInstance(toSteal)
: null;
if (!IsEmptyHanded(m_Thief))
{