mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Merge pull request #1472 from liyunfan1223/drink_aura
Change drink aura (free food) to speed up
This commit is contained in:
commit
66c88d4815
@ -40,13 +40,13 @@ bool DrinkAction::Execute(Event event)
|
|||||||
float delay;
|
float delay;
|
||||||
|
|
||||||
if (!bot->InBattleground())
|
if (!bot->InBattleground())
|
||||||
delay = 27000.0f * (100 - p) / 100.0f;
|
delay = 18000.0f * (100 - p) / 100.0f;
|
||||||
else
|
else
|
||||||
delay = 20000.0f * (100 - p) / 100.0f;
|
delay = 12000.0f * (100 - p) / 100.0f;
|
||||||
|
|
||||||
botAI->SetNextCheckDelay(delay);
|
botAI->SetNextCheckDelay(delay);
|
||||||
|
|
||||||
bot->AddAura(24707, bot);
|
bot->AddAura(25990, bot);
|
||||||
return true;
|
return true;
|
||||||
// return botAI->CastSpell(24707, bot);
|
// return botAI->CastSpell(24707, bot);
|
||||||
}
|
}
|
||||||
@ -90,13 +90,13 @@ bool EatAction::Execute(Event event)
|
|||||||
float delay;
|
float delay;
|
||||||
|
|
||||||
if (!bot->InBattleground())
|
if (!bot->InBattleground())
|
||||||
delay = 27000.0f * (100 - p) / 100.0f;
|
delay = 18000.0f * (100 - p) / 100.0f;
|
||||||
else
|
else
|
||||||
delay = 20000.0f * (100 - p) / 100.0f;
|
delay = 12000.0f * (100 - p) / 100.0f;
|
||||||
|
|
||||||
botAI->SetNextCheckDelay(delay);
|
botAI->SetNextCheckDelay(delay);
|
||||||
|
|
||||||
bot->AddAura(24707, bot);
|
bot->AddAura(25990, bot);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user