Skip to content

Commit

Permalink
Fix Shredding Fury double decrement
Browse files Browse the repository at this point in the history
  • Loading branch information
kyogoi authored and Xanzara committed Sep 7, 2018
1 parent d2a1c93 commit 92b9e56
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion engine/class_modules/sc_druid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3862,6 +3862,14 @@ struct shred_t : public cat_attack_t
td( s -> target ) -> debuff.bloodletting -> trigger(); // Druid module debuff
}

virtual void execute() override
{
if ( p()->buff.shredding_fury->up() )
{
p()->buff.shredding_fury->decrement();
}
}

virtual double bonus_da( const action_state_t* s ) const override
{
double b = cat_attack_t::bonus_da( s );
Expand All @@ -3875,7 +3883,6 @@ struct shred_t : public cat_attack_t
if ( p()->buff.shredding_fury->up() )
{
b += p()->buff.shredding_fury->value();
p()->buff.shredding_fury->decrement();
}

return b;
Expand Down

0 comments on commit 92b9e56

Please sign in to comment.