mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-26 12:43:52 +00:00
[Bug Fix] Fix for HasLockoutByCharacterID (#3927)
Per HG, this will resolve issues with HasLockoutByCharacterID
This commit is contained in:
parent
700f4645e2
commit
ce73f6bfe1
@ -1171,7 +1171,7 @@ bool Expedition::HasLockoutByCharacterID(
|
||||
{
|
||||
auto lockouts = Expedition::GetExpeditionLockoutsByCharacterID(character_id);
|
||||
return std::any_of(lockouts.begin(), lockouts.end(), [&](const ExpeditionLockoutTimer& lockout) {
|
||||
return lockout.IsSameLockout(expedition_name, event_name);
|
||||
return !lockout.IsExpired() && lockout.IsSameLockout(expedition_name, event_name);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user