[Bug Fix] Dire Charm Reset

Added Druid and Necro Dire Charm to Failure Check
This commit is contained in:
Trust
2024-01-07 02:36:42 -05:00
parent 20e9a8b2d2
commit 5909ca2a41
+5
View File
@@ -4027,6 +4027,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);