mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
Set lower limit of spell delays to 100 rather than 1
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -375,7 +375,7 @@ uint16 Client::GetDefaultSpellDelay(uint16 spell_type, uint8 stance) {
|
||||
case BotSpellTypes::PetCures:
|
||||
return 5000;
|
||||
default:
|
||||
return 1;
|
||||
return 100;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user