mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Fixup/Class/Race
* matching bitmasks on IDs may be considered counterproductive
This commit is contained in:
@@ -414,7 +414,7 @@ enum ChrClass : int
|
||||
{
|
||||
$x = [];
|
||||
foreach (self::cases() as $cl)
|
||||
if ($cl->value & $classMask)
|
||||
if ($cl->toMask() & $classMask)
|
||||
$x[] = $cl->value;
|
||||
|
||||
return $x;
|
||||
@@ -508,7 +508,7 @@ enum ChrRace : int
|
||||
{
|
||||
$x = [];
|
||||
foreach (self::cases() as $cl)
|
||||
if ($cl->value & $raceMask)
|
||||
if ($cl->toMask() & $raceMask)
|
||||
$x[] = $cl->value;
|
||||
|
||||
return $x;
|
||||
|
||||
Reference in New Issue
Block a user