mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Fix NPCBot check
This commit is contained in:
@@ -571,7 +571,7 @@ public:
|
|||||||
|
|
||||||
// NPCBots compatibility
|
// NPCBots compatibility
|
||||||
#ifdef _BOT_AI_H
|
#ifdef _BOT_AI_H
|
||||||
if (healer->ToCreature()->IsNPCBotOrPet())
|
if (healer->GetTypeId() != TYPEID_PLAYER && healer->ToCreature()->IsNPCBotOrPet())
|
||||||
{
|
{
|
||||||
if (healer->getLevel() < 61)
|
if (healer->getLevel() < 61)
|
||||||
{
|
{
|
||||||
@@ -611,7 +611,7 @@ public:
|
|||||||
return;
|
return;
|
||||||
// NPCBots compatibility
|
// NPCBots compatibility
|
||||||
#ifdef _BOT_AI_H
|
#ifdef _BOT_AI_H
|
||||||
if (attacker->ToCreature()->IsNPCBotOrPet())
|
if (attacker->GetTypeId() != TYPEID_PLAYER && attacker->ToCreature()->IsNPCBotOrPet())
|
||||||
{
|
{
|
||||||
if (attacker->getLevel() < 61)
|
if (attacker->getLevel() < 61)
|
||||||
{
|
{
|
||||||
@@ -652,7 +652,7 @@ public:
|
|||||||
|
|
||||||
// NPCBots compatibility
|
// NPCBots compatibility
|
||||||
#ifdef _BOT_AI_H
|
#ifdef _BOT_AI_H
|
||||||
if (attacker->ToCreature()->IsNPCBotOrPet())
|
if (attacker->GetTypeId() != TYPEID_PLAYER && attacker->ToCreature()->IsNPCBotOrPet())
|
||||||
{
|
{
|
||||||
if (attacker->getLevel() < 61)
|
if (attacker->getLevel() < 61)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user