Skip to content

Commit 2d066fb

Browse files
committed
[Action] match generic helpful trigger from dot application to callback registration implementation
1 parent d4b7459 commit 2d066fb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

engine/action/action.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4532,8 +4532,10 @@ void action_t::trigger_dot( action_state_t* s )
45324532
if ( callbacks && caster_callbacks && !suppress_callback_from_trigger_dot )
45334533
{
45344534
// TODO: should this be based on whether the action is harmful or not?
4535-
player->trigger_callbacks( s->target->is_enemy() ? PROC1_NONE_HARMFUL : PROC1_NONE_HELPFUL, PROC2_LANDED, this,
4536-
dot->state );
4535+
if ( s->target->is_enemy() )
4536+
player->trigger_callbacks( PROC1_NONE_HARMFUL, PROC2_LANDED, this, dot->state );
4537+
else // Current implementation splits helpful PF2_LANDED into PF1_HIT and PF1_CRIT so we need to adjust here
4538+
player->trigger_callbacks( PROC1_NONE_HELPFUL, PROC2_HIT, this, dot->state );
45374539
}
45384540
}
45394541

0 commit comments

Comments
 (0)