fix: Adds FindItemOnLayer generic (#1223)
This commit is contained in:
parent
053dbcbad0
commit
fd6f4239e2
20 changed files with 112 additions and 169 deletions
|
|
@ -717,10 +717,7 @@ namespace Server.Engines.ConPVP
|
|||
{
|
||||
mob.Resurrect();
|
||||
|
||||
if (mob.FindItemOnLayer(Layer.OuterTorso) is DeathRobe robe)
|
||||
{
|
||||
robe.Delete();
|
||||
}
|
||||
mob.FindItemOnLayer<DeathRobe>(Layer.OuterTorso)?.Delete();
|
||||
|
||||
if (cont is Corpse corpse)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue