Core/Spells: change spell bonus damage taken pdamage to float to match melee damage bonus taken
This commit is contained in:
@@ -10875,7 +10875,7 @@ uint32 Unit::SpellDamageBonusTaken(Unit* caster, SpellInfo const* spellProto, ui
|
|||||||
TakenTotal+= int32(TakenAdvertisedBenefit * coeff * factorMod);
|
TakenTotal+= int32(TakenAdvertisedBenefit * coeff * factorMod);
|
||||||
}
|
}
|
||||||
|
|
||||||
float tmpDamage = (int32(pdamage) + TakenTotal) * TakenTotalMod;
|
float tmpDamage = (float(pdamage) + TakenTotal) * TakenTotalMod;
|
||||||
|
|
||||||
return uint32(std::max(tmpDamage, 0.0f));
|
return uint32(std::max(tmpDamage, 0.0f));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user