From 2211e125d84181f3cc9bcbc497cac5f5788cc72c Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Fri, 31 Jan 2025 14:45:00 -0600 Subject: [PATCH] Set lower limit of spell delays to 100 rather than 1 --- zone/bot.cpp | 6 +++--- zone/bot_commands/spell_delays.cpp | 4 ++-- zone/client_bot.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 91f07d922..c9a26d393 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -12860,7 +12860,7 @@ uint16 Bot::GetDefaultSpellDelay(uint16 spell_type, uint8 stance) { switch (stance) { case Stance::AEBurn: case Stance::Burn: - return 1; + return 100; case Stance::Aggressive: return 2000; case Stance::Efficient: @@ -12883,7 +12883,7 @@ uint16 Bot::GetDefaultSpellDelay(uint16 spell_type, uint8 stance) { switch (stance) { case Stance::AEBurn: case Stance::Burn: - return 1; + return 100; case Stance::Aggressive: return 3000; case Stance::Efficient: @@ -12898,7 +12898,7 @@ uint16 Bot::GetDefaultSpellDelay(uint16 spell_type, uint8 stance) { case BotSpellTypes::AEFear: return 15000; default: - return 1; + return 100; } } diff --git a/zone/bot_commands/spell_delays.cpp b/zone/bot_commands/spell_delays.cpp index 1f0f19fa6..11547f4e1 100644 --- a/zone/bot_commands/spell_delays.cpp +++ b/zone/bot_commands/spell_delays.cpp @@ -153,8 +153,8 @@ void bot_command_spell_delays(Client* c, const Seperator* sep) { if (sep->IsNumber(2)) { type_value = atoi(sep->arg[2]); ++ab_arg; - if (type_value < 1 || type_value > 60000) { - c->Message(Chat::Yellow, "You must enter a value between 1-60000 (1ms to 60s)."); + if (type_value < 100 || type_value > 60000) { + c->Message(Chat::Yellow, "You must enter a value between 100-60000 (100ms to 60s)."); return; } diff --git a/zone/client_bot.cpp b/zone/client_bot.cpp index 1711503f9..27d5719a1 100644 --- a/zone/client_bot.cpp +++ b/zone/client_bot.cpp @@ -375,7 +375,7 @@ uint16 Client::GetDefaultSpellDelay(uint16 spell_type, uint8 stance) { case BotSpellTypes::PetCures: return 5000; default: - return 1; + return 100; } }