mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Reduce delay time
This commit is contained in:
@@ -2435,7 +2435,7 @@ bool PlayerbotAI::CastSpell(uint32 spellId, Unit* target, Item* itemTarget)
|
||||
|
||||
if (failWithDelay)
|
||||
{
|
||||
SetNextCheckDelay(sPlayerbotAIConfig->globalCoolDown);
|
||||
SetNextCheckDelay(sPlayerbotAIConfig->reactDelay);
|
||||
// if (!sPlayerbotAIConfig->logInGroupOnly || (bot->GetGroup() && HasRealPlayerMaster())) {
|
||||
// LOG_DEBUG("playerbots", "Spell cast fail with delay - target name: {}, spellid: {}, bot name: {}",
|
||||
// target->GetName(), spellId, bot->GetName());
|
||||
@@ -2502,7 +2502,7 @@ bool PlayerbotAI::CastSpell(uint32 spellId, Unit* target, Item* itemTarget)
|
||||
if (bot->isMoving() && spell->GetCastTime())
|
||||
{
|
||||
// bot->StopMoving();
|
||||
SetNextCheckDelay(sPlayerbotAIConfig->globalCoolDown);
|
||||
SetNextCheckDelay(sPlayerbotAIConfig->reactDelay);
|
||||
spell->cancel();
|
||||
delete spell;
|
||||
return false;
|
||||
@@ -2656,7 +2656,7 @@ bool PlayerbotAI::CastSpell(uint32 spellId, float x, float y, float z, Item* ite
|
||||
if (bot->isMoving() && spell->GetCastTime())
|
||||
{
|
||||
// bot->StopMoving();
|
||||
SetNextCheckDelay(sPlayerbotAIConfig->globalCoolDown);
|
||||
SetNextCheckDelay(sPlayerbotAIConfig->reactDelay);
|
||||
spell->cancel();
|
||||
delete spell;
|
||||
return false;
|
||||
@@ -2842,7 +2842,7 @@ bool PlayerbotAI::CastVehicleSpell(uint32 spellId, Unit* target)
|
||||
|
||||
if (failWithDelay)
|
||||
{
|
||||
SetNextCheckDelay(sPlayerbotAIConfig->globalCoolDown);
|
||||
SetNextCheckDelay(sPlayerbotAIConfig->reactDelay);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user