[Bug Fix] Dire Charm Reset (#3875)

* [Bug Fix] Dire Charm Reset

Added Druid and Necro Dire Charm to Failure Check

* [Rule] RequireMnemonicRetention for Spells 9-12 Rule

Rule is default false to maintain current server setup.

Enabling will require clients to have the required ranks of Mnemonic Retention in order to cast.

This is a stopgap as on live, the buttons are not even available to use. This will mimic the functionality but denying the cast.

* Revert "[Rule] RequireMnemonicRetention for Spells 9-12 Rule"

This reverts commit c65e86223da7fbd961ff1f54f059ccb4e20b5290.
This commit is contained in:
Fryguy 2024-01-07 04:47:09 -05:00 committed by GitHub
parent 079f612730
commit 6ec09f300a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4095,6 +4095,11 @@ bool Mob::SpellOnTarget(
// check immunities
if (spelltar->IsImmuneToSpell(spell_id, this)) {
// If we tried with Dire Charm, we need to reset the timer.
if (IsClient() && (casting_spell_aa_id == aaDireCharm || casting_spell_aa_id == aaDireCharm2 || casting_spell_aa_id == aaDireCharm3)) {
StopCasting();
}
//the above call does the message to the client if needed
LogSpells("Spell [{}] can't take hold due to immunity [{}] -> [{}]", spell_id, GetName(), spelltar->GetName());
safe_delete(action_packet);