Commit Graph

33679 Commits

Author SHA1 Message Date
Mikhail Redko
eaa22b8a17 Core/Misc: Remove unneeded null-terminator after switch from wchar_t to std::wstring in 309851e. Fixes creation characters with declined russian names (#25797)
Closes #23775
2021-01-04 19:52:43 +01:00
offl
a0da54d66f DB/Creature: Remove UNIT_FLAG_REMOVE_CLIENT_CONTROL
Ref #25764
2021-01-04 20:01:23 +02:00
offl
6bbf734f40 DB/Creature: Restore incorrectly removed movement states
Ref 6d3c01732d
2021-01-04 19:59:37 +02:00
Cerveciento
0e3b28c02d DB/Quest: Remove NULL as string in CompletionText
Closes #25799
2021-01-04 16:59:28 +02:00
Cerveciento
0852159d24 DB/Locales: Add missing esES & esMX quest locales (Part 85)
Closes #25800
2021-01-04 16:58:46 +02:00
Cerveciento
ce8a74753b DB/Locales: Add missing esES & esMX quest locales (Part 84)
Closes #25798
2021-01-04 16:58:28 +02:00
Cerveciento
c2ea6c94dc DB/Locales: Add missing esES & esMX quest locales (Part 83)
Closes #25784
2021-01-04 04:04:17 +02:00
Cerveciento
32c184375d DB/Locales: Add missing esES & esMX quest locales (Part 82)
Closes #25783
2021-01-04 04:03:57 +02:00
Cerveciento
d053cb2609 DB/Locales: Add missing esES & esMX quest locales (Part 81)
Closes #25780
2021-01-04 04:03:38 +02:00
Cerveciento
5ca8f1fcee DB/Locales: Add missing esES & esMX quest locales (Part 80)
Closes #25779
2021-01-04 04:03:22 +02:00
offl
1f4b5c2f56 DB/Creature: Remove serverside unit flags
Ref #25764
2021-01-04 04:02:58 +02:00
offl
6d3c01732d DB/Creature: Remove DisableGravity if not really needed & not present as difficulty flag 2021-01-04 04:02:12 +02:00
offl
4eafa57adb DB/Quest: Rework 'Rescuing Evanor' (11681) 2021-01-04 04:01:53 +02:00
offl
14da6e3109 DB/Creature: Verify & update positions of creatures in Sanctum of the Stars 2021-01-04 04:01:35 +02:00
offl
c09bd08f81 DB/Quest: Implement 'The Deadliest Trap Ever Laid' (11097)
Updates #6318
2021-01-04 04:00:57 +02:00
offl
6af98634d8 DB/Quest: Update 'The Stones of Vekh'nir' (10565) 2021-01-04 04:00:37 +02:00
offl
8a66df5a85 DB/Quest: Rework 'Finding the Keymaster' (10256) 2021-01-04 04:00:20 +02:00
offl
655bb94f8e DB/Quest: Rework 'The Archmage's Staff' (10173) 2021-01-04 03:59:13 +02:00
jackpoz
435d50bf2e SQL: Fix world update script 2021-01-04 00:06:07 +01:00
jackpoz
b13d431ba2 SQL: Fix auth db db structure 2021-01-03 23:03:27 +01:00
Shauren
8d450f3f07 Core/Commands: Add .reload vehicle_template
(cherry picked from commit 4ca15ec065)

# Conflicts:
#	sql/base/auth_database.sql
#	src/server/game/Accounts/RBAC.h
2021-01-03 22:51:53 +01:00
Sevi
6392d9ac48 Core/Vehicles: add a way to delay the Vehicle despawn Time if its needed.
* New database table `vehicle_template` holds info for despawn delay with option to extend it in the future

(cherry picked from commit c7b10d3c5f)

# Conflicts:
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/game/Entities/Vehicle/Vehicle.cpp
#	src/server/game/Globals/ObjectMgr.cpp
#	src/server/game/Globals/ObjectMgr.h
2021-01-03 22:10:55 +01:00
jackpoz
ed975ef4c0 CI/Circle CI: Add codestyle check
Don't leave 2 blank lines, 1 is enough.
2021-01-03 11:50:56 +01:00
Kargatum
a32b6b8ac4 Core: whitespace cleanup, reduce double blank line to single (#25795)
* Core/Misc: fix double empty line

* worldserver.conf
2021-01-03 11:47:07 +01:00
Aurelio Arcabascio
4ea64b515a Core/Player: auto-attacked player stands up from sit or sleep state (#25684)
* Fixed Auto Attack bug on sitting player

* Victim now stands during sleep and stand emotes
2021-01-02 19:10:26 +01:00
Treeston
94c03b2107 Core/Maps: Move some more Map internals to actually be... internals. 2021-01-01 04:03:52 +01:00
Aokromes
b8ac98dd1a New year 2021-01-01 00:19:17 +01:00
jackpoz
1cafd4ef74 Core/Misc: Fix Windows 32 bits build
Close #25789
2020-12-31 19:55:55 +01:00
Treeston
803dc789e4 Core/Maps: All RespawnInfo* handed to outside code are now RespawnInfo const*, to signify that outside code has zero business changing these. 2020-12-31 18:57:18 +01:00
Shauren
7d70fbc64c Core/RBAC: Reserve permission id 2020-12-31 12:52:31 +01:00
Giacomo Pozzoni
96b289cadb Core/SAI: Fix SMART_EVENT_FLAG_NOT_REPEATABLE flag being ignored when specifying a chance (and other SMART_ACTION_CAST fixes) (#25778)
* Core/SAI: Fix SMART_EVENT_FLAG_NOT_REPEATABLE flag being ignored when specifying a chance

Fix SMART_EVENT_FLAG_NOT_REPEATABLE flag being ignored when specifying a chance, always making the action trigger.

* Fix SMART_ACTION_CAST with SMART_EVENT_FLAG_NOT_REPEATABLE not casting the spell at all if rolled chance was successful but creature couldn't cast the spell

* Prevent linked actions if SMART_ACTION_CAST couldn't be completed and will be retried later
2020-12-30 21:18:00 +01:00
Treeston
f8afcec9f3 Core/Maps: move pooling hand-off outside of Map::CheckRespawn (PR#25785)
fixes #25777
2020-12-30 21:08:22 +01:00
jackpoz
0ad1854d1c Scripts/ICC: Fix teleporter not removing players from Gunship
A more generic solution might be better, maybe depending on spell flags

Ref #25652
2020-12-28 12:38:34 +01:00
Giacomo Pozzoni
aabd2b49e2 Core/Maps: Attempt to fix picking the wrong min height (#25771)
Close #25652
2020-12-28 12:36:52 +01:00
Sevi
a843d8b10c Core/Vehicles: Add missing caster guid check
Merges #25773

(cherry picked from commit e26122dc54)
2020-12-28 11:55:55 +01:00
Shauren
7817f18c24 Core/Vehicles: Treat entering other vehicles mounted on main vehicle as swapping seats
(cherry picked from commit 110564e757)
2020-12-28 11:55:55 +01:00
Shauren
fe89e835fb Core/SmartAI: Reserve a param for SMART_ACTION_SOUND master branch specific functionality, for compatibility reasons 2020-12-27 22:28:27 +01:00
jackpoz
ed1c0b6ec9 Core/Maps: Partially revert 0c69316714
Revert define to constexpr as this also broke some calculations
2020-12-27 20:22:35 +01:00
jackpoz
1e3d85e283 Core/Maps: Partially revert 0c69316714
The development will continue in a PR
2020-12-27 19:33:52 +01:00
jackpoz
01b1f20d3e COre/Misc: Remove whitespace 2020-12-27 19:28:31 +01:00
jackpoz
0c69316714 Core/Maps: Use the same logic to calculate grid coords to avoid mismatches
Use the same logic of (CENTER_GRID_ID - x / SIZE_OF_GRIDS) in GridMap::getMinHeight() as Map::GetGrid() to avoid coord grid mismatches caused by floating point precision, i.e. getting the wrong grid.
Replace defines with constexpr in grids to make debugging easier.

Closes #25652
2020-12-27 18:24:53 +01:00
jackpoz
9994459bd1 Scripts/Commands: Include map min height in ".gps" command 2020-12-27 17:14:22 +01:00
offl
f62306f52d Core/Scripts: Add missing spells to Black Morass 2020-12-27 03:13:40 +02:00
offl
8ca575ed52 DB/Spell: Add effects to more spells from Violet Hold
Turned out almost all spells from BM were copied to create Violet Hold. Not only serverside spells and not only their effects but also attributes and icons. The scripts were also copied, possibly unchanged
2020-12-27 03:06:31 +02:00
Cerveciento
9f7df813c5 DB/Locales: Add missing esES & esMX quest locales (Part 79)
Closes #25766
2020-12-27 03:03:40 +02:00
Cerveciento
06e5dfc6cf DB/Quest: Add missing CompletionText to 2 quests
Closes #25752
2020-12-27 03:03:23 +02:00
offl
290f2c2fbf DB/Creature: Replace unit flags stun & immune with auras 2020-12-27 03:02:56 +02:00
offl
15b37ba15a DB/Creature: Add conditions to Steam Tonk's spells & misc fixes
Ref ed8bf7f0e2 Updates #9373
2020-12-27 03:02:19 +02:00
Ovah
527db2170b Core/Units: do not send power update packets when gaining power via energize spell effects to match retail behavior (#25599)
This fixes possible clientside visual issues where power is being added twice until the next update_object packet is being sent
2020-12-27 00:05:37 +01:00
Ovah
b7ba856b63 Core/SAI: implement new smart actions to change AI Animkits and to enable/disable hover movement (#25623)
* Core/SAI: implement new smart actions to change AI Animkits and to enable/disable hover movement for units

SMART_ACTION_SET_AI_ANIM_KIT (parameter 1: animKitId)
SMART_ACTION_SET_HOVER (parameter1: enable/disable)

* Update SmartScriptMgr.cpp

* Update SmartScript.cpp

* removed SMART_ACTION_SET_AI_ANIM_KIT since it's reserved for master
2020-12-26 23:31:25 +01:00