[Feature] Legacy Manaburn Rule (#3872)

* [Feature] Legacy Manaburn Rule

Enabling this rule allows the legacy style Manaburn and LifeBurn early 2003 and earlier.

* Requested Changes

* Requested Change
This commit is contained in:
Fryguy authored and GitHub committed 2024-01-07 12:34:43 -05:00
1 parent 51dc62dfb1
commit d9cfc3a858
3 files changed
+37 -21

No files matched your search

+3
View File
@@ -4413,6 +4413,9 @@ bool Mob::SpellOnTarget(
LogSpells("Spell [{}] could not apply its effects [{}] -> [{}]\n", spell_id, GetName(), spelltar->GetName());
if (casting_spell_aa_id) {
MessageString(Chat::SpellFailure, SPELL_NO_HOLD);
if (RuleB(Spells, LegacyManaburn) && IsClient() && casting_spell_aa_id == aaManaBurn) {
StopCasting();
}
}
safe_delete(action_packet);
return false;