fix(Core/Spells): Fixed explosive shot ammo consumption (#21501)

Co-authored-by: pavel_k <pavel_k@mail.com>
Co-authored-by: Jelle Meeus <sogladev@gmail.com>
This commit is contained in:
Paul
2025-07-15 10:05:56 +03:00
committed by GitHub
parent 506722ee88
commit 38cb6ace25
3 changed files with 26 additions and 1 deletions

View File

@@ -5405,7 +5405,7 @@ void Spell::TakePower()
void Spell::TakeAmmo()
{
if (m_attackType == RANGED_ATTACK && m_caster->IsPlayer())
if (m_attackType == RANGED_ATTACK && m_caster->IsPlayer() && !m_spellInfo->HasAttribute(SPELL_ATTR6_DO_NOT_CONSUME_RESOURCES))
{
Item* pItem = m_caster->ToPlayer()->GetWeaponForAttack(RANGED_ATTACK);