Skip to content

Commit

Permalink
[Evoker] Reporting for Inferno's Blessing Adjustment
Browse files Browse the repository at this point in the history
Remove unnecessary init call
  • Loading branch information
Saeldur committed May 25, 2023
1 parent bf13641 commit dc8a138
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions engine/class_modules/sc_evoker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1559,13 +1559,13 @@ struct ebon_might_t : public evoker_augment_t

struct fire_breath_t : public empowered_charge_spell_t
{
struct infernos_blessing_damage_t : public evoker_spell_t
struct infernos_blessing_t : public evoker_spell_t
{
protected:
using state_t = evoker_action_state_t<stats_data_t>;

public:
infernos_blessing_damage_t( evoker_t* p )
infernos_blessing_t( evoker_t* p )
: evoker_spell_t( "infernos_blessing", p, p->talent.infernos_blessing_damage )
{
may_dodge = may_parry = may_block = false;
Expand Down Expand Up @@ -1712,8 +1712,11 @@ struct fire_breath_t : public empowered_charge_spell_t
{
create_release_spell<fire_breath_damage_t>( "fire_breath_damage" );

auto infernos_blessing = p->get_secondary_action<infernos_blessing_damage_t>( "infernos_blessing" );
add_child( infernos_blessing );
if ( p->talent.infernos_blessing.ok() )
{
auto infernos_blessing = p->get_secondary_action<infernos_blessing_t>( "infernos_blessing" );
add_child( infernos_blessing );
}
}
};

Expand Down Expand Up @@ -3265,10 +3268,8 @@ evoker_td_t::evoker_td_t( player_t* target, evoker_t* evoker )
if ( evoker->talent.infernos_blessing.ok() )
{
action_t* infernos_blessing =
evoker->get_secondary_action<spells::fire_breath_t::infernos_blessing_damage_t>( "infernos_blessing" );
evoker->get_secondary_action<spells::fire_breath_t::infernos_blessing_t>( "infernos_blessing" );

if ( !infernos_blessing->initialized )
infernos_blessing->init();
auto stats = evoker->get_stats( "infernos_blessing_" + target->name_str, infernos_blessing );
stats->school = infernos_blessing->get_school();

Expand Down

0 comments on commit dc8a138

Please sign in to comment.