[Commands] Cleanup #findclass and #findrace Commands. (#2211)

- Cleanup messages and logic.
- Add bitmasks to player race messages.
This commit is contained in:
Kinglykrab
2022-05-27 14:46:53 -04:00
committed by GitHub
parent e6db71e31e
commit 123bc5f19a
4 changed files with 97 additions and 68 deletions
+10
View File
@@ -2854,6 +2854,16 @@ bool Mob::RandomizeFeatures(bool send_illusion, bool set_variables)
return false;
}
bool Mob::IsPlayerClass(uint16 in_class) {
if (
in_class >= WARRIOR &&
in_class <= BERSERKER
) {
return true;
}
return false;
}
bool Mob::IsPlayerRace(uint16 in_race) {