Skip to content

Commit

Permalink
[Priest] Trigger Shadowy Apparition on the correct target.
Browse files Browse the repository at this point in the history
  • Loading branch information
vituscze committed Apr 21, 2019
1 parent 1fc2eae commit ee448b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions engine/class_modules/priest/sc_priest_shadow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -626,15 +626,16 @@ struct shadowy_apparition_spell_t final : public priest_spell_t
}

/** Trigger a shadowy apparition */
void trigger()
void trigger( player_t* target )
{
if ( priest().sim->debug )
{
priest().sim->out_debug << priest().name() << " triggered shadowy apparition.";
}

priest().procs.shadowy_apparition->occur();
schedule_execute();
set_target( target );
execute();

// TODO: Determine if this is dependent on talenting into Auspicious Spirits
expansion::bfa::trigger_leyshocks_grand_compilation( STAT_HASTE_RATING, player );
Expand Down Expand Up @@ -734,7 +735,7 @@ struct shadow_word_pain_t final : public priest_spell_t
{
if ( d->state->result == RESULT_CRIT )
{
priest().active_spells.shadowy_apparitions->trigger();
priest().active_spells.shadowy_apparitions->trigger( d->target );
}
}

Expand Down

0 comments on commit ee448b8

Please sign in to comment.