Skip to content

Commit

Permalink
Spell required item must be given on level up #10 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
n7-on-3o authored Jun 20, 2024
1 parent 723eca6 commit 0f83b9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mod_learnspells.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ class LearnSpellsOnLevelUp : public PlayerScript
{
LearnSpellsForNewLevel(player, 1);
}
if (player->getClass() == CLASS_SHAMAN)
{
player->AddItem(5175, 1); // Earth Totem
player->AddItem(5176, 1); // Fire Totem
player->AddItem(5177, 1); // Water Totem
player->AddItem(5178, 1); // Air Totem
}
}

void OnLevelChanged(Player* player, uint8 oldLevel) override
Expand Down

0 comments on commit 0f83b9c

Please sign in to comment.