mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 19:56:38 +00:00
Implement ^spellannouncecasts to toggle announcing casts of spell types
This commit is contained in:
@@ -233,17 +233,15 @@ void bot_command_depart(Client* c, const Seperator* sep)
|
||||
bot_iter->SetCastedSpellType(BotSpellTypes::Teleport);
|
||||
}
|
||||
|
||||
if (bot_iter->GetClass() != Class::Bard || RuleB(Bots, BardsAnnounceCasts)) {
|
||||
Bot::RaidGroupSay(
|
||||
bot_iter,
|
||||
fmt::format(
|
||||
"Casting {} [{}] on {}.",
|
||||
GetSpellName(itr->SpellId),
|
||||
bot_iter->GetSpellTypeNameByID(BotSpellTypes::Teleport),
|
||||
(tar == bot_iter ? "myself" : tar->GetCleanName())
|
||||
).c_str()
|
||||
);
|
||||
}
|
||||
Bot::RaidGroupSay(
|
||||
bot_iter,
|
||||
fmt::format(
|
||||
"Casting {} [{}] on {}.",
|
||||
GetSpellName(itr->SpellId),
|
||||
bot_iter->GetSpellTypeNameByID(BotSpellTypes::Teleport),
|
||||
(tar == bot_iter ? "myself" : tar->GetCleanName())
|
||||
).c_str()
|
||||
);
|
||||
|
||||
is_success = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user