[Bug Fix] Disciplines should show when someone casts them. (#3901)

* [Bug] Discs should show when someone casts them.

* Correction to location

* requested changes

* Additional fixes
This commit is contained in:
Fryguy 2024-01-07 22:17:30 -05:00 committed by GitHub
parent 2b821e50ff
commit c36b3f030b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3797,6 +3797,10 @@ bool Mob::SpellOnTarget(
LogSpells("Casting spell [{}] on [{}] with effective caster level [{}]", spell_id, spelltar->GetName(), caster_level); LogSpells("Casting spell [{}] on [{}] with effective caster level [{}]", spell_id, spelltar->GetName(), caster_level);
if (IsClient() && (IsDiscipline(spell_id) || spells[spell_id].is_discipline)) {
entity_list.MessageClose(this, false, 200, 0, fmt::format("{}{}", GetCleanName(), spells[spell_id].cast_on_other).c_str());
}
// Actual cast action - this causes the caster animation and the particles // Actual cast action - this causes the caster animation and the particles
// around the target // around the target
// we do this first, that way we get the particles even if the spell // we do this first, that way we get the particles even if the spell