Updated for bypass all rule

This commit is contained in:
Trust
2024-02-25 16:00:44 -05:00
parent 7a5a755033
commit 2434bab697
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ bool Mob::CastSpell(uint16 spell_id, uint16 target_id, CastingSlot slot,
// check to see if target is a caster mob before performing a mana tap
if(GetTarget() && IsManaTapSpell(spell_id)) {
if (RuleB(Spells, ManaTapsRequireNPCMana) && GetTarget()->GetMana() == 0) {
if (!RuleB(Spells, ManaTapsOnAnyClass) && GetTarget()->GetCasterClass() != 'N' && RuleB(Spells, ManaTapsRequireNPCMana) && GetTarget()->GetMana() == 0) {
InterruptSpell(TARGET_NO_MANA, 0x121, spell_id);
return false;
}