Do not aggro on players with /invulnerable

This commit is contained in:
dongresource 2020-12-01 20:42:55 +01:00
parent 1e822f7a6c
commit 046e7bb6f1
1 changed files with 1 additions and 1 deletions

View File

@ -1171,7 +1171,7 @@ bool MobManager::aggroCheck(Mob *mob, time_t currTime) {
if (plr->iConditionBitFlag & CSB_BIT_UP_STEALTH)
mobRange /= 3;
if (plr->iSpecialState & CN_SPECIAL_STATE_FLAG__INVISIBLE)
if (plr->iSpecialState & (CN_SPECIAL_STATE_FLAG__INVISIBLE|CN_SPECIAL_STATE_FLAG__INVULNERABLE))
mobRange = -1;
// height is relevant for aggro distance because of platforming