Fixes null propogation

This commit is contained in:
Kamron Batman 2018-09-14 13:49:23 -07:00
parent 22ab83ea9e
commit 3c9842ee5a
218 changed files with 799 additions and 1458 deletions

View file

@ -69,8 +69,7 @@ namespace Server.Spells.Chivalry
Timer t = (Timer)m_Table[weapon];
if ( t != null )
t.Stop();
t?.Stop();
weapon.Consecrated = true;

View file

@ -36,8 +36,7 @@ namespace Server.Spells.Chivalry
Timer t = (Timer)m_Table[Caster];
if ( t != null )
t.Stop();
t?.Stop();
int delay = ComputePowerValue( 10 );

View file

@ -35,8 +35,7 @@ namespace Server.Spells.Chivalry
Timer t = (Timer)m_Table[Caster];
if ( t != null )
t.Stop();
t?.Stop();
double delay = (double)ComputePowerValue( 1 ) / 60;