allow reports to be filed against anyone

fix rare issue with alias (maybe)
update some tests
This commit is contained in:
RaidMax
2019-06-24 11:01:34 -05:00
parent cb80def122
commit 253c7c8721
16 changed files with 336 additions and 229 deletions

View File

@ -205,12 +205,7 @@ namespace SharedLibraryCore.Database.Models
int reportCount = sender.GetAdditionalProperty<int>("_reportCount");
if (Level > sender.Level)
{
e.FailReason = GameEvent.EventFailReason.Permission;
}
else if (Equals(sender))
if (Equals(sender))
{
e.FailReason = GameEvent.EventFailReason.Invalid;
}