mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-27 23:46:23 +00:00
Fix avoid aoe output text
This commit is contained in:
@@ -1528,7 +1528,7 @@ bool AvoidAoeAction::AvoidAuraWithDynamicObj()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
std::ostringstream name;
|
std::ostringstream name;
|
||||||
name << "[" << spellInfo->SpellName[0] << "](aura)";
|
name << "[" << spellInfo->SpellName[0] << "] (aura)";
|
||||||
if (FleePostion(dynOwner->GetPosition(), radius, name.str())) {
|
if (FleePostion(dynOwner->GetPosition(), radius, name.str())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1579,7 +1579,7 @@ bool AvoidAoeAction::AvoidGameObjectWithDamage()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
std::ostringstream name;
|
std::ostringstream name;
|
||||||
name << "[" << spellInfo->SpellName[0] << "](object)";
|
name << "[" << spellInfo->SpellName[0] << "] (object)";
|
||||||
if (FleePostion(go->GetPosition(), radius, name.str())) {
|
if (FleePostion(go->GetPosition(), radius, name.str())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1617,7 +1617,7 @@ bool AvoidAoeAction::FleePostion(Position pos, float radius, std::string name)
|
|||||||
if (farestDis > 0.0f) {
|
if (farestDis > 0.0f) {
|
||||||
if (MoveTo(bot->GetMapId(), bestPos.GetPositionX(), bestPos.GetPositionY(), bestPos.GetPositionZ(), false, false, true)) {
|
if (MoveTo(bot->GetMapId(), bestPos.GetPositionX(), bestPos.GetPositionY(), bestPos.GetPositionZ(), false, false, true)) {
|
||||||
std::ostringstream out;
|
std::ostringstream out;
|
||||||
out << "I'm avoiding aoe spell " << name << "...";
|
out << "Avoiding spell " << name << "...";
|
||||||
bot->Say(out.str(), LANG_UNIVERSAL);
|
bot->Say(out.str(), LANG_UNIVERSAL);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user