Fixed item job restrictions
Thanks to @attackjom
This commit is contained in:
parent
07da37618f
commit
e50ce0224f
@ -1354,17 +1354,15 @@ static void itemdb_jobid2mapid(uint64 bclass[3], e_mapid jobmask, bool active)
|
|||||||
// Calculate the required bit to set
|
// Calculate the required bit to set
|
||||||
uint64 job = 1ULL << ( jobmask & MAPID_BASEMASK );
|
uint64 job = 1ULL << ( jobmask & MAPID_BASEMASK );
|
||||||
|
|
||||||
// Basejob
|
|
||||||
temp_mask[0] |= job;
|
|
||||||
|
|
||||||
// 2-1
|
// 2-1
|
||||||
if( ( jobmask & JOBL_2_1 ) != 0 ){
|
if( ( jobmask & JOBL_2_1 ) != 0 ){
|
||||||
temp_mask[1] |= job;
|
temp_mask[1] |= job;
|
||||||
}
|
|
||||||
|
|
||||||
// 2-2
|
// 2-2
|
||||||
if( ( jobmask & JOBL_2_2 ) != 0 ){
|
}else if( ( jobmask & JOBL_2_2 ) != 0 ){
|
||||||
temp_mask[2] |= job;
|
temp_mask[2] |= job;
|
||||||
|
// Basejob
|
||||||
|
}else{
|
||||||
|
temp_mask[0] |= job;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
temp_mask[0] = temp_mask[1] = temp_mask[2] = MAPID_ALL;
|
temp_mask[0] = temp_mask[1] = temp_mask[2] = MAPID_ALL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user