Merge d0c1832f34c4fa27387a836cd974751018c0c329 into 880804d6fab7b0f9375810891279cc64a61f91dd

This commit is contained in:
Paul 2025-02-21 08:44:34 -08:00 committed by GitHub
commit 219bc801d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5408,7 +5408,11 @@ void Spell::TakeAmmo()
}
}
else if (uint32 ammo = m_caster->ToPlayer()->GetUInt32Value(PLAYER_AMMO_ID))
m_caster->ToPlayer()->DestroyItemCount(ammo, 1, true);
// Handling of explosive shot ticks
if (!(m_spellInfo->Id == 53352))
{
m_caster->ToPlayer()->DestroyItemCount(ammo, 1, true);
}
}
}
@ -8277,6 +8281,13 @@ void Spell::HandleLaunchPhase()
PrepareTargetProcessing();
// Handling of explosive shot initial cast without LnL proc
if ((m_spellInfo->SpellFamilyFlags[1] & 0x80000000) != 0 && !m_caster->HasAura(56453))
{
TakeAmmo();
usesAmmo = false;
}
for (std::list<TargetInfo>::iterator ihit = m_UniqueTargetInfo.begin(); ihit != m_UniqueTargetInfo.end(); ++ihit)
{
TargetInfo& target = *ihit;