mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 13:27:15 +00:00
[Bug Fix] Fix for NPCs having spells interrupted. (#3150)
This commit is contained in:
+2
-1
@@ -437,11 +437,12 @@ 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (mana_cost > GetMana()) {
|
||||
mana_cost = GetMana();
|
||||
|
||||
Reference in New Issue
Block a user