Fixes bad expressions, bad bool checks in loops, a few null pointer exceptions, and optimizes constructors.
This commit is contained in:
parent
8da55d6043
commit
f93c3b992e
62 changed files with 318 additions and 634 deletions
|
|
@ -33,8 +33,8 @@ namespace Server.Spells.Necromancy
|
|||
|
||||
public override void DoEffect(Mobile m)
|
||||
{
|
||||
if (m is PlayerMobile)
|
||||
((PlayerMobile)m).IgnoreMobiles = true;
|
||||
if (m is PlayerMobile mobile)
|
||||
mobile.IgnoreMobiles = true;
|
||||
|
||||
m.PlaySound(0x17F);
|
||||
m.FixedParticles(0x374A, 1, 15, 9902, 1108, 4, EffectLayer.Waist);
|
||||
|
|
@ -42,8 +42,8 @@ namespace Server.Spells.Necromancy
|
|||
|
||||
public override void RemoveEffect(Mobile m)
|
||||
{
|
||||
if (m is PlayerMobile && m.AccessLevel == AccessLevel.Player)
|
||||
((PlayerMobile)m).IgnoreMobiles = false;
|
||||
if (m is PlayerMobile mobile && mobile.AccessLevel == AccessLevel.Player)
|
||||
mobile.IgnoreMobiles = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue