Skip to content

Commit b11bbcc

Browse files
committed
[Mage] Frost TWW2 4pc
1 parent 1f3e45a commit b11bbcc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

engine/class_modules/sc_mage.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ struct mage_t final : public player_t
426426
buff_t* intuition;
427427

428428
buff_t* blessing_of_the_phoenix;
429+
430+
buff_t* extended_bankroll;
429431
} buffs;
430432

431433
// Cooldowns
@@ -5653,6 +5655,8 @@ struct icy_veins_t final : public frost_mage_spell_t
56535655

56545656
if ( p()->action.frostbolt_volley && !sim->target_non_sleeping_list.empty() )
56555657
p()->action.frostbolt_volley->execute_on_target( rng().range( sim->target_non_sleeping_list ) );
5658+
// TODO: What happens when Extended Bankroll refreshes?
5659+
p()->buffs.extended_bankroll->trigger();
56565660
}
56575661
};
56585662

@@ -8568,6 +8572,15 @@ void mage_t::create_buffs()
85688572
->set_default_value_from_effect( 1 )
85698573
->set_chance( sets->has_set_bonus( MAGE_FIRE, TWW1, B4 ) );
85708574

8575+
buffs.extended_bankroll = make_buff( this, "extended_bankroll", find_spell( 1216914 ) )
8576+
->set_chance( sets->has_set_bonus( MAGE_FROST, TWW2, B4 ) )
8577+
->set_tick_callback( [ this ] ( buff_t*, int, timespan_t )
8578+
{
8579+
// TODO: Effectiveness? Seems to only matter in PvP
8580+
if ( !sim->target_non_sleeping_list.empty() )
8581+
action.frostbolt_volley->execute_on_target( rng().range( sim->target_non_sleeping_list ) );
8582+
} );
8583+
85718584

85728585
// Buffs that use stack_react or may_react need to be reactable regardless of what the APL does
85738586
buffs.heating_up->reactable = true;

0 commit comments

Comments
 (0)