From caa3eb6423cd8019a5f4a9093448d3dce6230d57 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 15 Apr 2024 20:52:44 +0800 Subject: [PATCH] Fix avoid aoe output text --- src/strategy/actions/MovementActions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/strategy/actions/MovementActions.cpp b/src/strategy/actions/MovementActions.cpp index 48e6fd00..c5ac3e62 100644 --- a/src/strategy/actions/MovementActions.cpp +++ b/src/strategy/actions/MovementActions.cpp @@ -1528,7 +1528,7 @@ bool AvoidAoeAction::AvoidAuraWithDynamicObj() return false; } std::ostringstream name; - name << "[" << spellInfo->SpellName[0] << "](aura)"; + name << "[" << spellInfo->SpellName[0] << "] (aura)"; if (FleePostion(dynOwner->GetPosition(), radius, name.str())) { return true; } @@ -1579,7 +1579,7 @@ bool AvoidAoeAction::AvoidGameObjectWithDamage() return false; } std::ostringstream name; - name << "[" << spellInfo->SpellName[0] << "](object)"; + name << "[" << spellInfo->SpellName[0] << "] (object)"; if (FleePostion(go->GetPosition(), radius, name.str())) { return true; } @@ -1617,7 +1617,7 @@ bool AvoidAoeAction::FleePostion(Position pos, float radius, std::string name) if (farestDis > 0.0f) { if (MoveTo(bot->GetMapId(), bestPos.GetPositionX(), bestPos.GetPositionY(), bestPos.GetPositionZ(), false, false, true)) { std::ostringstream out; - out << "I'm avoiding aoe spell " << name << "..."; + out << "Avoiding spell " << name << "..."; bot->Say(out.str(), LANG_UNIVERSAL); return true; }