Skip to content

Commit

Permalink
[Mage] Fix Shifting Power amount_type
Browse files Browse the repository at this point in the history
  • Loading branch information
vituscze committed Oct 9, 2020
1 parent 6e8ca7b commit 3349dd0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions engine/class_modules/sc_mage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5380,11 +5380,6 @@ struct shifting_power_pulse_t : public mage_spell_t
callbacks = false;
aoe = -1;
}

result_amount_type amount_type( const action_state_t*, bool ) const override
{
return result_amount_type::DMG_DIRECT;
}
};

struct shifting_power_t : public mage_spell_t
Expand All @@ -5403,6 +5398,11 @@ struct shifting_power_t : public mage_spell_t
tick_action = get_action<shifting_power_pulse_t>( "shifting_power_pulse", p );
}

result_amount_type amount_type( const action_state_t*, bool ) const override
{
return result_amount_type::DMG_DIRECT;
}

void init_finished() override
{
mage_spell_t::init_finished();
Expand Down Expand Up @@ -5540,7 +5540,6 @@ struct freeze_t : public action_t
bool ready() override
{
mage_t* m = debug_cast<mage_t*>( player );

if ( !m->pets.water_elemental || m->pets.water_elemental->is_sleeping() )
return false;

Expand Down

0 comments on commit 3349dd0

Please sign in to comment.