Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
fix rescale healing
Browse files Browse the repository at this point in the history
  • Loading branch information
catapultam-habeo committed Feb 1, 2025
1 parent 1bd6757 commit bb09255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/cata_instance_utils.pl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ sub ScaleInstanceNPC {

# Scale max_hp, max_hit, min_hit, and hp_regen by 1 + $scale_factor
my $new_max_hp = ceil($npc->GetEntityVariable("original_max_hp") * $scale_factor);
my $hp_ratio = $npc->GetHPRatio();
my $hp_ratio = $npc->GetHPRatio() / 100;
$npc->ModifyNPCStat("max_hp", $new_max_hp);

$npc->SetHP($npc->GetMaxHP() * $hp_ratio);
Expand Down

0 comments on commit bb09255

Please sign in to comment.