Skip to content

Commit bcc0e42

Browse files
committed
[Player] remove mastery spells from auto parsing
1 parent dfb1f80 commit bcc0e42

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

engine/class_modules/sc_death_knight.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13189,10 +13189,6 @@ void death_knight_t::init_spells()
1318913189

1319013190
// Handle Rune Regen Rate effects manually due to the unique nature of runes
1319113191
deregister_passive_effects( talent.frost.runic_command );
13192-
// Handled elsewhere
13193-
deregister_passive_effects( mastery.dreadblade );
13194-
deregister_passive_effects( mastery.blood_shield );
13195-
deregister_passive_effects( mastery.frozen_heart );
1319613192

1319713193
parse_all_class_passives();
1319813194
parse_all_passive_talents();

engine/player/player.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "dbc/dbc.hpp"
2525
#include "dbc/item_database.hpp"
2626
#include "dbc/item_set_bonus.hpp"
27+
#include "dbc/mastery_spells.hpp"
2728
#include "dbc/rank_spells.hpp"
2829
#include "dbc/specialization_spell.hpp"
2930
#include "dbc/temporary_enchant.hpp"
@@ -16486,9 +16487,12 @@ void player_t::parse_all_class_passives()
1648616487
{
1648716488
parse_passive_effects( find_spell( dbc::get_class_aura_id( type ) ) );
1648816489

16490+
auto mastery_id = mastery_spell_entry_t::find( specialization(), dbc->ptr ).spell_id;
16491+
1648916492
for ( const auto& spec_spell : specialization_spell_entry_t::data( dbc->ptr ) )
1649016493
{
16491-
if ( spec_spell.specialization_id == static_cast<unsigned>( specialization() ) )
16494+
if ( spec_spell.specialization_id == static_cast<unsigned>( specialization() ) &&
16495+
spec_spell.spell_id != mastery_id )
1649216496
{
1649316497
auto spell = find_spell( spec_spell.spell_id );
1649416498
if ( spell->flags( SX_PASSIVE ) )

0 commit comments

Comments
 (0)