Skip to content

Commit be81dc2

Browse files
authored
[DH] Impending Apocalypse Expires instantly if outside of meta (#11324)
1 parent c385d0b commit be81dc2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

engine/class_modules/sc_demon_hunter.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9840,7 +9840,14 @@ void demon_hunter_t::create_buffs()
98409840

98419841
buff.impending_apocalypse = make_buff( this, "impending_apocalypse", spec.impending_apocalypse_buff )
98429842
->set_constant_behavior( buff_constant_behavior::NEVER_CONSTANT )
9843-
->disable_ticking( true );
9843+
->disable_ticking( true )
9844+
->set_stack_change_callback( [ this ]( buff_t* b, int old, int new_ ) {
9845+
if ( !buff.metamorphosis->up() )
9846+
{
9847+
b->cancel();
9848+
}
9849+
} );
9850+
98449851

98459852
buff.collapsing_star = make_buff( this, "collapsing_star", spec.collapsing_star_buff )
98469853
->set_constant_behavior( buff_constant_behavior::NEVER_CONSTANT );

0 commit comments

Comments
 (0)