Commit Graph

8464 Commits

Author SHA1 Message Date
郑佩茹
650e71728a Merge branch 'master' into Playerbot
# Conflicts:
#	src/server/game/Entities/Unit/Unit.cpp
2022-05-25 08:51:01 -06:00
AzerothCoreBot
3772582e5c chore(DB): import pending files
Referenced commit(s): 84ccf508ef
2022-05-25 11:52:59 +00:00
mpfans
84ccf508ef fix(DB/Translation): Chinese translation of two quests (#11867)
fix 2 quests Chinese Translation

* update `Slaves of the Stormforged` quest Chinese translation
* update `Waterlogged Recipe` quest Chinese translation
2022-05-25 08:50:49 -03:00
UltraNix
7b4e1ef7d3 fix(Core/Spells): Shadow Weaving should not proc off from DoTs. (#11825) 2022-05-25 05:00:05 -03:00
AzerothCoreBot
5912f654df chore(DB): import pending files
Referenced commit(s): b66586c1d7
2022-05-25 07:58:38 +00:00
UltraNix
b66586c1d7 fix(Core/Spells): Fixed players being able to mount with all transfor… (#11767)
…m auras.

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-05-25 04:56:35 -03:00
AzerothCoreBot
edfd2bba8e chore(DB): import pending files
Referenced commit(s): bc101780e8
2022-05-25 02:31:16 +00:00
avarishd
bc101780e8 fix(DB/SAI): Commander Felstrom Infinite Loot Farm (#11744) 2022-05-24 23:29:06 -03:00
AzerothCoreBot
a229a53ffa chore(DB): import pending files
Referenced commit(s): 7ef53bcda1
2022-05-25 02:21:02 +00:00
Hanabi
7ef53bcda1 fix(DB/Loot): Bear Flank drop rates (#11530) 2022-05-24 23:19:08 -03:00
AzerothCoreBot
a4af113685 chore(DB): import pending files
Referenced commit(s): a6a2ca8ef7
2022-05-24 13:35:53 +00:00
Hanabi
a6a2ca8ef7 feat(Core/GameObjects): Instance gameobject save data implementation (#11113)
* fix(Core): Save gameobject state on instances

Currently, azerothcore doesn't save gameobject states on instances.
Whenever there's a re-start or crash, the instance's gameobjects and
their states aren't saved, producing un-wanted behaviours and blocking instances at times.

Implemented CRUD for new table `instance_saved_data` that holds the states of gameobjects.

- When worldserver launches and gameobjects are loaded, this will check
  if this object's state exists on the DB and sets the previous state.
- On instance deletion (reset) these states are also removed based on
  the instance ID.
- Whenever a gameobject state changes inside a dungeon or raid, we save
  on the database the set state.

* Select query to synchronous and used FindMap()

* loading gameobject states on create

* reseting instance saved data

* missing reset methods and on create state

* database structure

* Update src/server/game/Entities/GameObject/GameObject.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Update src/server/game/Entities/GameObject/GameObject.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Update src/server/game/Entities/GameObject/GameObject.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Update src/server/game/Entities/GameObject/GameObject.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Update src/server/game/Entities/Player/PlayerMisc.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Update src/server/game/Groups/Group.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* codestyle

* table changes

* table style

* codestyle

* table changes for columns

* data sanitization

* todo:

- Finish loading db data into the containers
- Using containers to find data
- How to get data from ObjectMGR inside Gameobject?

* loading on start up and db changes

* Removing unused data structure

* Uninitialised integer

* Whitespace

* clean-up and hooks to save states on memory

* Codestyle MySQL deprecated backticks

* i dont understand codefactor

* build

* Update data/sql/updates/pending_db_world/rev_1643395587559675400.sql

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Update src/server/game/Globals/ObjectMgr.h

Co-authored-by: Kargatum <dowlandtop@yandex.com>

* review changes

* unecessary removal

* pushback instead of emplace

* wrong database update

* Update ObjectMgr.cpp

* missing check

* removing entry from the PR

* missing removals

* last delete

* build

* aha! Found the culprit for the sudden assert errors

* type safety, save only important gameobjects

* static cast to unsigned short

* Update data/sql/updates/pending_db_characters/rev_1643629468629316100.sql

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* type changes

* queries fix

* fix build

* enabling which gameobjects to save on the database

* deadmines iron clad door

* Adjustment to gameobject onj create state and instances:

- Gnomeregan doors and Grubbis boss state
- Deadmines missing doors
- Stratholme gameobjects state saved

* forgot emi blastfuse change to despawn

* Leaving group logic

* codestyle

* fixing merge issues

* prevent bad behaviour

* brain meltdown

* Update data/sql/updates/pending_db_characters/rev_1643629468629316100.sql

* Update data/sql/updates/pending_db_world/rev_1649359139539727000.sql

Co-authored-by: Claudiodfc <54484196+claudiodfc@users.noreply.github.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Kargatum <dowlandtop@yandex.com>
Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
2022-05-24 10:33:45 -03:00
ZhengPeiRu21
882359297d Merge branch 'azerothcore:master' into Playerbot 2022-05-23 09:04:16 -06:00
AzerothCoreBot
305a2689e9 chore(DB): import pending files
Referenced commit(s): 46d0b32d98
2022-05-23 09:07:52 +00:00
temperrr
46d0b32d98 fix(DB/SAI): Skeletal Guardian should melee when no mana / follow around corners. (#11808)
* Fix(DB/SmartAI): Skeletal Guardian should move to target when out of mana/los

* Delete rev_1652964611894173692.sql

* Create rev_1652964611894173692.sql
2022-05-23 06:05:49 -03:00
temperrr
1f59431d03 fix(DB/BlackwingLair): Trash Formation (#11807)
* Fix(DB/BWL): Trash Formation

* Update rev_1652952979464233480

* add .sql extension

* missing semicolon

Co-authored-by: Nefertumm <nefertum.dev@protonmail.com>
2022-05-23 06:05:19 -03:00
UltraNix
b638d44693 fix(Core/Units): Clear any movement on charm. (#11826)
Fixes #10343
2022-05-23 06:04:27 -03:00
AzerothCoreBot
c331d8822b chore(DB): import pending files
Referenced commit(s): dfc6adb081
2022-05-23 08:53:53 +00:00
Maelthyr
dfc6adb081 refactor(Core/Combat): DeleteThreatLists() become ClearAllThreat() (#11824)
refactor(Chore/Combat): DeleteThreatLists() become ClearAllThreat()
2022-05-23 05:51:52 -03:00
avarishd
ae3ecb0f1a fix(DB/Creature): Flamebringer spawning indefinitely (#11737)
* Create rev_1652526320425217900.sql

* Update rev_1652526320425217900.sql

* wrong SAI link

* clear link parm1

* Remove the double on gossip event(s)
2022-05-23 05:51:08 -03:00
UltraNix
55720eedd3 fix(Scripts/Spells): Sweeping Strikes - improvements. (#11666)
* fix(Scripts/Spells): Sweeping Strikes - improvements.

Fixes #11594

* Buildfix.
2022-05-23 05:49:56 -03:00
temperrr
b6d79ac89e fix(Script/ZulGurub): Skeletons should appear in pit (#11561) 2022-05-23 05:47:30 -03:00
AzerothCoreBot
72b88ad188 chore(DB): import pending files
Referenced commit(s): bcfaf2daad
2022-05-23 08:47:12 +00:00
UltraNix
bcfaf2daad fix(Scripts/Spells): Replenishment should proc off from Vampiric Touc… (#11772)
* fix(Scripts/Spells): Replenishment should proc off from Vampiric Touch even if target died from Mind Blast.

Fixes #8502

* Update.
2022-05-23 05:45:01 -03:00
Degen
34943f1f4b fix(DB/gameobject): Darnassus Moonwell spell focus objects (#11428)
* Add files via upload

* Update rev_1650258156241061000.sql
2022-05-23 05:44:37 -03:00
AzerothCoreBot
e5b0545759 chore(DB): import pending files
Referenced commit(s): 914ea4f9c3
2022-05-23 07:29:49 +00:00
UltraNix
914ea4f9c3 fix(Core/Items): Properly transfer enchantment durations from old to … (#11828)
fix(Core/Items): Properly transfer enchantment durations from old to newly created/summoned items.

Fixes #11687
2022-05-23 04:27:53 -03:00
UltraNix
99f1cd84e2 fix(Core/Spells): Improvements to Far Sight spell: (#11683)
* fix(Core/Spells): Improvements to Far Sight spell:

Far Sight should not interrupt while casting another spell.
Corrected setting Far Sight object as an active object.
Fixed grid activation range for active dynamic objects.
When Far Sight is over, the camera be reset to player.
Enable swapping camera between Far Sight and Sentry Totem.
Fixes #6368

* Update.

* Update.
2022-05-23 04:26:51 -03:00
UltraNix
0c209dae75 fix(Core): Crashfix. (#11821) 2022-05-23 04:25:55 -03:00
UltraNix
e0a0e883b0 fix(DB/Quest): Fixed Captive Crocolisk not moving to final destination. (#11823)
Fixes #11809
2022-05-23 04:25:06 -03:00
Kargatum
b1c5b44500 feat(Cmake/FindMySQL): add support MariaDB 10.9 (#11835) 2022-05-23 04:04:04 +07:00
Kargatum
464eda37e7 fix(Tools/Vmap): correct build (#11834) 2022-05-23 04:03:48 +07:00
ZhengPeiRu21
0d42597ba3 Merge branch 'azerothcore:master' into Playerbot 2022-05-22 12:08:05 -06:00
AzerothCoreBot
f7674acb58 chore(DB): import pending files
Referenced commit(s): 90fccacad5
2022-05-21 21:44:46 +00:00
Kitzunu
90fccacad5 feat(Core/Movement): Allow waypoints to use 0 as valid facing value (#11681)
* feat(Core/Movement): Allow waypoints to use 0 as valid facing value

* cherry-pick commit (4747515872)

Co-Authored-By: Ovah <18347559+Ovahlord@users.noreply.github.com>

* Update SmartScriptMgr.h

* a

* Update SmartAI.cpp

* Update SmartAI.cpp

* Update SmartAI.cpp

* typo

* Update SmartAI.cpp

* Update SmartAI.cpp

* Compile fix

* compile #2

* Update WaypointMgr.h

* Update SmartScriptMgr.h

* compile fix again

Co-authored-by: Ovah <18347559+Ovahlord@users.noreply.github.com>
Co-authored-by: MDIC <joshua.lee.betts@gmail.com>
2022-05-21 23:42:41 +02:00
AzerothCoreBot
92cf37731a chore(DB): import pending files
Referenced commit(s): 1b852b4a0c
2022-05-21 21:33:02 +00:00
avarishd
1b852b4a0c fix(Script/Quest): A Suitable Disguise - Move zone_dalaran to DB from hardcode (#11813)
Update zone_dalaran.cpp
2022-05-21 23:30:58 +02:00
avarishd
634b2e101c fix(Script/Quest): Conversing With the Depths adjustments & zone_dragonblight move to db from hardcode (#11795)
* Update zone_dragonblight.cpp

* Update zone_dragonblight.cpp
2022-05-21 23:29:28 +02:00
avarishd
ee596047d9 fix(DB/Creature): BRD Detention Block - Link mobs in group pack (#11790)
* Create rev_1652731923594016000.sql

* missing `
2022-05-21 23:29:12 +02:00
avarishd
dafba27bac fix(DB/Creature): Horde Scout - console SmartScript::ProcessAction errors (#11783)
* Create rev_1652715563226780200.sql

* Change "!" to ".", from broadcast_text
2022-05-21 23:28:57 +02:00
AzerothCoreBot
9a94042b08 chore(DB): import pending files
Referenced commit(s): fbbb287c29
2022-05-21 21:28:44 +00:00
avarishd
fbbb287c29 fix(Script/Ulduar): Mimiron - remove hardcode text and fix Computer broadcast. (#11725)
* Remove hardcode from Mimiron

And fix Computer broadcast text with the sql

* Remove unused ObjectAccessor

* Add plasma blast to creature_text (MK II)

And move all text into 1 enum

* cs
2022-05-21 23:26:35 +02:00
avarishd
75c65ce9b0 fix(Script/Ulduar): Thorim - misc fixes & hardcode removal (#11711)
* Remove unused SAY_SPECIAL from Thorim/Ulduar

Remove duplicates from creature_text for Thorim/Ulduar

* missing ;

* Fix chest rotation & set trigger creature flag to traps

* Change SAY_SPECIAL & start at 6/6 adds

* remove urand from KilledUnit

was there because TYPEID_PLAYER wasn't there, prior to now

* Update SQL comment

* Remove unnecessary GetInstanceScript
2022-05-21 23:25:37 +02:00
IntelligentQuantum
324112ff4f feat(Common/Collision): missing fclose (#11753) 2022-05-19 19:13:06 -03:00
ZhengPeiRu21
34b332b51b Merge branch 'azerothcore:master' into Playerbot 2022-05-19 12:55:28 -06:00
avarishd
d94f8b5970 fix(Script/Ulduar): Freya spawning multiple chests (#11794) 2022-05-19 10:59:48 -03:00
acidmanifesto
76d57065e2 fix (core/logging/conf): Fix Logging for Modules (#11601)
* fix (core/logging/conf): Fix Logging for Modules

Fix custom module logging and appender. Also included Logging Async Conf.

* Update Log.cpp

* Core/Logging: Force synchronous logging after io_service shutdown - fixes logging on worldserver shutdown

https: //github.com/TrinityCore/TrinityCore/commit/c71987b1a1403fa20654cc24b37448ca807ff363
Co-Authored-By: Shauren <shauren.trinity@gmail.com>

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-05-19 09:54:08 -04:00
Maelthyr
c5368816fa Core/Combat: rename getThreatMgr() to GetThreatMgr() (#11758) 2022-05-18 05:36:57 -03:00
UltraNix
8c058791ed fix(Core/Spells): Windfury, Flametongue, Healing Stream, Cleansing … (#11761)
...and Mana Tide totems should be affected by shaman T1 3p bonus.
2022-05-18 05:08:57 -03:00
Charlton Lau
3c9b56438e fix(Core/Spell): Enslaved Demon does not auto-attack/auto-cast (#11677) 2022-05-18 04:59:39 -03:00