Skip to content

Commit

Permalink
[Priest] nerf Void Flay to match in-game
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpeters86 committed Oct 8, 2024
1 parent ec13b3a commit 99c145b
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions engine/class_modules/priest/sc_priest_pets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,18 @@ struct void_flay_t final : public priest_pet_spell_t

damage_mul = data().effectN( 2 ).percent();

apply_affecting_aura( p.o().specs.shadow_priest );
// TODO: check if this is working
apply_affecting_aura( p.o().specs.discipline_priest );

// BUG: https://github.com/SimCMinMax/WoW-BugTracker/issues/1288
if ( p.o().bugs )
{
spell_power_mod.direct = 0.9;
}
else
{
apply_affecting_aura( p.o().specs.shadow_priest );
}
}

void init() override
Expand All @@ -524,8 +534,11 @@ struct void_flay_t final : public priest_pet_spell_t
{
auto m = player->composite_player_target_multiplier( target, get_school() );

m *= 1.0 + damage_mul * target->resources.pct( RESOURCE_HEALTH );
double health_percent = ( target->health_percentage() / 100 );

m *= 1.0 + damage_mul * health_percent;

sim->print_debug( "void_flay damage_mul: {} health_percent: {}, m: {}", damage_mul, health_percent, m );
return m;
}

Expand Down

0 comments on commit 99c145b

Please sign in to comment.