File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1131,15 +1131,15 @@ class mod_zone_difficulty_allcreaturescript : public AllCreatureScript
11311131 if (matchingPhase != -1 )
11321132 {
11331133 float scaledHealth = scaledBaseHealth;
1134- scaledHealth *= creature->GetModifierValue (UNIT_MOD_HEALTH, BASE_PCT);
1135- scaledHealth += creature->GetModifierValue (UNIT_MOD_HEALTH, TOTAL_VALUE);
1136- scaledHealth *= creature->GetModifierValue (UNIT_MOD_HEALTH, TOTAL_PCT);
1134+ scaledHealth *= creature->GetPctModifierValue (UNIT_MOD_HEALTH, BASE_PCT);
1135+ scaledHealth += creature->GetFlatModifierValue (UNIT_MOD_HEALTH, TOTAL_VALUE);
1136+ scaledHealth *= creature->GetPctModifierValue (UNIT_MOD_HEALTH, TOTAL_PCT);
11371137
11381138 if (creature->GetMaxHealth () == scaledHealth)
11391139 return ;
11401140
11411141 float percent = creature->GetHealthPct ();
1142- creature->SetModifierValue (UNIT_MOD_HEALTH, BASE_VALUE, (float )scaledBaseHealth);
1142+ creature->SetStatFlatModifier (UNIT_MOD_HEALTH, BASE_VALUE, (float )scaledBaseHealth);
11431143 creature->UpdateMaxHealth ();
11441144 if (creature->IsAlive ())
11451145 {
You can’t perform that action at this time.
0 commit comments