Commit Graph

23161 Commits

Author SHA1 Message Date
offl
180f495c70 Scripts/Misc: Remove few more evil flags
Ref #25764
2021-06-10 19:15:35 +03:00
offl
8a2c1377a9 Scripts/Quest: Rework 'Taken by the Scourge' (11611) (#26578) 2021-06-09 19:17:24 +03:00
offl
3d0a081f8e Scripts/Instances/Underbog: Rework Hungarfen (#26567) 2021-06-09 19:16:55 +03:00
Giacomo Pozzoni
9e7cdb02d2 Core/SAI: Add support to friendly+hostile to SMART_EVENT_OOC_LOS and SMART_EVENT_IC_LOS (#26579)
Change SMART_EVENT_OOC_LOS and SMART_EVENT_IC_LOS first parameter to have 3 values:
- 0 : Hostile
- 1 : Not hostile (not that Friendly and Not hostile have different meanings)
- 2 : Any, as in both Hostile and Not hostile

Close #24789

* Add validation on startup for allowed values.
Code cleanup.

* Fix errors
2021-06-08 18:59:46 +03:00
offl
7c6ee033e0 Scripts/Instances/EoE: Update Malygos to new register model (#26583) 2021-06-07 00:32:57 +03:00
offl
2a556b900c Scripts/Instances/DK: Update Trollgore to new register model (#26582) 2021-06-07 00:32:41 +03:00
offl
f5a4b95a02 Scripts/Instances/DK: Update Tharon'ja to new register model (#26581) 2021-06-07 00:32:23 +03:00
offl
cdfce090fc Scripts/Instances/DK: Update Novos to new register model (#26580) 2021-06-07 00:32:09 +03:00
offl
0051b3e345 Scripts/Zone: Update IoC scripts to new register model (#26571) 2021-06-07 00:26:32 +03:00
offl
dadc67c883 Scripts/Zone: Update Blasted Lands scripts to new register model (#26570) 2021-06-07 00:26:18 +03:00
offl
7b9476ea4b Scripts/Instances: Update Mechanar scripts to new register model (#26569) 2021-06-07 00:26:02 +03:00
offl
57d369dd6a Scripts/Instances: Update Slave Pens scripts to new register model (#26568) 2021-06-07 00:25:46 +03:00
jackpoz
483f24c5ed Core/SAI: Fix typo 2021-06-06 18:07:55 +02:00
Matan Shukry
e6a36f058e Core/SAI: Don't clear stored pathid if it changed after processing waypoint events (#26334)
(cherry picked from commit 8b0de23d0e)

# Conflicts:
#	src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
2021-06-06 18:04:43 +02:00
Giacomo Pozzoni
9fe9dc087b Core/Movement: Add new flag MOVEMENTGENERATOR_FLAG_PERSIST_ON_DEATH (#26549)
* Core/Movement: Add new flag MOVEMENTGENERATOR_FLAG_PERSIST_ON_DEATH

Add new flag MOVEMENTGENERATOR_FLAG_PERSIST_ON_DEATH to keep movement generators even after death.

Fixes #23095
Could replace ff26027453

* Core/Movement: reorder new method MotionMaster::StopOnDeath

* Core/Movement: reorder new method MotionMaster::StopOnDeath

* Keep MoveJump movement generator after death

Co-authored-by: ccrs <ccrs@users.noreply.github.com>
2021-06-06 17:51:00 +02:00
Shauren
9f852c27b9 Core/Players: Add PlayerExtraFlags for tracking race change, and raf level grant usage 2021-06-06 14:10:23 +02:00
jackpoz
af815e991d Core/Player: Log more information when Player::StopCastingCharm() fails 2021-06-05 18:41:51 +02:00
jackpoz
105c70802d Scripts/Commands: Fix crashes with ".group revive" and ".group repair"
Close #26575
2021-06-05 12:37:30 +02:00
ccrs
a57bbe0394 Core/Movement: comment unused parameter
/home/runner/work/TrinityCore/TrinityCore/src/server/game/AI/CoreAI/PassiveAI.cpp:82:52: error: unused parameter ‘id’ [-Werror=unused-parameter]
 void CritterAI::MovementInform(uint32 type, uint32 id)
                                             ~~~~~~~^~
compilation terminated due to -Wfatal-errors.
2021-06-03 15:59:42 +02:00
ccrs
303e01c834 Core/Movement: remove redundant method MovementGenerator::NotifyAIOnFinalize and use existing Finalize - MovementInform implementation
6fde051e4e follow up
2021-06-03 15:01:47 +02:00
offl
e7e4786606 Scripts/Spells: Add comments with id & name of spells part 4 2021-05-31 20:35:03 +03:00
offl
03c727326d Scripts/Spells: Add comments with id & name of spells part 3 2021-05-31 04:13:29 +03:00
KoNicks
4b0089bf7d Core/Misc: Fix build when using libstdc++-11 (#26564) 2021-05-30 18:52:35 +02:00
offl
0e804c95ac Scripts/Spells: Add comments with id & name of spells part 2 2021-05-29 20:47:46 +03:00
offl
80a4b7f1e2 Scripts/Spells: Add comments with id & name of spells part 1 2021-05-28 17:33:15 +03:00
offl
78bd609e8a Scripts/Quest: Rework cocooned creatures (#26554) 2021-05-27 19:05:47 +03:00
Shauren
f2f0aeb562 Core/Scripts: Allow spell script ValidateSpellInfo to work with any container type 2021-05-27 15:51:58 +02:00
Shauren
5a4b20a018 Core/PacketIO: Fixed CMSG_MOVE_SET_COLLISION_HGT_ACK structure after 2d114ea560 2021-05-23 12:41:12 +02:00
Chaouki Dhib
19fa411431 Core/Movement: Hotfix the crashes that can occur in the movement handlers (#26538) 2021-05-22 14:54:58 +02:00
offl
52333b0e31 DB/Creature: Rework time bombs
Closes #26479
2021-05-20 02:51:53 +03:00
Chaouki Dhib
2d114ea560 Core/Movement: Improve client control logic (#26348) 2021-05-16 13:16:08 +02:00
Ovahlord
edcaac6c95 Core/DBLayer: escape MySQL keywords in page_text, page_text_locale, broadcast_text and broadcast_text_locale select queries
(cherry picked from commit d4f71131f0)

# Conflicts:
#	src/server/game/Globals/ObjectMgr.cpp
2021-05-15 13:37:02 +02:00
jackpoz
22a5b0fcde Core/Pet: Fix assert triggered by e203ecda88 2021-05-11 20:46:45 +02:00
HelloKitty
e33c4b8f7f Core/Map: Added Map::SetZoneOverrideLight std::chrono overload (#26486)
* Core/Map: Added Map::SetZoneOverrideLight std::chrono overload

* Scripts: Replace Map::SetZoneOverrideLight usages with new std::chrono overload

* Core/Map: Remove non-chrono Map::SetZoneOverrideLight overload
2021-05-11 12:33:05 +02:00
Edder
fb88a1409f Core/Vehicle: Setting home position of creature passenger on AtEngage (#26482)
Co-authored-by: Edder <d.rosenauer@gmail.com>
2021-05-11 09:56:32 +02:00
Mikhail Redko
6c12f45f3b Core/Console: Improve ReadWinConsole logic and cosmetic changes (#26402)
* Core/Console: Improve ReadWinConsole logic and cosmetic changes

* Core/Console: Fixed possible appearance of weird characters in the console when printing the output of child processes

* Fix codestyle

* Removed auto

* Core/Misc: Explicit casting Difficulty values to uint8 before outputting to console

* Core/Misc: Cast Difficulty to uint32 for output to console

Co-authored-by: jackpoz <giacomopoz@gmail.com>
2021-05-11 09:55:57 +02:00
Giacomo Pozzoni
e203ecda88 Core/Pet: Attempt to fix assertions triggered when summoning pets (#26501)
* Core/Pet: Attempt to fix an assertion triggered when re-summoning the current pet

* Core/Pet: Attempt to fix an assertion triggered when stabling a pet while in a vehicle

* Core/Pet: Attempt to fix an assertion triggered when stabling a pet and casting spell 6962

* Core/Pet: Attempt to fix an assertion triggered when casting spell 6962 while being dead

* Core/Pet: Attempt to fix an assertion triggered when summoning a pet while on vehicle 34775

* Handle cases in a generic way

* Code cleanup

* Core/Pet: Attempt to fix an assertion triggered when summoning a pet while on vehicle 34775 with a new character
2021-05-10 22:01:41 +02:00
Shauren
3b95d3dcf9 Core/PacketIO: Fixed SMSG_GUILD_EVENT for empty MOTD broken after cd28423a4e
Closes #26522
2021-05-10 13:09:59 +02:00
offl
79944605c6 DB/Creature: Fix recently broken The Etymidian's script 2021-05-06 17:09:16 +03:00
ihm-tswow
471e5af32d Core/Game: Fix cache path with git flow branches (#26494)
- git flow may put forward slashes in branch names, so we cannot assume we are just creating one directory.
2021-05-05 21:36:26 +02:00
robinsch
8c0e6e9ee4 Core/SAI: Prevent loading invalid smart_scripts entry (#26508) 2021-05-05 21:35:51 +02:00
schell244
2ac7499f66 Core/Sounds - added missing victory near sound for Arathi Basin (3.3.5) (#26477)
* added missing victory near sound for arathi basin

* switch sound id's

Co-authored-by: schell244 <>
2021-04-27 21:11:54 +02:00
offl
d9670cec6d Scripts/DTK: Update King Dred to new model (#26464)
Co-authored-by: offl <offl@users.noreply.github.com>
2021-04-26 09:24:27 +02:00
offl
7de6e75663 Scripts/POS: Update instance scripts to new model (#26467)
Co-authored-by: offl <offl@users.noreply.github.com>
2021-04-26 09:20:07 +02:00
offl
87ba4a7615 Scripts/POS: Update Tyrannus to new model (#26466)
Co-authored-by: offl <offl@users.noreply.github.com>
2021-04-26 09:19:30 +02:00
offl
b5cc63873d Scripts/POS: Update Garfrost to new model (#26465)
Co-authored-by: offl <offl@users.noreply.github.com>
2021-04-26 09:18:52 +02:00
offl
9f188d70fe Scripts/Alterac: Update remaining scripts to new model (#26469)
Co-authored-by: offl <offl@users.noreply.github.com>
2021-04-26 09:18:15 +02:00
offl
0d9125d8e4 Scripts/Eye: Update Void Reaver to new model & few misc changes (#26470)
Co-authored-by: offl <offl@users.noreply.github.com>
2021-04-26 09:17:05 +02:00
offl
2b6632e50a Scripts/Mechanar: Update gatewatchers to new model (#26471)
Co-authored-by: offl <offl@users.noreply.github.com>
2021-04-26 09:12:15 +02:00
Shauren
2f04c48919 Core/PacketIO: Reduce size of SMSG_UPDATE_OBJECT by trimming trailing zeros in values updatemask 2021-04-25 14:56:25 +02:00