[Spells] Bard songs from item clickies should not require components (#2011)

This commit is contained in:
KayenEQ 2022-02-18 09:37:09 -05:00 committed by GitHub
parent ad28f3c3f3
commit aa9320de3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1525,7 +1525,8 @@ void Mob::CastedSpellFinished(uint16 spell_id, uint32 target_id, CastingSlot slo
// handle the components for traditional casters // handle the components for traditional casters
else { else {
if (!RuleB(Character, PetsUseReagents) && (IsEffectInSpell(spell_id, SE_SummonPet) || IsEffectInSpell(spell_id, SE_NecPet))) { if (!RuleB(Character, PetsUseReagents) && (IsEffectInSpell(spell_id, SE_SummonPet) || IsEffectInSpell(spell_id, SE_NecPet)) ||
(IsBardSong(spell_id) && (slot == CastingSlot::Item|| slot == CastingSlot::PotionBelt))) {
//bypass reagent cost //bypass reagent cost
} }
else if(c->GetInv().HasItem(component, component_count, invWhereWorn|invWherePersonal) == -1) // item not found else if(c->GetInv().HasItem(component, component_count, invWhereWorn|invWherePersonal) == -1) // item not found