Core/Game: Include cleanup, part 4 - packets and largest headers (after preprocessing, except player/objectmgr)
This commit is contained in:
@@ -615,8 +615,8 @@ class spell_mage_master_of_elements : public SpellScriptLoader
|
||||
{
|
||||
PreventDefaultAction();
|
||||
|
||||
std::vector<SpellInfo::CostData> costs = eventInfo.GetDamageInfo()->GetSpellInfo()->CalcPowerCost(GetTarget(), eventInfo.GetDamageInfo()->GetSchoolMask());
|
||||
auto m = std::find_if(costs.begin(), costs.end(), [](SpellInfo::CostData const& cost) { return cost.Power == POWER_MANA; });
|
||||
std::vector<SpellPowerCost> costs = eventInfo.GetDamageInfo()->GetSpellInfo()->CalcPowerCost(GetTarget(), eventInfo.GetDamageInfo()->GetSchoolMask());
|
||||
auto m = std::find_if(costs.begin(), costs.end(), [](SpellPowerCost const& cost) { return cost.Power == POWER_MANA; });
|
||||
if (m != costs.end())
|
||||
{
|
||||
int32 mana = CalculatePct(m->Amount, aurEff->GetAmount());
|
||||
|
||||
Reference in New Issue
Block a user