Some cleanups. (might break build for scripts as they are a WIP)

This commit is contained in:
hondacrx
2023-10-08 10:35:31 -04:00
parent fa10b981bd
commit cda53c8e7f
208 changed files with 2266 additions and 2329 deletions
+4 -4
View File
@@ -108,7 +108,7 @@ namespace Game.Chat
}
Player target = handler.GetSelectedPlayer();
if (!target)
if (target == null)
{
handler.SendSysMessage(CypherStrings.NoCharSelected);
return false;
@@ -128,7 +128,7 @@ namespace Game.Chat
string nameLink = handler.GetNameLink(target);
Group grp = target.GetGroup();
if (!grp)
if (grp == null)
{
handler.SendSysMessage(CypherStrings.NotInGroup, nameLink);
return false;
@@ -137,7 +137,7 @@ namespace Game.Chat
for (GroupReference refe = grp.GetFirstMember(); refe != null; refe = refe.Next())
{
Player player = refe.GetSource();
if (!player || !player.GetSession())
if (player == null || player.GetSession() == null)
continue;
// check online security
@@ -234,7 +234,7 @@ namespace Game.Chat
if (where is string && where.Equals("$home")) // References target's homebind
{
if (target)
if (target != null)
target.TeleportTo(target.GetHomebind());
else
{