mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
remove ht/loh from attack ai
This commit is contained in:
+1
-28
@@ -5212,7 +5212,6 @@ void Bot::DoClassAttacks(Mob *target, bool IsRiposte) {
|
|||||||
bool taunt_time = taunt_timer.Check();
|
bool taunt_time = taunt_timer.Check();
|
||||||
bool ca_time = classattack_timer.Check(false);
|
bool ca_time = classattack_timer.Check(false);
|
||||||
bool ma_time = monkattack_timer.Check(false);
|
bool ma_time = monkattack_timer.Check(false);
|
||||||
bool ka_time = knightattack_timer.Check(false);
|
|
||||||
|
|
||||||
if (taunt_time) {
|
if (taunt_time) {
|
||||||
|
|
||||||
@@ -5229,36 +5228,10 @@ void Bot::DoClassAttacks(Mob *target, bool IsRiposte) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ca_time || ma_time || ka_time) && !IsAttackAllowed(target)) {
|
if ((ca_time || ma_time) && !IsAttackAllowed(target)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ka_time) {
|
|
||||||
|
|
||||||
switch (GetClass()) {
|
|
||||||
case Class::ShadowKnight: {
|
|
||||||
CastSpell(SPELL_NPC_HARM_TOUCH, target->GetID());
|
|
||||||
knightattack_timer.Start(HarmTouchReuseTime * 1000);
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case Class::Paladin: {
|
|
||||||
if (GetHPRatio() < 20) {
|
|
||||||
CastSpell(SPELL_LAY_ON_HANDS, GetID());
|
|
||||||
knightattack_timer.Start(LayOnHandsReuseTime * 1000);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
knightattack_timer.Start(2000);
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
default: {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (IsTaunting() && target->IsNPC() && taunt_time) {
|
if (IsTaunting() && target->IsNPC() && taunt_time) {
|
||||||
if (GetTarget() && GetTarget()->GetHateTop() && GetTarget()->GetHateTop() != this) {
|
if (GetTarget() && GetTarget()->GetHateTop() && GetTarget()->GetHateTop() != this) {
|
||||||
BotGroupSay(
|
BotGroupSay(
|
||||||
|
|||||||
Reference in New Issue
Block a user