mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 05:20:05 +00:00
Don't aggro to players using MSS
This commit is contained in:
parent
558d056bcf
commit
aaaf03128a
@ -127,7 +127,7 @@ bool MobAI::aggroCheck(Mob *mob, time_t currTime) {
|
|||||||
CNSocket *s = ref.sock;
|
CNSocket *s = ref.sock;
|
||||||
Player *plr = PlayerManager::getPlayer(s);
|
Player *plr = PlayerManager::getPlayer(s);
|
||||||
|
|
||||||
if (plr->HP <= 0)
|
if (plr->HP <= 0 || plr->onMonkey)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
int mobRange = mob->sightRange;
|
int mobRange = mob->sightRange;
|
||||||
|
Loading…
Reference in New Issue
Block a user