🎨 Leverage 'IsAnyOf' on monster mode checks

This commit is contained in:
Juliano Leal Goncalves 2021-08-31 23:44:31 -03:00 committed by Anders Jenbo
commit fe95e36d90
3 changed files with 4 additions and 6 deletions

View file

@ -167,7 +167,7 @@ void SyncMonster(int pnum, const TSyncMonster *p)
if (monster.position.future.x == p->_mx && monster.position.future.y == p->_my) {
return;
}
if (monster._mmode == MonsterMode::Charge || monster._mmode == MonsterMode::Petrified) {
if (IsAnyOf(monster._mmode, MonsterMode::Charge, MonsterMode::Petrified)) {
return;
}