Fixes several more expression issues and cast type check merges.
This commit is contained in:
parent
f93c3b992e
commit
9542c79ea4
24 changed files with 106 additions and 145 deletions
|
|
@ -94,8 +94,8 @@ namespace Server.Mobiles
|
|||
if (m == this || !CanBeHarmful(m))
|
||||
continue;
|
||||
|
||||
if (m is BaseCreature && (((BaseCreature)m).Controlled || ((BaseCreature)m).Summoned ||
|
||||
((BaseCreature)m).Team != Team))
|
||||
if (m is BaseCreature creature && (creature.Controlled || creature.Summoned ||
|
||||
creature.Team != Team))
|
||||
list.Add(m);
|
||||
else if (m.Player)
|
||||
list.Add(m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue