mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-11 12:30:32 +00:00
[Bug Fix] Fix for NPCs having spells interrupted. (#3150)
This commit is contained in:
1 parent
b6917ec782
commit
99f8e6cef5
1 file changed
+3
-2
+3
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user