Skip to content

Commit

Permalink
Adds an option to automatically train the skills that might be expect… (
Browse files Browse the repository at this point in the history
  • Loading branch information
squeakyneb authored Sep 25, 2024
1 parent 50758a1 commit e8a6dba
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions conf/skip_dk_module.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ GM.Skip.Deathknight.Starter.Enable = 0

Skip.Deathknight.Start.Level = 58

#
# Skip.Deathknight.Start.Trained
# Automatically trains skills up to 58, as might be expected by the end of the start zone.
# Default: 0 - (Inactive)
#

Skip.Deathknight.Start.Trained = 1

#
# Skip.Deathknight.Optional.Enable
# Enables optional to skip when talking to lich king on first creation of dk.
Expand Down
13 changes: 13 additions & 0 deletions src/SkipDK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,19 @@ void Azerothcore_skip_deathknight_HandleSkip(Player* player)
player->GiveLevel(DKL);
}

if (sConfigMgr->GetOption<bool>("Skip.Deathknight.Start.Trained", false))
{
player->addSpell(49998, SPEC_MASK_ALL, true); // Death Strike rank 1
player->addSpell(47528, SPEC_MASK_ALL, true); // Mind Freeze
player->addSpell(46584, SPEC_MASK_ALL, true); // Raise Dead
player->addSpell(45524, SPEC_MASK_ALL, true); // Chains of Ice
player->addSpell(48263, SPEC_MASK_ALL, true); // Frost Presence
player->addSpell(50842, SPEC_MASK_ALL, true); // Pestilence
player->addSpell(53342, SPEC_MASK_ALL, true); // Rune of Spellshattering
player->addSpell(48721, SPEC_MASK_ALL, true); // Blood Boil rank 1
player->addSpell(54447, SPEC_MASK_ALL, true); // Rune of Spellbreaking
}

//Don't need to save all players, just current
player->SaveToDB(false, false);

Expand Down

0 comments on commit e8a6dba

Please sign in to comment.