Fixes more casting and other formatting issues.
This commit is contained in:
parent
03dd5f1926
commit
61937d9c97
67 changed files with 325 additions and 570 deletions
|
|
@ -27,12 +27,10 @@ namespace Server.Engines.MLQuests.Items
|
|||
return;
|
||||
}
|
||||
|
||||
MLQuestContext context;
|
||||
|
||||
if ( from is PlayerMobile && ( context = MLQuestSystem.GetContext( (PlayerMobile)from ) ) != null && context.BedlamAccess )
|
||||
if ( from is PlayerMobile mobile && MLQuestSystem.GetContext( mobile )?.BedlamAccess == true )
|
||||
{
|
||||
BaseCreature.TeleportPets( from, PointDest, MapDest );
|
||||
from.MoveToWorld( PointDest, MapDest );
|
||||
BaseCreature.TeleportPets( mobile, PointDest, MapDest );
|
||||
mobile.MoveToWorld( PointDest, MapDest );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue