1375 {
1376 const_cast<AuraEffect*
>(aurEff)->SetAmount(0);
1377
1382
1383 if (range.first == range.second)
1384 return;
1385
1386 for (Unit::AuraApplicationMap::const_iterator itr = range.first; itr != range.second; ++itr)
1387 if (count == 1 || itr->second->GetBase()->GetEffect(
EFFECT_0)->GetAmount())
1388 {
1389 itr->second->GetBase()->GetEffect(
EFFECT_0)->SetAmount(count *
GetSpellInfo()->Effects[0].CalcValue());
1390 break;
1391 }
1392 }
std::uint32_t uint32
Definition: Define.h:107
@ EFFECT_0
Definition: SharedDefines.h:31
std::multimap< uint32, AuraApplication * > AuraApplicationMap
Definition: Unit.h:639
std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > AuraApplicationMapBounds
Definition: Unit.h:640
uint32 GetAuraCount(uint32 spellId) const
Definition: Unit.cpp:5653
AuraApplicationMap & GetAppliedAuras()
Definition: Unit.h:1319
Definition: SpellAuraEffects.h:39
SpellInfo const * GetSpellInfo() const
Definition: SpellScript.cpp:1005
Unit * GetTarget() const
Definition: SpellScript.cpp:1165