Fixes null propogation
This commit is contained in:
parent
22ab83ea9e
commit
3c9842ee5a
218 changed files with 799 additions and 1458 deletions
|
|
@ -94,8 +94,7 @@ namespace Server.Spells.Spellweaving
|
|||
{
|
||||
if (m_WeaponDamageTable.TryGetValue( weapon, out ImmolatingWeaponEntry entry ))
|
||||
{
|
||||
if ( entry.m_Caster != null )
|
||||
entry.m_Caster.PlaySound( 0x27 );
|
||||
entry.m_Caster?.PlaySound( 0x27 );
|
||||
|
||||
entry.m_Timer.Stop();
|
||||
|
||||
|
|
|
|||
|
|
@ -38,8 +38,7 @@ namespace Server.Items
|
|||
|
||||
public virtual void Expire( Mobile parent )
|
||||
{
|
||||
if ( parent != null )
|
||||
parent.SendLocalizedMessage( 1072515, (Name == null ? $"#{LabelNumber}" : Name) ); // The ~1_name~ expired...
|
||||
parent?.SendLocalizedMessage( 1072515, (Name == null ? $"#{LabelNumber}" : Name) ); // The ~1_name~ expired...
|
||||
|
||||
Effects.PlaySound( GetWorldLocation(), Map, 0x201 );
|
||||
|
||||
|
|
|
|||
|
|
@ -90,8 +90,7 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
protected override void OnTargetFinish( Mobile from )
|
||||
{
|
||||
if ( m_Owner != null )
|
||||
m_Owner.FinishSequence();
|
||||
m_Owner?.FinishSequence();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue