fix(Scripts/Pets): Increased Shadowfiend hp. (#10304)

Fixed #4792
This commit is contained in:
UltraNix
2022-02-01 09:54:46 +01:00
committed by GitHub
parent 8b4e3b71ca
commit 89d3a4d6b3

View File

@@ -78,11 +78,11 @@ class spell_pri_shadowfiend_scaling : public AuraScript
void CalculateStatAmount(AuraEffect const* aurEff, int32& amount, bool& /*canBeRecalculated*/)
{
// xinef: shadowfiend inherits 30% of intellect / stamina (guessed)
// xinef: shadowfiend inherits 30% of intellect and 65% of stamina (guessed)
if (Unit* owner = GetUnitOwner()->GetOwner())
{
Stats stat = Stats(aurEff->GetSpellInfo()->Effects[aurEff->GetEffIndex()].MiscValue);
amount = CalculatePct(std::max<int32>(0, owner->GetStat(stat)), 30);
amount = CalculatePct(std::max<int32>(0, owner->GetStat(stat)), stat == STAT_STAMINA ? 65 : 30);
}
}