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

- Cleanup messages and logic.
- Add bitmasks to player race messages.
This commit is contained in:
Kinglykrab authored and GitHub committed 2022-05-27 14:46:53 -04:00
1 parent e6db71e31e
commit 123bc5f19a
4 files changed
+97 -68

No files matched your search

+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) {