Core: fixed several warnings accross the board

This commit is contained in:
Ovahlord committed 2019-10-04 03:40:43 +02:00
1 parent b3b1600b0a
commit 1ea13572cf
13 files changed
+42 -42

No files matched your search

+1 -3
View File
@@ -589,11 +589,9 @@ class spell_hun_pet_scaling_03 : public AuraScript
{
// Formular: owner resistance of targeted school * 0.4
canBeRecalculated = true;
int32 resistanceSchool = GetSpellInfo()->Effects[aurEff->GetEffIndex()].MiscValue;
if (Pet* pet = GetUnitOwner()->ToPet())
if (Player* owner = pet->GetOwner())
amount = uint32(owner->GetResistance(SpellSchoolMask(resistanceSchool)) * 0.4);
amount = uint32(owner->GetResistance(SpellSchoolMask(GetSpellInfo()->Effects[aurEff->GetEffIndex()].MiscValue)) * 0.4);
}
void CalculateArmorAmount(AuraEffect const* aurEff, int32& amount, bool& canBeRecalculated)