1376 {
1377 const_cast<AuraEffect*
>(aurEff)->SetAmount(0);
1378
1383
1384 if (range.first == range.second)
1385 return;
1386
1387 for (Unit::AuraApplicationMap::const_iterator itr = range.first; itr != range.second; ++itr)
1388 if (count == 1 || itr->second->GetBase()->GetEffect(
EFFECT_0)->GetAmount())
1389 {
1390 itr->second->GetBase()->GetEffect(
EFFECT_0)->SetAmount(count *
GetSpellInfo()->Effects[0].CalcValue());
1391 break;
1392 }
1393 }
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:5682
AuraApplicationMap & GetAppliedAuras()
Definition: Unit.h:1304
Definition: SpellAuraEffects.h:39
SpellInfo const * GetSpellInfo() const
Definition: SpellScript.cpp:1005
Unit * GetTarget() const
Definition: SpellScript.cpp:1165