This commit is contained in:
gsemaj
2022-04-13 08:51:50 -04:00
parent 345c9cd3b2
commit 35e938b8c6
2 changed files with 8 additions and 4 deletions

View File

@@ -322,7 +322,8 @@ void Combat::npcAttackPc(Mob *mob, time_t currTime) {
PlayerManager::sendToViewable(mob->target, respbuf, P_FE2CL_NPC_ATTACK_PCs);
if (plr->HP <= 0) {
mob->transition(AIState::RETREAT, mob->target);
if (!MobAI::aggroCheck(mob, getTime()))
mob->transition(AIState::RETREAT, mob->target);
}
}