Skip to content

Commit 5ff2dfd

Browse files
committed
[Mage] Fix crash w/o 2pc
1 parent b11bbcc commit 5ff2dfd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

engine/class_modules/sc_mage.cpp

+7-4
Original file line numberDiff line numberDiff line change
@@ -5653,10 +5653,13 @@ struct icy_veins_t final : public frost_mage_spell_t
56535653
if ( p()->pets.water_elemental->is_sleeping() )
56545654
p()->pets.water_elemental->summon();
56555655

5656-
if ( p()->action.frostbolt_volley && !sim->target_non_sleeping_list.empty() )
5657-
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();
5656+
if ( p()->action.frostbolt_volley )
5657+
{
5658+
if ( !sim->target_non_sleeping_list.empty() )
5659+
p()->action.frostbolt_volley->execute_on_target( rng().range( sim->target_non_sleeping_list ) );
5660+
// TODO: What happens when Extended Bankroll refreshes?
5661+
p()->buffs.extended_bankroll->trigger();
5662+
}
56605663
}
56615664
};
56625665

0 commit comments

Comments
 (0)