From 6ef9753df35e8f9ca4ffc600c57a18aace556195 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:58:25 -0600 Subject: [PATCH] remove ht/loh from attack ai --- zone/bot.cpp | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 6fd086f64..d6f800f71 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -5212,7 +5212,6 @@ void Bot::DoClassAttacks(Mob *target, bool IsRiposte) { bool taunt_time = taunt_timer.Check(); bool ca_time = classattack_timer.Check(false); bool ma_time = monkattack_timer.Check(false); - bool ka_time = knightattack_timer.Check(false); 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; } - 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 (GetTarget() && GetTarget()->GetHateTop() && GetTarget()->GetHateTop() != this) { BotGroupSay(