This commit is contained in:
KayenEQ
2021-09-23 12:00:16 -04:00
parent 3faa0d2603
commit 881dc33c9b
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -6370,8 +6370,9 @@ int32 NPC::GetFocusEffect(focusType type, uint16 spell_id) {
//Improved Healing, Damage & Mana Reduction are handled differently in that some are random percentages
//In these cases we need to find the most powerful effect, so that each piece of gear wont get its own chance
if(RuleB(Spells, LiveLikeFocusEffects) && (type == focusManaCost || type == focusImprovedHeal || type == focusImprovedDamage || type == focusImprovedDamage2))
if (RuleB(Spells, LiveLikeFocusEffects) && CanFocusUseRandomEffectivenessByType(type)) {
rand_effectiveness = true;
}
if (RuleB(Spells, NPC_UseFocusFromItems) && itembonuses.FocusEffects[type]){