mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
tabs to spaces
This commit is contained in:
@@ -3289,9 +3289,9 @@ void Spell::handle_immediate()
|
||||
// Remove used for cast item if need (it can be already NULL after TakeReagents call
|
||||
TakeCastItem();
|
||||
|
||||
// handle ammo consumption for Hunter's volley spell
|
||||
if (IsRangedWeaponSpell(m_spellInfo) && IsChanneledSpell(m_spellInfo))
|
||||
TakeAmmo();
|
||||
// handle ammo consumption for Hunter's volley spell
|
||||
if (m_spellInfo->IsRangedWeaponSpell() && m_spellInfo->IsChanneled())
|
||||
TakeAmmo();
|
||||
|
||||
|
||||
if (m_spellState != SPELL_STATE_CASTING)
|
||||
@@ -6644,9 +6644,9 @@ void Spell::CalculateDamageDoneForAllTargets()
|
||||
if (!unit) // || !unit->isAlive()) do we need to check alive here?
|
||||
continue;
|
||||
|
||||
// do not consume ammo anymore for Hunter's volley spell
|
||||
if (IsTriggered() && m_spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER && IsAreaOfEffectSpell(m_spellInfo))
|
||||
usesAmmo = false;
|
||||
// do not consume ammo anymore for Hunter's volley spell
|
||||
if (IsTriggered() && m_spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER && m_spellInfo->IsAOE())
|
||||
usesAmmo = false;
|
||||
|
||||
if (usesAmmo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user