mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 15:37:16 +00:00
[Bug Fix] Dire Charm Reset
Added Druid and Necro Dire Charm to Failure Check
This commit is contained in:
@@ -4027,6 +4027,11 @@ bool Mob::SpellOnTarget(
|
|||||||
|
|
||||||
// check immunities
|
// check immunities
|
||||||
if (spelltar->IsImmuneToSpell(spell_id, this)) {
|
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
|
//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());
|
LogSpells("Spell [{}] can't take hold due to immunity [{}] -> [{}]", spell_id, GetName(), spelltar->GetName());
|
||||||
safe_delete(action_packet);
|
safe_delete(action_packet);
|
||||||
|
|||||||
Reference in New Issue
Block a user