Fixes sequential checks
This commit is contained in:
parent
83dcf536d8
commit
42d0b6271f
67 changed files with 99 additions and 99 deletions
|
|
@ -36,7 +36,7 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
public static ArcaneFocus FindArcaneFocus( Mobile from )
|
||||
{
|
||||
if ( from == null || from.Backpack == null )
|
||||
if ( @from?.Backpack == null )
|
||||
return null;
|
||||
|
||||
if ( from.Holding is ArcaneFocus )
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ namespace Server.Spells.Spellweaving
|
|||
BaseCreature pet = (BaseCreature)m;
|
||||
Mobile master = pet.GetMaster();
|
||||
|
||||
if ( master != null && master.NetState != null && Utility.InUpdateRange( pet, master ) )
|
||||
if ( master?.NetState != null && Utility.InUpdateRange( pet, master ) )
|
||||
{
|
||||
master.CloseGump( typeof( PetResurrectGump ) );
|
||||
master.SendGump( new PetResurrectGump( master, pet, hitsScalar ) );
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
HouseRegion r = Region.Find( p, map ).GetRegion( typeof( HouseRegion ) ) as HouseRegion;
|
||||
|
||||
if ( r != null && r.House != null && !r.House.IsFriend( Caster ) )
|
||||
if ( r?.House != null && !r.House.IsFriend( Caster ) )
|
||||
return;
|
||||
|
||||
if ( !map.CanSpawnMobile( p.X, p.Y, p.Z ) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue