Allow duplicate casts of same spell on target for heals and cures

This commit is contained in:
nytmyr
2025-01-28 23:11:00 -06:00
parent db00064028
commit f99c19d3ee
+4
View File
@@ -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());