fix: Fixes area command not working (#725)

This commit is contained in:
Kamron Batman 2021-08-24 11:24:28 -07:00 committed by GitHub
parent d18d436cfe
commit 13931ddf1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ namespace Server.Commands.Generic
foreach (var obj in eable)
{
if ((!mobiles || obj is Mobile) && BaseCommand.IsAccessible(from, obj) && ext.IsValid(obj))
if ((!mobiles || obj is not Mobile || BaseCommand.IsAccessible(from, obj)) && ext.IsValid(obj))
{
objs.Add(obj);
}