|
|
@ -37,23 +37,16 @@ namespace NightmareCoreWeb2.Pages |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
OnGet(); |
|
|
|
OnGet(); |
|
|
|
if (!IsAuthenticated) |
|
|
|
Character c = new Character(guid); |
|
|
|
|
|
|
|
if (!IsAuthenticated || c.Username != this.UserAccount.Username) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
Character c = new Character(guid); |
|
|
|
|
|
|
|
foreach (Character test in this.UserAccount.Characters) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (test.guid == c.guid) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((c.AtLogin & Character.AtLoginOptions.AT_LOGIN_FIRST) == 0) |
|
|
|
if ((c.AtLogin & Character.AtLoginOptions.AT_LOGIN_FIRST) == 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
c.AtLogin |= (Character.AtLoginOptions)action; |
|
|
|
c.AtLogin |= (Character.AtLoginOptions)action; |
|
|
|
} |
|
|
|
} |
|
|
|
c.SetAtLogin(); |
|
|
|
c.SetAtLogin(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
public void OnGet() |
|
|
|
public void OnGet() |
|
|
|