Use GetTempSpellType() for announce check in RaidGroupSay

This commit is contained in:
nytmyr
2025-01-31 17:27:13 -06:00
parent 980aa65ecc
commit a008e75a1c
2 changed files with 8 additions and 36 deletions
-36
View File
@@ -254,10 +254,6 @@ bool Bot::AICastSpell(Mob* tar, uint8 chance, uint16 spell_type, uint16 sub_targ
SetCastedSpellType(spell_type);
}
if (!GetSpellTypeAnnounceCast(spell_type)) {
return true;
}
RaidGroupSay(
this,
fmt::format(
@@ -305,10 +301,6 @@ bool Bot::BotCastMez(Mob* tar, uint8 bot_class, BotSpell& bot_spell, uint16 spel
SetCastedSpellType(spell_type);
}
if (!GetSpellTypeAnnounceCast(spell_type)) {
return true;
}
RaidGroupSay(
this,
fmt::format(
@@ -352,10 +344,6 @@ bool Bot::BotCastCure(Mob* tar, uint8 bot_class, BotSpell& bot_spell, uint16 spe
}
}
if (!GetSpellTypeAnnounceCast(spell_type)) {
return true;
}
RaidGroupSay(
this,
fmt::format(
@@ -369,10 +357,6 @@ bool Bot::BotCastCure(Mob* tar, uint8 bot_class, BotSpell& bot_spell, uint16 spe
SetBotSpellRecastTimer(spell_type, tar, true);
}
if (!GetSpellTypeAnnounceCast(spell_type)) {
return true;
}
RaidGroupSay(
this,
fmt::format(
@@ -427,10 +411,6 @@ bool Bot::BotCastPet(Mob* tar, uint8 bot_class, BotSpell& bot_spell, uint16 spel
if (AIDoSpellCast(bot_spell.SpellIndex, tar, bot_spell.ManaCost)) {
SetCastedSpellType(spell_type);
if (!GetSpellTypeAnnounceCast(spell_type)) {
return true;
}
RaidGroupSay(
this,
fmt::format(
@@ -487,10 +467,6 @@ bool Bot::BotCastNuke(Mob* tar, uint8 bot_class, BotSpell& bot_spell, uint16 spe
if (AIDoSpellCast(s.SpellIndex, tar, s.ManaCost)) {
SetCastedSpellType(spell_type);
if (!GetSpellTypeAnnounceCast(spell_type)) {
return true;
}
RaidGroupSay(
this,
fmt::format(
@@ -509,10 +485,6 @@ bool Bot::BotCastNuke(Mob* tar, uint8 bot_class, BotSpell& bot_spell, uint16 spe
if (AIDoSpellCast(bot_spell.SpellIndex, tar, bot_spell.ManaCost)) {
SetCastedSpellType(spell_type);
if (!GetSpellTypeAnnounceCast(spell_type)) {
return true;
}
RaidGroupSay(
this,
fmt::format(
@@ -549,10 +521,6 @@ bool Bot::BotCastHeal(Mob* tar, uint8 bot_class, BotSpell& bot_spell, uint16 spe
}
}
if (!GetSpellTypeAnnounceCast(spell_type)) {
return true;
}
RaidGroupSay(
this,
fmt::format(
@@ -570,10 +538,6 @@ bool Bot::BotCastHeal(Mob* tar, uint8 bot_class, BotSpell& bot_spell, uint16 spe
}
}
if (!GetSpellTypeAnnounceCast(spell_type)) {
return true;
}
RaidGroupSay(
this,
fmt::format(