[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
2024-01-07 12:34:43 -05:00
committed by GitHub
parent 51dc62dfb1
commit d9cfc3a858
3 changed files with 37 additions and 21 deletions
+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;