From 9c971f9217502e55db67609ed7b2343374e1be74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Fri, 11 Aug 2023 17:16:31 -0600 Subject: [PATCH] Fix NPCBot check --- src/IndividualProgressionPlayer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IndividualProgressionPlayer.cpp b/src/IndividualProgressionPlayer.cpp index 7ddf7ba..52a7623 100644 --- a/src/IndividualProgressionPlayer.cpp +++ b/src/IndividualProgressionPlayer.cpp @@ -571,7 +571,7 @@ public: // NPCBots compatibility #ifdef _BOT_AI_H - if (healer->ToCreature()->IsNPCBotOrPet()) + if (healer->GetTypeId() != TYPEID_PLAYER && healer->ToCreature()->IsNPCBotOrPet()) { if (healer->getLevel() < 61) { @@ -611,7 +611,7 @@ public: return; // NPCBots compatibility #ifdef _BOT_AI_H - if (attacker->ToCreature()->IsNPCBotOrPet()) + if (attacker->GetTypeId() != TYPEID_PLAYER && attacker->ToCreature()->IsNPCBotOrPet()) { if (attacker->getLevel() < 61) { @@ -652,7 +652,7 @@ public: // NPCBots compatibility #ifdef _BOT_AI_H - if (attacker->ToCreature()->IsNPCBotOrPet()) + if (attacker->GetTypeId() != TYPEID_PLAYER && attacker->ToCreature()->IsNPCBotOrPet()) { if (attacker->getLevel() < 61) {