Fixes casting checks
This commit is contained in:
parent
7ea00fbf4f
commit
03dd5f1926
431 changed files with 5616 additions and 6250 deletions
|
|
@ -39,15 +39,10 @@ namespace Server.Engines.ConPVP
|
|||
|
||||
PlayerMobile pm = m as PlayerMobile;
|
||||
|
||||
if ( pm == null && m is BaseCreature )
|
||||
{
|
||||
BaseCreature bc = (BaseCreature)m;
|
||||
if ( pm == null && m is BaseCreature bc && bc.Summoned )
|
||||
pm = bc.SummonMaster as PlayerMobile;
|
||||
|
||||
if ( bc.Summoned )
|
||||
pm = bc.SummonMaster as PlayerMobile;
|
||||
}
|
||||
|
||||
if ( pm != null && pm.DuelContext != null && pm.DuelContext.StartedBeginCountdown )
|
||||
if ( pm?.DuelContext != null && pm.DuelContext.StartedBeginCountdown )
|
||||
return true;
|
||||
|
||||
if ( DuelContext.CheckCombat( m ) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue