mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Added shapeshift
This commit is contained in:
parent
3228667121
commit
e042e3b12b
@ -13,10 +13,12 @@ bool DrinkAction::Execute(Event event)
|
|||||||
if (bot->IsInCombat())
|
if (bot->IsInCombat())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Don't drink while mounted
|
|
||||||
if (bot->IsMounted())
|
if (bot->IsMounted())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (botAI->HasAnyAuraOf(GetTarget(), "dire bear form", "bear form", "cat form", "travel form", "aquatic form","flight form", "swift flight form", nullptr))
|
||||||
|
return false;
|
||||||
|
|
||||||
if (botAI->HasCheat(BotCheatMask::food))
|
if (botAI->HasCheat(BotCheatMask::food))
|
||||||
{
|
{
|
||||||
// if (bot->IsNonMeleeSpellCast(true))
|
// if (bot->IsNonMeleeSpellCast(true))
|
||||||
@ -73,10 +75,12 @@ bool EatAction::Execute(Event event)
|
|||||||
if (bot->IsInCombat())
|
if (bot->IsInCombat())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Don't eat while mounted
|
|
||||||
if (bot->IsMounted())
|
if (bot->IsMounted())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (botAI->HasAnyAuraOf(GetTarget(), "dire bear form", "bear form", "cat form", "travel form", "aquatic form","flight form", "swift flight form", nullptr))
|
||||||
|
return false;
|
||||||
|
|
||||||
if (botAI->HasCheat(BotCheatMask::food))
|
if (botAI->HasCheat(BotCheatMask::food))
|
||||||
{
|
{
|
||||||
// if (bot->IsNonMeleeSpellCast(true))
|
// if (bot->IsNonMeleeSpellCast(true))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user