mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 05:20:05 +00:00
Fix invisible group mobs bug
This is a simplified adaptation of 29e7bd25a4f888e9d72fa01f84df98de79f861d1 from Retrobution. Co-authored-by: Jade <jadeshrinemaiden@gmail.com>
This commit is contained in:
parent
25ce0f6d82
commit
bb4029a9bf
@ -98,11 +98,17 @@ void MobAI::groupRetreat(Mob *mob) {
|
||||
}
|
||||
Mob* followerMob = (Mob*)NPCManager::NPCs[leadMob->groupMember[i]];
|
||||
|
||||
if (followerMob->state != MobState::COMBAT)
|
||||
continue;
|
||||
|
||||
followerMob->target = nullptr;
|
||||
followerMob->state = MobState::RETREAT;
|
||||
clearDebuff(followerMob);
|
||||
}
|
||||
|
||||
if (leadMob->state != MobState::COMBAT)
|
||||
return;
|
||||
|
||||
leadMob->target = nullptr;
|
||||
leadMob->state = MobState::RETREAT;
|
||||
clearDebuff(leadMob);
|
||||
|
Loading…
Reference in New Issue
Block a user