mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 23:01:30 +00:00
[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:
parent
079f612730
commit
6ec09f300a
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user