Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)
This commit is contained in:
parent
e748af4430
commit
513e54f70e
1094 changed files with 15913 additions and 21892 deletions
|
|
@ -18,7 +18,7 @@ namespace Server.Ethics.Evil
|
|||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
if (from.Familiar != null && from.Familiar.Deleted)
|
||||
if (from.Familiar?.Deleted == true)
|
||||
from.Familiar = null;
|
||||
|
||||
if (from.Familiar != null)
|
||||
|
|
@ -43,4 +43,4 @@ namespace Server.Ethics.Evil
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace Server.Ethics.Evil
|
|||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
if (from.Steed != null && from.Steed.Deleted)
|
||||
if (from.Steed?.Deleted == true)
|
||||
from.Steed = null;
|
||||
|
||||
if (from.Steed != null)
|
||||
|
|
@ -43,4 +43,4 @@ namespace Server.Ethics.Evil
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue