remove unnecessary messages on silence /block for bots

This commit is contained in:
nytmyr
2024-12-01 23:05:50 -06:00
parent 7a68b4d70c
commit 53d4bc4e48
+8 -8
View File
@@ -5653,13 +5653,13 @@ bool Bot::CastSpell(
LogSpellsDetail("Spell casting canceled: not able to cast now. Valid? [{}] casting [{}] waiting? [{}] spellend? [{}] stunned? [{}] feared? [{}] mezed? [{}] silenced? [{}]",
IsValidSpell(spell_id), casting_spell_id, delaytimer, spellend_timer.Enabled(), IsStunned(), IsFeared(), IsMezzed(), IsSilenced()
);
if (IsSilenced() && !IsDiscipline(spell_id)) {
MessageString(Chat::White, SILENCED_STRING);
}
if (IsAmnesiad() && IsDiscipline(spell_id)) {
MessageString(Chat::White, MELEE_SILENCE);
}
//if (IsSilenced() && !IsDiscipline(spell_id)) {
// MessageString(Chat::White, SILENCED_STRING);
//}
//
//if (IsAmnesiad() && IsDiscipline(spell_id)) {
// MessageString(Chat::White, MELEE_SILENCE);
//}
if (casting_spell_id) {
AI_Bot_Event_SpellCastFinished(false, static_cast<uint16>(casting_spell_slot));
@@ -5670,7 +5670,7 @@ bool Bot::CastSpell(
}
if (IsDetrimentalSpell(spell_id) && !zone->CanDoCombat()) {
MessageString(Chat::White, SPELL_WOULDNT_HOLD);
//MessageString(Chat::White, SPELL_WOULDNT_HOLD);
if (casting_spell_id) {
AI_Bot_Event_SpellCastFinished(false, static_cast<uint16>(casting_spell_slot));
}