Commit Graph

20 Commits

Author SHA1 Message Date
Shauren 8f7a1d3c2c Core/Misc: Delay creating std::string objects for locale data after size validation 2023-04-30 14:04:28 +02:00
Shauren d791afae1d Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api) 2023-01-08 21:16:53 +01:00
Shauren 7957e2d380 Core/Loot: Allocate Loot separately from objects 2022-09-01 20:07:58 +02:00
Meji a1f673d1ca Core/BattlePets: Move BattlePet stuff from SpellMgr to BattlePetMgr (#27986) 2022-06-09 13:58:54 +02:00
Shauren e8b3dda4a0 Core/BattlePets: Wrap battle pet related code in a separate namespace 2021-12-17 14:23:43 +01:00
ccrs 4e6c59dca7 Core/Unit: rename several getters to follow codestyle
uint8 GetLevel()
        uint8 GetLevelForTarget(WorldObject const* /*target*/)
        void SetLevel(uint8 lvl)
        uint8 GetRace()
        uint32 GetRaceMask()
        uint8 GetClass()
        uint32 GetClassMask()
        uint8 GetGender()

(cherry picked from commit 5c09ff51f7)
2021-12-13 00:42:20 +01:00
Meji 0d0f9784a9 Core/Conditions: Added CONDITION_SOURCE_TYPE_TRAINER_SPELL (#27321) 2021-12-04 14:42:54 +01:00
Shauren e538759dfd Build fix 2021-11-25 21:02:46 +01:00
Meji b02f382ed7 Core/Trainers: Implemented learning battle pets from trainers (#27312) 2021-11-25 20:56:37 +01:00
Ghaster f4d029b952 Core/Creature: Profession trainer fixes (PR #22904)
Closes #22903

(cherry picked from commit 19791a35df)
2021-11-18 22:41:57 +01:00
Shauren 8a4e1119ac Core/Spells: Unify spell effect access api in both branches 2021-09-04 15:13:15 +02:00
Shauren 65df9d424d Core/Trainers: Remove all "hidden" rank based requirements for learning spell from trainers and always only rely on trainer_spell.ReqAbility fields in database 2021-02-06 18:30:07 +01:00
Shauren c7306439e7 Core/Spells: Implement using different difficulty data from all spell related db2s, not just SpellEffect and SpellPower 2020-06-12 01:29:18 +02:00
Aokromes b0bf1275ee New Year 2020-01-02 06:44:10 +01:00
vincent-michael 5620eb9463 Update copyright note for 2019
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
Shauren caad2f96d8 Core/Trainers: Fixed trainer spells that are cast by trainer 2018-12-08 00:06:36 +01:00
Shauren 1423d3e7f3 Core/Creatures: Allow multiple SPELL_EFFECT_LEARN_SPELL effects on trainer spells
Closes #22787
2018-11-13 17:49:36 +01:00
vincent-michael 7d00ae4045 Update copyright note for 2018
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
Shauren fac8ccf7e0 Core/Creatures: Trainer followup
* Drop unused columns
* Send proper spellid in packets for profession ranks
* Added missing rank check
2017-07-31 19:53:02 +02:00
Shauren 0cd5179726 Core/Creatures: Rewrite trainer handling to properly support multiple trainers on the same creature
* Trainers are now defined as templates (sniffable), assigned by gossip options
2017-07-26 00:53:51 +02:00