mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-09 17:32:29 +00:00
[Bug Fix] Cleanup NPC Mana Tap Logic
Mana Tap rule logic was invalid - Cleaned up and simplified, either we care about npc mana or we dont.
This commit is contained in:
parent
35fe38cd09
commit
7a5a755033
@ -223,16 +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
|
// check to see if target is a caster mob before performing a mana tap
|
||||||
if(GetTarget() && IsManaTapSpell(spell_id)) {
|
if(GetTarget() && IsManaTapSpell(spell_id)) {
|
||||||
if (
|
if (RuleB(Spells, ManaTapsRequireNPCMana) && GetTarget()->GetMana() == 0) {
|
||||||
GetTarget()->GetCasterClass() == 'N' &&
|
|
||||||
(
|
|
||||||
!RuleB(Spells, ManaTapsRequireNPCMana) ||
|
|
||||||
(
|
|
||||||
RuleB(Spells, ManaTapsRequireNPCMana) &&
|
|
||||||
GetTarget()->GetMana() == 0
|
|
||||||
)
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
InterruptSpell(TARGET_NO_MANA, 0x121, spell_id);
|
InterruptSpell(TARGET_NO_MANA, 0x121, spell_id);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user