Skip to content

Commit

Permalink
Priest: Add Perk Spell 'Enhanced Shadow Word: Death'
Browse files Browse the repository at this point in the history
  • Loading branch information
scamille committed Apr 18, 2014
1 parent 5b0cb02 commit e4e9b06
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion engine/class_modules/sc_priest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ struct priest_t final : public player_t
{
const spell_data_t* enhanced_mind_flay;
const spell_data_t* enhanced_shadow_orbs;
const spell_data_t* enhanced_shadow_word_death;
} perks;

// Cooldowns
Expand Down Expand Up @@ -2263,9 +2264,14 @@ struct shadow_word_death_t final : public priest_spell_t
if ( result_is_hit( s -> result ) )
{
if ( over_20 )
{
s -> result_amount /= 4.0;
else if ( ! priest.buffs.shadow_word_death_reset_cooldown -> check() )
}
// Assume from the wording of perk 'Enhanced Shadow Word: Death' that it's a 100% chance.
else if ( ! priest.buffs.shadow_word_death_reset_cooldown -> check() || priest.perks.enhanced_shadow_word_death -> ok() )
{
generate_shadow_orb( 1, priest.gains.shadow_orb_swd );
}
}

priest_spell_t::impact( s );
Expand Down Expand Up @@ -4956,6 +4962,7 @@ void priest_t::init_spells()
// Perk Spells
perks.enhanced_mind_flay = find_perk_spell( "Enhanced Mind Flay" );
perks.enhanced_shadow_orbs = find_perk_spell( "Enhanced Shadow Orbs" );
perks.enhanced_shadow_word_death = find_perk_spell( "Enhanced Shadow Word: Death" );

// Glyphs
glyphs.circle_of_healing = find_glyph_spell( "Glyph of Circle of Healing" );
Expand Down

0 comments on commit e4e9b06

Please sign in to comment.