mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
Remove some annoying emotes
This commit is contained in:
@@ -1081,17 +1081,6 @@ bool MovementAction::Flee(Unit *target)
|
||||
{
|
||||
foundFlee = MoveNear(master);
|
||||
}
|
||||
|
||||
if (foundFlee)
|
||||
{
|
||||
if (!urand(0, 50) && botAI->HasStrategy("emote", BOT_STATE_NON_COMBAT))
|
||||
{
|
||||
std::vector<uint32> sounds;
|
||||
sounds.push_back(304); // guard
|
||||
sounds.push_back(306); // flee
|
||||
botAI->PlayEmote(sounds[urand(0, sounds.size() - 1)]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else // bot is not targeted, try to flee dps/healers
|
||||
@@ -1166,16 +1155,6 @@ bool MovementAction::Flee(Unit *target)
|
||||
foundFlee = MoveNear(master);
|
||||
}
|
||||
|
||||
if (foundFlee)
|
||||
{
|
||||
if (!urand(0, 50) && botAI->HasStrategy("emote", BOT_STATE_NON_COMBAT))
|
||||
{
|
||||
std::vector<uint32> sounds;
|
||||
sounds.push_back(304); // guard
|
||||
sounds.push_back(306); // flee
|
||||
botAI->PlayEmote(sounds[urand(0, sounds.size() - 1)]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1208,13 +1187,6 @@ bool MovementAction::Flee(Unit *target)
|
||||
}
|
||||
|
||||
bool result = MoveTo(target->GetMapId(), rx, ry, rz);
|
||||
if (result && !urand(0, 50) && botAI->HasStrategy("emote", BOT_STATE_NON_COMBAT))
|
||||
{
|
||||
std::vector<uint32> sounds;
|
||||
sounds.push_back(304); // guard
|
||||
sounds.push_back(306); // flee
|
||||
botAI->PlayEmote(sounds[urand(0, sounds.size() - 1)]);
|
||||
}
|
||||
|
||||
if (result)
|
||||
AI_VALUE(LastMovement&, "last movement").lastFlee = time(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user