From fa9314811ecc89ad0ed44230bf55b2bdc46e5836 Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Sat, 12 Feb 2022 15:12:35 -0500 Subject: [PATCH] [Bug Fix] Fix for Bot command casting (#1990) * missing return true in ApplyBardPulse * Update bot.cpp * [Bug Fix] Fix for Bot command casting compile error * [Bug Fix] Fix for Bot command casting * Update bot.cpp --- zone/bot.cpp | 3 ++- zone/spells.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 32599248c..dcb8af574 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -7104,7 +7104,8 @@ bool Bot::CastSpell(uint16 spell_id, uint16 target_id, EQ::spells::CastingSlot s bardsong_timer.Disable(); } - Result = DoCastSpell(spell_id, target_id, slot, cast_time, mana_cost, oSpellWillFinish, item_slot, aa_id); + Result = Mob::CastSpell(spell_id, target_id, slot, cast_time, mana_cost, oSpellWillFinish, item_slot, 0xFFFFFFFF, 0, resist_adjust, aa_id); + } return Result; } diff --git a/zone/spells.cpp b/zone/spells.cpp index ee73add8c..a03f05408 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -2725,6 +2725,8 @@ bool Mob::ApplyBardPulse(int32 spell_id, Mob *spell_target, CastingSlot slot) { if (!SpellFinished(spell_id, spell_target, slot, spells[spell_id].mana, 0xFFFFFFFF, spells[spell_id].resist_difficulty)) { return false; } + + return true; } ///////////////////////////////////////////////////////////////////////////////