mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-09 09:48:20 +00:00
Use the correct bit field for checking whether or not to decrement progress (#1631)
Tested that the cooking mission with johnny umami now no longer allows you to lose progress by deleting items.
This commit is contained in:
parent
aaf446fe6e
commit
94b9731a2b
@ -186,7 +186,7 @@ void MissionTask::Progress(int32_t value, LWOOBJID associate, const std::string&
|
|||||||
|
|
||||||
if (count < 0) {
|
if (count < 0) {
|
||||||
if (mission->IsMission() && type == eMissionTaskType::GATHER && InAllTargets(value)) {
|
if (mission->IsMission() && type == eMissionTaskType::GATHER && InAllTargets(value)) {
|
||||||
if (parameters.size() > 0 && (parameters[0] & 1) != 0) {
|
if (parameters.size() > 0 && (parameters[0] & 4) != 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user