Fixed the Strengthen Apparition buff not being applied to summoned creatures

This commit is contained in:
Eddoursul 2021-12-06 16:30:02 +01:00
parent 3f58c132d4
commit 12b1c7abf1
2 changed files with 9 additions and 5 deletions

Binary file not shown.

View File

@ -39,14 +39,18 @@ Function AdjustValues(Bool bForceEnchantmentStrength)
Float fMaxHealth = GetTargetMaxValue("Health")
Float fMaxMagicka = GetTargetMaxValue("Magicka")
If fMaxHealth < 0.0 || fMaxMagicka < 0.0
Return ; Bad current health or magicka to deal with, wait for better ones
EndIf
Target.SetAV("FavorPointsBonus", fNewModifier * 100.0)
Target.ModAV("AttackDamageMult", fNewModifier - fOldModifier)
if fMaxHealth > 0
AdjustTargetMainValue("Health", "FavorsPerDay", fMaxHealth, fNewModifier)
endif
if fMaxMagicka > 0
AdjustTargetMainValue("Magicka", "FavorsPerDayTimer", fMaxMagicka, fNewModifier)
endif
EndFunction
Float Function GetTargetMaxValue(String sValueName)