Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5dd1003
Merge pull request #1 from conan513/master
BarbzYHOOL Sep 19, 2018
862a283
Add missing spells
BarbzYHOOL Sep 19, 2018
82e66aa
Build: Delete pch include (#6)
milestorme Apr 4, 2019
c0399fd
fix(cpp): Add missing spells to be ignored
BarbzYHOOL Mar 9, 2020
769e883
fix(cpp): Compilation missing headers + Wrong vars (#8)
BarbzYHOOL Mar 9, 2020
e9ef8ef
feat(cpp/conf): Add option to teach all spells on first login (#9)
arenacraftwow Apr 1, 2020
222850c
Fix: Add missing spells (#12)
arenacraftwow Apr 8, 2020
63a914a
fix(cpp): Now will grant spells on level 80 levelup
BarbzYHOOL Apr 11, 2020
91b8bbd
fix(build): add casting to uint32
Helias Apr 18, 2020
7204516
fix(cpp): Ignore some vanity spells from being autolearned
BarbzYHOOL Aug 8, 2020
3a24128
feat(CI): move from Travis to GitHub Actions
Helias Aug 30, 2020
ff7d11f
Merge pull request #19 from azerothcore/github-actions
Helias Aug 30, 2020
0b5c081
docs(readme): add AzerothCore logo and build status badge (#21)
locus313 Nov 21, 2020
00c109f
Update the way the struct is called to correspond with current C++
mdjong1 Feb 3, 2021
3538cdb
Merge pull request #22 from mdjong1/feature/update_calls_for_modern_cpp
Helias Feb 4, 2021
2711418
Fix Config Errors
dunjeon Mar 1, 2021
c1ad5d0
Merge pull request #23 from dunjeon/cnfix
Helias Mar 3, 2021
81a0af4
feat(Misc): update
Winfidonarleyan Apr 30, 2021
d22d50e
Merge pull request #27 from azerothcore/update
Helias Apr 30, 2021
24d71d1
fix: build and ci
Helias May 31, 2021
311784d
Merge pull request #29 from azerothcore/fix-build-c
Helias May 31, 2021
b56f95c
fixed no member named spell id due to name changes in SkillLineAbilit…
wbaileydev Jun 25, 2021
e8da436
fixed typo, Aquired method to AcquiredMethod
wbaileydev Jun 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/core-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: core-build
on:
push:
pull_request:

jobs:
build:
strategy:
fail-fast: false
matrix:
compiler: [clang]
runs-on: ubuntu-latest
name: ${{ matrix.compiler }}
env:
COMPILER: ${{ matrix.compiler }}
steps:
- uses: actions/checkout@v2
with:
repository: 'azerothcore/azerothcore-wotlk'
ref: 'master'
submodules: 'recursive'
- uses: actions/checkout@v2
with:
submodules: 'recursive'
path: 'modules/mod-learn-spells'
- name: Cache
uses: actions/cache@v1.1.2
with:
path: /home/runner/.ccache
key: ccache:${{ matrix.compiler }}:${{ github.ref }}:${{ github.sha }}
restore-keys: |
ccache:${{ matrix.compiler }}:${{ github.ref }}
ccache:${{ matrix.compiler }}
- name: Configure OS
run: source ./apps/ci/ci-install.sh
env:
CONTINUOUS_INTEGRATION: true
- name: Import db
run: source ./apps/ci/ci-import-db.sh
- name: Build
run: source ./apps/ci/ci-compile.sh
- name: Dry run
run: source ./apps/ci/ci-worldserver-dry-run.sh
- name: Check startup errors
run: source ./apps/ci/ci-error-check.sh
8 changes: 2 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
CU_SET_PATH("CMAKE_MOD_LEARNSPELLS_DIR" "${CMAKE_CURRENT_LIST_DIR}")

AC_ADD_SCRIPT("${CMAKE_CURRENT_LIST_DIR}/src/mod_learnspells.cpp")

AC_ADD_SCRIPT_LOADER("LearnAllSpells" "${CMAKE_CURRENT_LIST_DIR}/src/loader_learnspells.h")

CU_ADD_HOOK(AFTER_WORLDSERVER_CMAKE "${CMAKE_CURRENT_LIST_DIR}/src/cmake/after_ws_install.cmake")
AC_ADD_SCRIPT_LOADER("LearnAllSpells" "${CMAKE_CURRENT_LIST_DIR}/src/loader.h")
AC_ADD_CONFIG_FILE("${CMAKE_CURRENT_LIST_DIR}/conf/mod_learnspells.conf.dist")
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ![logo](https://raw.githubusercontent.com/azerothcore/azerothcore.github.io/master/images/logo-github.png) AzerothCore
## mod-learnspells

# LearnAllSpells module for AzerothCore.
### LearnAllSpells module for AzerothCore.
- Latest build status with azerothcore: [![Build Status](https://github.com/azerothcore/mod-learn-spells/workflows/core-build/badge.svg?branch=master&event=push)](https://github.com/azerothcore/mod-learn-spells)

LearnAllSpells teach new spells on level-up, like in Cataclysm and up.

Expand Down
8 changes: 7 additions & 1 deletion conf/mod_learnspells.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ LearnSpells.Enable = 1

LearnSpells.Announce = 1

# Should the player receive all spells on first login?
# Useful for instant leveling type of servers
# (1: true | 0: false)

LearnSpells.LearnAllOnFirstLogin = 0

# Max level Limit the player will learn spells
# Default: = 80

MaxLevel = 80
LearnSpells.MaxLevel = 80
15 changes: 0 additions & 15 deletions src/cmake/after_ws_install.cmake

This file was deleted.

18 changes: 18 additions & 0 deletions src/loader.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
* Copyright (C) 2021+ WarheadCore <https://github.com/WarheadCore>
*/

#ifndef _LEARN_ALL_SPELLS_LOADER_H_
#define _LEARN_ALL_SPELLS_LOADER_H_

// From SC
void AddSC_LearnAllSpells();

// Add all
void AddLearnAllSpellsScripts()
{
AddSC_LearnAllSpells();
}

#endif /* _LEARN_ALL_SPELLS_LOADER_H_ */
1 change: 0 additions & 1 deletion src/loader_learnspells.h

This file was deleted.

Loading