Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -67,7 +67,7 @@ namespace Server
|
|||
|
||||
public static int Compute( Mobile source, Mobile target )
|
||||
{
|
||||
return m_Handler == null ? CanBeAttacked : m_Handler( source, target );
|
||||
return m_Handler?.Invoke( source, target ) ?? CanBeAttacked;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue