mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
Allow duplicate casts of same spell on target for heals and cures
This commit is contained in:
@@ -9790,6 +9790,10 @@ bool Bot::CastChecks(uint16 spell_id, Mob* tar, uint16 spell_type, bool precheck
|
|||||||
if (
|
if (
|
||||||
spells[spell_id].target_type != ST_Self &&
|
spells[spell_id].target_type != ST_Self &&
|
||||||
IsBeneficialSpell(spell_id) &&
|
IsBeneficialSpell(spell_id) &&
|
||||||
|
!IsAnyHealSpell(spell_id) &&
|
||||||
|
!IsCureSpell(spell_id) &&
|
||||||
|
!IsHealOverTimeSpell(spell_id) &&
|
||||||
|
!IsGroupHealOverTimeSpell(spell_id) &&
|
||||||
IsTargetAlreadyReceivingSpell(tar, spell_id)
|
IsTargetAlreadyReceivingSpell(tar, spell_id)
|
||||||
) {
|
) {
|
||||||
LogBotSpellChecksDetail("{} says, 'Cancelling cast of {} on {} due to IsTargetAlreadyReceivingSpell.'", GetCleanName(), GetSpellName(spell_id), tar->GetCleanName());
|
LogBotSpellChecksDetail("{} says, 'Cancelling cast of {} on {} due to IsTargetAlreadyReceivingSpell.'", GetCleanName(), GetSpellName(spell_id), tar->GetCleanName());
|
||||||
|
|||||||
Reference in New Issue
Block a user