diff --git a/conf/skip_dk_module.conf.dist b/conf/skip_dk_module.conf.dist index 823de59..0fa63dd 100644 --- a/conf/skip_dk_module.conf.dist +++ b/conf/skip_dk_module.conf.dist @@ -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. diff --git a/src/SkipDK.cpp b/src/SkipDK.cpp index 3df92c8..9ee4acd 100644 --- a/src/SkipDK.cpp +++ b/src/SkipDK.cpp @@ -116,6 +116,19 @@ void Azerothcore_skip_deathknight_HandleSkip(Player* player) player->GiveLevel(DKL); } + if (sConfigMgr->GetOption("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);