Fixed the Strengthen Apparition buff not being applied to summoned creatures
This commit is contained in:
parent
3f58c132d4
commit
12b1c7abf1
Binary file not shown.
@ -39,14 +39,18 @@ Function AdjustValues(Bool bForceEnchantmentStrength)
|
|||||||
|
|
||||||
Float fMaxHealth = GetTargetMaxValue("Health")
|
Float fMaxHealth = GetTargetMaxValue("Health")
|
||||||
Float fMaxMagicka = GetTargetMaxValue("Magicka")
|
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.SetAV("FavorPointsBonus", fNewModifier * 100.0)
|
||||||
Target.ModAV("AttackDamageMult", fNewModifier - fOldModifier)
|
Target.ModAV("AttackDamageMult", fNewModifier - fOldModifier)
|
||||||
|
|
||||||
|
if fMaxHealth > 0
|
||||||
AdjustTargetMainValue("Health", "FavorsPerDay", fMaxHealth, fNewModifier)
|
AdjustTargetMainValue("Health", "FavorsPerDay", fMaxHealth, fNewModifier)
|
||||||
|
endif
|
||||||
|
|
||||||
|
if fMaxMagicka > 0
|
||||||
AdjustTargetMainValue("Magicka", "FavorsPerDayTimer", fMaxMagicka, fNewModifier)
|
AdjustTargetMainValue("Magicka", "FavorsPerDayTimer", fMaxMagicka, fNewModifier)
|
||||||
|
endif
|
||||||
|
|
||||||
EndFunction
|
EndFunction
|
||||||
|
|
||||||
Float Function GetTargetMaxValue(String sValueName)
|
Float Function GetTargetMaxValue(String sValueName)
|
||||||
|
Loading…
Reference in New Issue
Block a user