tabs to spaces

This commit is contained in:
hacknowledge
2011-08-25 00:32:46 +02:00
parent eb15c8c08a
commit 719c151b7b

View File

@@ -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)
{