From f99c19d3ee8d8a0fff8ba8eeb374eb5310ede54f Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Tue, 28 Jan 2025 23:11:00 -0600 Subject: [PATCH] Allow duplicate casts of same spell on target for heals and cures --- zone/bot.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zone/bot.cpp b/zone/bot.cpp index f2c25f8b9..fe5f20fdf 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -9790,6 +9790,10 @@ bool Bot::CastChecks(uint16 spell_id, Mob* tar, uint16 spell_type, bool precheck if ( spells[spell_id].target_type != ST_Self && IsBeneficialSpell(spell_id) && + !IsAnyHealSpell(spell_id) && + !IsCureSpell(spell_id) && + !IsHealOverTimeSpell(spell_id) && + !IsGroupHealOverTimeSpell(spell_id) && IsTargetAlreadyReceivingSpell(tar, spell_id) ) { LogBotSpellChecksDetail("{} says, 'Cancelling cast of {} on {} due to IsTargetAlreadyReceivingSpell.'", GetCleanName(), GetSpellName(spell_id), tar->GetCleanName());