Fixes random NPEs (#378)

This commit is contained in:
Kamron Batman 2021-01-01 02:16:23 -08:00 • committed by GitHub
parent 582e1877b8
commit cc91fe2b10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 14 deletions

View file

@ -39,9 +39,7 @@ namespace Server.Spells.Ninjitsu
var from = Caster.Location;
var to = new Point3D(p);
var pm = Caster as PlayerMobile; // IsStealthing should be moved to Server.Mobiles
if (!pm.IsStealthing)
if ((Caster as PlayerMobile)?.IsStealthing != true)
{
Caster.SendLocalizedMessage(1063087); // You must be in stealth mode to use this ability.
}