mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Update spell_item.cpp
Small indent and codestyle fixes
(cherrypicked from 149e449506)
This commit is contained in:
@@ -4686,13 +4686,13 @@ public:
|
||||
if (sSpellMgr->IsSpellMemberOfSpellGroup(chosenElixir, SPELL_GROUP_ELIXIR_GUARDIAN))
|
||||
chosenSpellGroup = SPELL_GROUP_ELIXIR_GUARDIAN;
|
||||
// If another spell of the same group is already active the elixir should not be cast
|
||||
if (chosenSpellGroup)
|
||||
if (chosenSpellGroup != SPELL_GROUP_NONE)
|
||||
{
|
||||
Unit::AuraApplicationMap& Auras = target->GetAppliedAuras();
|
||||
for (Unit::AuraApplicationMap::iterator itr = Auras.begin(); itr != Auras.end(); ++itr)
|
||||
Unit::AuraApplicationMap const& auraMap = target->GetAppliedAuras();
|
||||
for (auto itr = auraMap.begin(); itr != auraMap.end(); ++itr)
|
||||
{
|
||||
uint32 spell_id = itr->second->GetBase()->GetId();
|
||||
if (sSpellMgr->IsSpellMemberOfSpellGroup(spell_id, chosenSpellGroup) && spell_id != chosenElixir)
|
||||
uint32 spellId = itr->second->GetBase()->GetId();
|
||||
if (sSpellMgr->IsSpellMemberOfSpellGroup(spellId, chosenSpellGroup) && spellId != chosenElixir)
|
||||
{
|
||||
useElixir = false;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user