[Bug Fix] Fix for NPCs having spells interrupted. (#3150)

This commit is contained in:
Aeadoin 2023-03-27 16:57:08 -04:00 committed by GitHub
parent b6917ec782
commit 99f8e6cef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -437,9 +437,10 @@ bool Mob::DoCastSpell(uint16 spell_id, uint16 target_id, CastingSlot slot,
//this is a special case for NPCs with no mana...
if (IsNPC() && my_curmana == my_maxmana) {
mana_cost = 0;
} else {
DoSpellInterrupt(spell_id, mana_cost, my_curmana);
return false;
}
DoSpellInterrupt(spell_id, mana_cost, my_curmana);
return false;
}
}