Fixup/Class/Race

* matching bitmasks on IDs may be considered counterproductive
This commit is contained in:
Sarjuuk
2025-02-28 19:17:17 +01:00
parent 4c6d93881c
commit 013f1845b5

View File

@@ -414,7 +414,7 @@ enum ChrClass : int
{ {
$x = []; $x = [];
foreach (self::cases() as $cl) foreach (self::cases() as $cl)
if ($cl->value & $classMask) if ($cl->toMask() & $classMask)
$x[] = $cl->value; $x[] = $cl->value;
return $x; return $x;
@@ -508,7 +508,7 @@ enum ChrRace : int
{ {
$x = []; $x = [];
foreach (self::cases() as $cl) foreach (self::cases() as $cl)
if ($cl->value & $raceMask) if ($cl->toMask() & $raceMask)
$x[] = $cl->value; $x[] = $cl->value;
return $x; return $x;