Set lower limit of spell delays to 100 rather than 1

This commit is contained in:
nytmyr
2025-01-31 14:45:00 -06:00
parent 939e5ea38e
commit 2211e125d8
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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;
}
}
+2 -2
View File
@@ -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;
}
+1 -1
View File
@@ -375,7 +375,7 @@ uint16 Client::GetDefaultSpellDelay(uint16 spell_type, uint8 stance) {
case BotSpellTypes::PetCures:
return 5000;
default:
return 1;
return 100;
}
}