Skip to content

[Outlaw] Add 12.1 changes and set bonus#11546

Open
soloxcx wants to merge 11 commits into
simulationcraft:midnightfrom
soloxcx:outlaw-mid2-changes
Open

[Outlaw] Add 12.1 changes and set bonus#11546
soloxcx wants to merge 11 commits into
simulationcraft:midnightfrom
soloxcx:outlaw-mid2-changes

Conversation

@soloxcx

@soloxcx soloxcx commented Jun 29, 2026

Copy link
Copy Markdown
Contributor
  • Update Zero In proc behavior with daggers
  • Add MID2 set bonus for Outlaw

@soloxcx soloxcx marked this pull request as draft July 1, 2026 01:49
@EvanMichaels EvanMichaels self-assigned this Jul 2, 2026
@soloxcx soloxcx marked this pull request as ready for review July 2, 2026 20:51
p()->resource_loss( RESOURCE_COMBO_POINT, max_spend );
p()->resource_loss( RESOURCE_COMBO_POINT, cp_loss );

p()->sim->print_log( "{} consumes {} {} for {} ({})", *p(), max_spend, util::resource_type_string( RESOURCE_COMBO_POINT ),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
p()->sim->print_log( "{} consumes {} {} for {} ({})", *p(), max_spend, util::resource_type_string( RESOURCE_COMBO_POINT ),
p()->sim->print_log( "{} consumes {} {} for {} ({})", *p(), cp_loss, util::resource_type_string( RESOURCE_COMBO_POINT ),

set_bonuses.mid2_outlaw_2pc = sets->set( ROGUE_OUTLAW, MID2, B2 );
set_bonuses.mid2_outlaw_4pc = sets->set( ROGUE_OUTLAW, MID2, B4 );

spec.mid2_outlaw_4pc_buff = set_bonuses.mid2_outlaw_4pc->ok() ? set_bonuses.mid2_outlaw_4pc->effectN( 1 ).trigger() : spell_data_t::not_found();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need the ok() check here I don't believe. .trigger() on a spell data will return not_found if the spell data doesn't exist.

For simplification purposes, it may be worth putting the chance here though with

if( set_bonuses.mid2_outlaw_4pc->ok() )
{
  spec.mid2_outlaw_4pc_buff->set_chance( set_bonuses.mid2_outlaw_4pc->effectN( 1 ).percent() );
}

This sets the trigger chance on the buff and will automatically rng roll when calling buff.trigger(). Then you wouldn't have to check the chance at runtime above. You can just call p()->buffs.mid2_outlaw_4pc->trigger();

Could then just remove the entire trigger_mid2_outlaw_4pc function since you'd just need a buff trigger call in two places without any other logic.

buffs.mid1_outlaw_4pc = make_buff<damage_buff_t>( this, "whirl_of_blades", set_bonuses.mid1_outlaw_4pc->effectN(2).trigger() );
buffs.mid1_outlaw_4pc = make_buff<damage_buff_t>( this, "whirl_of_blades", set_bonuses.mid1_outlaw_4pc->effectN( 2 ).trigger() );

buffs.mid2_outlaw_4pc = make_buff( this, "fang_strike", spec.mid2_outlaw_4pc_buff )

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to use make_buff_fallback here since it looks like you want to use this in the APL. Either the APL needs to have a prior set_bonus&& check to keep the buff.fang_strike conditional from evaluating or buff needs to be created as fallback so it exists even if the spell data doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants