Commit Graph
28009 Commits
Author SHA1 Message Date
Killyana f98e82103f Spell/Script: Kill logs spam for spell_ioc_parachute_ic
Closes #23163

(cherry picked from commit c318b3e16d482654112c528d100edddaf6d4e0fe)
2021-11-30 22:41:16 +01:00
ccrs 171947fa62 Core/Movement: replace multiset::find with std::find in MotionMaster
same reasoning as 11de6b5
Container's find uses the defined custom comparator

(cherry picked from commit 6e011c974d55135f56df7802699c05fc95ee7873)
2021-11-30 22:33:16 +01:00
ccrs 72301bf02f Core/Movement: implement and use new remove method in MotionMaster
All erases within MotionMaster are now done by itr.
Previous impl used value erase which uses the custom comparator which does not identify elements uniquely --> wrong values were deleted

ref #23187#discussion_r275791179

(cherry picked from commit 11de6b5f866e087307a719b931be8c51b984c54e)
2021-11-30 22:32:53 +01:00
Sorikoff d72e809ecf Scripts/Spells: Migrate Some Scripted Spells to Scripts (#23185)
* Migrate spells to scripts

* Simplify code

* I need to sleep

* Update chapter1.cpp

* Use actual damage

* No need in null check here

(cherry picked from commit 2cfaeb14004cfbb5500855472ad89ab9238df13d)
2021-11-30 22:30:53 +01:00
Chaouki Dhib c19a4db1c1 Core/Movement: Add time synchronisation (#18189)
(cherry picked from commit 975f1e364a6a68be2beca261a64ea8aecc16f6f6)
2021-11-30 22:11:36 +01:00
ForesterDev edd911b14d Core/Social: Separated checks for friend and ignored limits (#23181)
(cherry picked from commit 2a6eef76e24bcc266050237df0bf296e4cce4bae)
2021-11-30 20:58:49 +01:00
Shauren 21fefb3189 Core/GameObjects: Defined more GameObjectFlags and GameObjectDynamicLowFlags 2021-11-30 19:31:16 +01:00
Shauren 66225c27e4 COre/Misc: GCC warning fix 2021-11-29 12:11:24 +01:00
Shauren 4978750444 Warning fixes (log format in a809932f50) 2021-11-28 01:11:52 +01:00
Shauren a809932f50 Core/Spells: Implemented spell effect 254 (SPELL_EFFECT_JUMP_CHARGE) 2021-11-28 00:05:38 +01:00
Shauren 684cd9d968 Core/Movement: Implement initializing parabolic splines using jump gravity instead of max parabolic height 2021-11-27 21:56:00 +01:00
jackpoz aeece162b9 Core/MMaps: Fix crash added in 386b5a6fd948b4866cbd9a8a9892e8777922e9c9
(cherry picked from commit 17bb608a5e77345948a8c4f28d78e2cba5302505)
2021-11-27 01:40:13 +01:00
jackpoz b4cff8159e Core/MMaps: Simplify d182e5f7e73e614185f4470429467befd6e03981 and handle PATHFIND_INCOMPLETE in ChaseMovementGenerator as "cannot reach the target"
(cherry picked from commit 386b5a6fd948b4866cbd9a8a9892e8777922e9c9)
2021-11-27 01:38:24 +01:00
jackpoz bf1bf510fb Core/MMaps: Fallback to shortcut for flying units if Detour returned an incomplete path.
Fallback to shortcut for flying units if Detour returned an incomplete path. This is needed when a flying unit should fly to the floor below to reach the target, but since Recastnavigation doesn't support "jumping down" the unit would not find a path to the target.

(cherry picked from commit d182e5f7e73e614185f4470429467befd6e03981)
2021-11-27 01:38:11 +01:00
Giacomo Pozzoni d37a8ea038 Core/Database: Close the MySQL connection only after getting the last error code
(cherry picked from commit 3230ca74d21517204bb785e9ec799d995295ad28)
2021-11-27 01:25:47 +01:00
Jozef Dúc 10fcfde78b Core/Creatures: Filter out trainer spells that belong to a skill that can never be learned by a player with given class and race combination (#23176)
Closes #23172

(cherry picked from commit f221fcdd4b91e27c69a38dc665621797af0640c9)
2021-11-27 01:18:19 +01:00
PolarCookie 0bde06c402 Core support for breadcrumb quests (#23157)
* Breadcrumb quests support in core

* To Winterspring! & Starfall

* translating ZenoX92's list, part 1

* Carendin Summons is Blood Elf only

* Breadcrumb to an exclusive group

* translating ZenoX92's list, part 2

* class quests

* breadcrumb trails

* better prevquest check

* less harsh error warnings

* minor optimization

* Rename 9999_99_99_99_world.sql to 2019_04_10_00_world.sql

(cherry picked from commit 5ed77113b637c49e99a610b00f385c51da67c3bf)
2021-11-27 00:21:08 +01:00
Aokromes 2ed9d01efc Core/Spell: Move a log to category
(cherry picked from commit 1374658d727d37b34f60ce4891b5160bef5d28f8)
2021-11-26 22:44:18 +01:00
Jeremy 4fcc4a3300 Core/Movement: Fix some undermap issues with random movement/fear/blink (#22937)
* Core/Movement:
- Only move to point if there is a path that is not a shortcut (which will make the unit move through terrain)
- Added new function to check if there is a vmap floor without search distance
- Units that can fly, are underground but far above the vmap floor will stay underground (bronze drakes in tanaris)
- Don't remove PATHFIND_SHORTCUT from path type in some cases

* Core/Object: Ignore UpdateAllowedPositionZ for flying units.

- This will make flying units go through mountains instead of going to the top and back to the bottom to reach you.

* Core/Object: Revert some changes and let MovePositionToFirstCollision deal with a position without ground

* Missing groundZ change for objects on transport

* use CanFly instead of IsFlying

(cherry picked from commit 9fcbd8f15d249070aabc25d48df86681e8ec3d11)
2021-11-26 22:43:48 +01:00
PolarCookie fe0cff0cae Core: VehicleJoinEvent crash fix (#23136)
(cherry picked from commit 73e3fdc8b4545cca52b66032a5f2465183d14c71)
2021-11-26 22:33:43 +01:00
Ovah d5daa2ad49 Core/Objects: use the actual collision height of players and creatures to get more accurate liquid status results (#23070)
(cherry picked from commit b9e9ccf93c63c3b27d7a6f9eced0beb4e14af40e)
2021-11-26 22:24:07 +01:00
r00ty-tc 4c996bdf8b Core/GameEventMgr: Log error if loading GO/Creature into event that is part of pool - Only warn, still load the GO/Creature - These should be added to game_event_pool by pool ID instead
(cherry picked from commit 8bb88657f823b3e5446e250a48a2846abb10f023)
2021-11-26 22:06:18 +01:00
Killyana f7048afac1 Core: Remove wrong emotes played in combat
Ref #23152

(cherry picked from commit c52eb49f71606b6b07b9edf279606713292ec92c)
2021-11-26 11:22:26 +01:00
Gustavo b86a66c5be Core/Scripts: Fix Blood summon position (#23088)
* Core/Scripts: Fix Blood summon position

Updates #13162

(cherry picked from commit cc3293c0023b36434747190103a1f0ffee0f8488)
2021-11-26 11:21:24 +01:00
Gustavo 6aaf9aaf3b Core/Misc: Warning fixes (/W4) (#23149)
* Core/Misc: Warning fixes (/W4)

(cherry picked from commit 50f122de778bca324d0f4c81f1e8eb30b90a7314)
2021-11-26 11:18:15 +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
MejiandShauren 93c668ac50 Core/BattlePets: Implemented BattlePetSpeciesFlags::NotAccountWide (#27303)
Co-authored-by: Shauren <[email protected]>
2021-11-25 20:55:12 +01:00
ModoX 52824eedd3 Core/Spells: Use Unit::Kill instead of Unit::DealDamage for SPELL_EFFECT_INSTAKILL (#27316) 2021-11-25 19:25:38 +01:00
jackpoz 721f4c6032 Core/Misc: Fix static analysis issues
Fix static analysis issues spotted by Coverity Scan

(cherry picked from commit 750d89beed38f4af9efa3699b79f2950f430bfdd)
2021-11-24 23:45:36 +01:00
jackpoz 71cb10afe0 Core/Misc: Fix static analysis issues
Fix static analysis issues spotted by Coverity Scan

(cherry picked from commit a12ea482f3eae340b54d09b7163e69524c422f06)
2021-11-24 23:45:27 +01:00
jackpoz 43a41caafb Core/Misc: Fix GCC 8 warnings
(cherry picked from commit 1d04a3b216901671eae0104547715a570b1ff3ab)
2021-11-24 23:40:15 +01:00
sirikfoll dc5cab3bf4 Core/GameObject: Properly dismount players on GameObject Use
Closes #23124

(cherry picked from commit dbfc6ce773afad4b5a4db77cbb76e64755d3ef94)
2021-11-24 23:34:48 +01:00
ForesterDev b26c2f5c13 Core/Conditions: implement CONDITION_GAMEMASTER (#23108)
(cherry picked from commit 262ddaf819d3b2e759bb4690149c0c28a4022d5f)
2021-11-24 22:56:14 +01:00
PolarCookie e182a38b01 Core/Item: Item Signature (#23119)
(cherry picked from commit a926a3088d39897fe3ab58239775661449498363)
2021-11-24 22:42:13 +01:00
Trond B. Krokli bc628572fe Scripts/Wailing Caverns: make Disciple of Naralex say Mutanus, not $n (#23122)
* Scripts/Wailing Caverns: make Disciple of Naralex say Mutanus the Devourer

Disciple of Naralex should say
"This Mutanus the Devourer is a minion from Naralex's nightmare no doubt!"
instead of using $n caused by a missing target in the Talk() script command.

(cherry picked from commit a040d484437b2f12ce88dc4372bfacc18204c8fc)
2021-11-24 22:39:18 +01:00
Killyana a99a60bcf3 Core/GameObject: Remove summoned game objects from the map after calling SetSpawnedByDefault(false) (#23120)
Closes #23115

(cherry picked from commit 5f04c829a861da7d5a4f0ac955d6c1fbcd917af9)
2021-11-24 22:27:03 +01:00
Trond B. Krokli 36feb3bfe7 Scripts/Borean Tundra: link gossip content for NPC Iruk from DB (#23118)
- remove hardcoded text (deprecated method)
- add already existing DB gossip content to enum
- correct spell enum from spell_creature_ to spell_create_
- replace case switch with if statement (only one boolean case)

Extra script file update:
- remove SD comment line 22 (outdated info, replaced by SAI)

(cherry picked from commit 7cb31aa4820d02fa5779483bec9455a00954902c)
2021-11-24 22:26:05 +01:00
Jozef Dúc 70cd58765e Check player conditions to enter instance (#23117)
Check player conditions to enter before party condition.

(cherry picked from commit 62f621fcd7e03df62a2af1dc295dc7ec1fc28d77)
2021-11-24 22:25:12 +01:00
Killyana e5eff88282 Core/SAI: Fix Move to position and Set run if used after a waypoint
Closes #22976

(cherry picked from commit 9ab05e2b6dee2008aac512e98bc477c4ed637cfc)
2021-11-24 22:16:02 +01:00
Killyana da1166db98 Core/SAI: Fix the respawn event for GameObjects (#23112)
Closes #22612

(cherry picked from commit 75a8639242c9d28deaa0565aba138d2e05b12db9)
2021-11-24 22:15:52 +01:00
Killyana 8d806f8c69 SAI/GameObject: Despawn the linked trap with the gameobject
Closes #23105

(cherry picked from commit 750be73b9963ebcd4b823ec88b20af7cd819529b)
2021-11-24 21:22:50 +01:00
Aokromes 268e0bea18 Core/Disables: Implement SPELL_DISABLE_ARENAS (#23103)
* Core/Disables: Implement SPELL_DISABLE_ARENAS and SPELL_DISABLE_BATTLEGROUNDS

By fredimachado

(cherry picked from commit 73d2e5da37aa23cd439f1048bce9e28d483a4c27)
2021-11-24 21:20:46 +01:00
Langerz82 e61266815f Spell/Script: Guard's Mark
Closes #16888

(cherry picked from commit e840d4967eae376d1bb888ae471056d05c2f0acc)
2021-11-24 20:41:03 +01:00
PolarCookie f7299dce97 Core/Spell: SpellAura Redux (#22794)
* typo and correction

* spell aura no longer shared between targets

_spellAura isolated

* SPELL_AURA_CONTROL_VEHICLE is not strictly single target spell

Steam Tank Control and Wyrmrest Commander

units can reseat themselves again

* Rename 9999_99_99_99_world.sql to 2019_03_08_00_world.sql

(cherry picked from commit ec3cb05d7fbc5cef60d000af910dc39dd3af92bf)
2021-11-24 20:35:19 +01:00
ccrs 67e0b25739 Scripts/Northrend: 482e0da followup
add a little bit of tolerance

(cherry picked from commit a00636261570c7e053ec4ed0844c196b10529978)
2021-11-24 20:35:19 +01:00
ccrs 27bc3bc7db Scripts/Northrend: 482e0da followup
(cherry picked from commit 3eecadcebf11f7418b6cdcf5d3602cea5e4e60f7)
2021-11-24 20:35:18 +01:00
Killyana 67e702b29b Spell/Script: Specify a target for Azure Dragon: On Death Force Cast Wyrmrest Defender to Whisper to Controller - Random
(cherry picked from commit e5470ab1ee32b97e07e979950665a7ede66603e0)
2021-11-24 20:35:18 +01:00
Keader c72afc76be Creature/Script: Daegarn
Remove the incorrect SAI and move it to cpp

(cherry picked from commit 482e0dad30ccb88ae4d518fc205f1cd76202fed7)
2021-11-24 20:35:18 +01:00
Killyana 48c8b650bb Spell/Script: Summon Scourged Captive
Closes #16357

(cherry picked from commit 0959f3071af5f4c2b20c926beb8c78c3454ffb4b)
2021-11-24 20:35:18 +01:00