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
+6 -3
View File
@@ -4435,9 +4435,12 @@ void Mob::CommonDamage(Mob* attacker, int64 &damage, const uint16 spell_id, cons
// If an "innate" spell, change to spell type to
// produce a spell message. Send to everyone.
// This fixes issues with npc-procs like 1002 and 918 which
// need to spit out extra spell color.
if (IsValidSpell(spell_id) && skill_used == EQ::skills::SkillTigerClaw) {
// This fixes issues with npc-procs like 1002 and 918 and
// damage based disciplines which need to spit out extra spell color.
if (IsValidSpell(spell_id) &&
(skill_used == EQ::skills::SkillTigerClaw ||
(IsDamageSpell(spell_id) && IsDiscipline(spell_id)))
) {
a->type = DamageTypeSpell;
entity_list.QueueCloseClients(
this, /* Sender */