mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-21 02:18:26 +00:00
holding check at start of ai process
This commit is contained in:
+5
-5
@@ -2089,7 +2089,7 @@ void Bot::AI_Process()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (raid && r_group == RAID_GROUPLESS) {
|
if (HOLDING || (raid && r_group == RAID_GROUPLESS)) {
|
||||||
glm::vec3 Goal(0, 0, 0);
|
glm::vec3 Goal(0, 0, 0);
|
||||||
TryNonCombatMovementChecks(bot_owner, follow_mob, Goal);
|
TryNonCombatMovementChecks(bot_owner, follow_mob, Goal);
|
||||||
|
|
||||||
@@ -2271,7 +2271,7 @@ void Bot::AI_Process()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!IsBotNonSpellFighter() && !HOLDING && AI_HasSpells() && AI_EngagedCastCheck()) {
|
if (!IsBotNonSpellFighter() && AI_HasSpells() && AI_EngagedCastCheck()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2332,6 +2332,7 @@ void Bot::AI_Process()
|
|||||||
SetAttackFlag(false);
|
SetAttackFlag(false);
|
||||||
SetCombatRoundForAlerts(false);
|
SetCombatRoundForAlerts(false);
|
||||||
SetAttackingFlag(false);
|
SetAttackingFlag(false);
|
||||||
|
|
||||||
if (!bot_owner->GetBotPulling()) {
|
if (!bot_owner->GetBotPulling()) {
|
||||||
|
|
||||||
SetPullingFlag(false);
|
SetPullingFlag(false);
|
||||||
@@ -2347,7 +2348,6 @@ void Bot::AI_Process()
|
|||||||
SetTarget(nullptr);
|
SetTarget(nullptr);
|
||||||
|
|
||||||
if (HasPet() && (GetClass() != Class::Enchanter || GetPet()->GetPetType() != petAnimation || GetAA(aaAnimationEmpathy) >= 1)) {
|
if (HasPet() && (GetClass() != Class::Enchanter || GetPet()->GetPetType() != petAnimation || GetAA(aaAnimationEmpathy) >= 1)) {
|
||||||
|
|
||||||
GetPet()->WipeHateList();
|
GetPet()->WipeHateList();
|
||||||
GetPet()->SetTarget(nullptr);
|
GetPet()->SetTarget(nullptr);
|
||||||
}
|
}
|
||||||
@@ -2362,10 +2362,10 @@ void Bot::AI_Process()
|
|||||||
if (TryNonCombatMovementChecks(bot_owner, follow_mob, Goal)) {
|
if (TryNonCombatMovementChecks(bot_owner, follow_mob, Goal)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!HOLDING && AI_HasSpells() && TryIdleChecks(fm_distance)) {
|
if (AI_HasSpells() && TryIdleChecks(fm_distance)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!HOLDING && AI_HasSpells() && TryBardMovementCasts()) {
|
if (AI_HasSpells() && TryBardMovementCasts()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user