Core/Game: Include cleanup, part 4 - packets and largest headers (after preprocessing, except player/objectmgr)

This commit is contained in:
Shauren
2017-05-21 23:18:43 +02:00
parent 3cb8f532da
commit 3d7c2ef88f
101 changed files with 1048 additions and 826 deletions
+2 -2
View File
@@ -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());