Push discpline messages under melee->disciplines (#3987)

* Push discpline messages under melee->disciplines

* Added safe_delete()

* Remove fryguy's new message code and fix existing instead
This commit is contained in:
Paul Coene
2024-01-19 08:55:26 -05:00
committed by GitHub
parent 748e37dbdf
commit 86705000b0
2 changed files with 6 additions and 7 deletions
-4
View File
@@ -3805,10 +3805,6 @@ bool Mob::SpellOnTarget(
LogSpells("Casting spell [{}] on [{}] with effective caster level [{}]", spell_id, spelltar->GetName(), caster_level);
if (IsOfClientBotMerc() && (IsDiscipline(spell_id) || spells[spell_id].is_discipline)) {
entity_list.MessageClose(this, false, 200, 0, fmt::format("{}{}", spelltar->GetCleanName(), spells[spell_id].cast_on_other).c_str());
}
// Actual cast action - this causes the caster animation and the particles
// around the target
// we do this first, that way we get the particles even if the spell