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 = [];
|
$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;
|
||||||
|
|||||||
Reference in New Issue
Block a user