Commit Graph

32651 Commits

Author SHA1 Message Date
offl
2d0df38cd0 DB/Creature: Dark Iron Kidnapper
Closes #24773
2020-06-17 23:11:08 +02:00
offl
e9538e18ba DB/SAI: Use serverside spells for Bunthen Plainswind & Silva Fil'naveth
Closes #24772
2020-06-17 23:04:54 +02:00
offl
6300494c63 DB/Creature: Remove useless script from Deathshadow Agent
Closes #24770
2020-06-17 23:00:17 +02:00
offl
359b4712e2 DB/Creature: Add missing text & conditions to Sahaak's gossip
Closes #24769
2020-06-17 22:48:10 +02:00
offl
4a460554f4 DB/SAI: Remove useless event params and no repeat event flag from some event types
Closes #24768
2020-06-17 22:34:25 +02:00
Giacomo Pozzoni
995a443da2 Handle different slopes in mmaps (#24765)
* Tools/MMAPs: Remove input argument --maxAngle

Remove input argument --maxAngle . This should be just hardcoded in MapBuilder::GetMapSpecificConfig() so all settings are easily found in the same place instead of being spread around.

* Tools/MMAPs: Add new area type NAV_AREA_GROUND_STEEP

Add new area type NAV_AREA_GROUND_STEEP for ground with slope in the range (55, 70] .
NAV_AREA_GROUND is used for ground with range [0, 55] .
NAV_AREA_GROUND_STEEP takes priority over NAV_AREA_GROUND.

* Tools/MMAPs: Fix NAV_GROUND_STEEP flag not being saved in the mmtile

* Core/PathFinding: Implement NAV_GROUND_STEEP flag

Implement NAV_GROUND_STEEP flag, used only by Creatures that are in combat or evading.

* Distinguish between RC_WALKABLE_AREA and NAV_AREA_GROUND.

* Allow mobs in combat to walk on steeps up to 80°

* Allow mobs in combat to walk on steeps up to 85°.
Disable rcFilterLedgeSpans() filter as it removed long steep spans.

* Increase cost of steep spans to try making creatures walk around obstacles instead of walking on them

* Revert last commit
2020-06-17 22:20:26 +02:00
Max Drosdo.www
1e9c84a3ea Worldserver/CLI: console printf fix (#24802)
* Remove extra cli printf call for non-Windows systems

* Codestyle changes

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-06-17 22:14:27 +02:00
offl
8fef9aaf75 DB/SAI: Make SMART_EVENT_IS_BEHIND_TARGET unused and fix all actions with Backstab
Closes #24766
2020-06-17 22:11:55 +02:00
Rothend
e7a714f66c Core/SmartAI: allow AreaTrigger SAI scripts to use the player triggering it as base object for actions and targeting (#24817)
* Core/SmartAI: allow AreaTrigger SAI scripts to use the player triggering it as base object for actions and targeting.

Closes #23669
Closes #24791
Closes #24792
Closes #24793

* Apply suggested changes.

* Initialize atPlayer in the constructor

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-06-17 22:06:56 +02:00
offl
ff043b0861 DB/Quest: Update creatures related to 'Ending Their World' outro event
Closes #24757
2020-06-17 21:52:43 +02:00
offl
1e367d7fbe DB/SAI: Use c_s_g for more big summon groups
Closes #24756
2020-06-17 21:40:46 +02:00
offl
b6f40030c4 DB/Quest: Update 'Ending Their World' outro event
Closes #24754
2020-06-17 21:34:03 +02:00
Rothend
c4caae9b6d Script/Spell: properly round damage of Seal of Righteousness (on-hit proc). (#24821) 2020-06-17 19:28:05 +02:00
Peter Keresztes Schmidt
418c3b1fd5 game/AI: Convert SelectAggroTarget to enum class (#24818)
* game/AI: Convert SelectAggroTarget to enum class

* game/AI: Rename SelectAggroTarget to SelectTargetMethod
2020-06-16 23:08:56 +02:00
Max Drosdo.www
60e813df6b removed legacy cmake libsdir entry (#24813) 2020-06-16 14:22:46 +02:00
Peter Keresztes Schmidt
cb5694607d CP of CMake: Prepare for target_precompile_headers (#24810) for 3.3.5 (#24816)
* CMake: Remove guards around CMP0043 and CMP0054

We require CMake >= 3.8 which includes the policies.
CMP0043 OLD behaviour is still required by cotire.

(cherry picked from commit 18ad767226)

* CMake: Use target_precompile_headers instead of cotire with CMake >= 3.16.0

(cherry picked from commit f387673aa3)
2020-06-16 13:38:37 +02:00
TDB Release
3e7b0d6c05 TDB 335.20061 - 2020/06/15 TDB335.20061 2020-06-15 07:50:01 +00:00
Killyana
bbb308f628 DB/SAI: Replace "Disable combat movement" by "attack stop" used in the quest How To Win Friends And Influence Enemies
ref 13c81f55e3
2020-06-14 23:31:17 +02:00
Ovahlord
152ea60116 Core/SAI: implement SMART_ACTION_ATTACK_STOP
Unlike SMART_ACTION_AUTO_ATTACK, this action is actually stopping the entire attack procedure, rather than just hack-disabling auto-attacks. Keep in mind that this action requires a passive react state to prevent a immediate AttackStart ai reaction
2020-06-14 22:51:42 +02:00
offl
12cf7bc099 DB/SAI: Use c_s_g for some big summon groups
Closes #24753
2020-06-14 19:39:04 +02:00
offl
eedaf9a26e DB/SAI: Use c_s_g for Gurgthock's summons
Closes #24751
2020-06-14 19:37:32 +02:00
offl
d644859533 DB: Add Comment column to creature_summon_groups table
Closes #24745
2020-06-14 19:33:35 +02:00
offl
a117450ce9 DB/Instance: Convert some Uldaman scripts to DB
Closes #24744
2020-06-14 19:16:55 +02:00
offl
aa3ccb4657 DB/Creature: Standardize creature respawn time part 1
Closes #24740
2020-06-14 19:07:46 +02:00
offl
c7607abd0f DB/Creature: Remove static spawns of Aldor Gryphon Guard
Closes #24739
2020-06-14 18:59:42 +02:00
offl
45af4a9794 DB/SAI: Properly script Brother Sarno, Karaaz & Griftah
Closes #24738
2020-06-14 18:44:11 +02:00
offl
c4f83a55e8 DB/GameObject: Stormwind objects with wrong rotation
Closes #24737
2020-06-14 18:35:40 +02:00
offl
8bccb258ba DB/Quest: Convert & update support for 'All Along the Watchtowers' to SAI
Closes #24732
2020-06-14 18:26:35 +02:00
offl
d70eb96c85 DB/Quest: Convert & update support for WP Scourge cauldrons quests to SAI
Closes #24730
2020-06-14 18:12:17 +02:00
offl
e47f302fc9 DB/Quest: Convert & update support for 'Escape from the Catacombs' to SAI
Closes #24728
2020-06-14 17:52:12 +02:00
offl
7b11610fb7 DB/Creature: Update Demon Portal & Demon Portal (Zuluhed)
Closes #24727
2020-06-14 17:34:03 +02:00
offl
e8a2d4627b DB/Creature: Redeemed Hatchling
Closes #24726
2020-06-14 17:27:33 +02:00
jackpoz
cd37a17103 Scripts/Commands: Add .debug objectcount <optional map id> chat command
Add .debug objectcount <optional map id> chat command to show the number of Creatures and GameObjects
2020-06-14 15:41:01 +02:00
Shauren
988fe4c86c Core/Misc: Add .Size() to TypeUnorderedMapContainer for stats/debugging
(cherry picked from commit d53a2dea5f)
2020-06-14 15:10:16 +02:00
Shauren
6a1cb348c7 Core/DBLayer: Fix build using TRINITY_DEBUG
(cherry picked from commit d6d67a9766)
2020-06-13 21:25:42 +02:00
Shauren
dacb1e5802 Core/Spells: Prevent manual cancelling of channelled spells that have SPELL_ATTR0_CANT_CANCEL 2020-06-12 18:48:45 +02:00
Keader
f2f4fc921e kill white space in last commit 2020-06-09 09:57:47 -03:00
Keader
be48fbc32a Scripts/ShadowfangKeep: Fixed a crash in spellscript 2020-06-09 09:52:44 -03:00
Gildor
aeb41e67a9 Scripts/Naxxramas: Fix Kel'thuzad evade mode when he dies (#24763) 2020-06-07 12:55:38 +02:00
ForesterDev
e3b232fe0e Core/AI: refactor SpellHit and SpellHitTarget. (#24691)
* Core/AI: refactor SpellHit and SpellHitTarget.

- now caster/target is WorldObject instead of Unit
- remove SpellHitByGameObject / SpellHitTargetGameObject (handled by SpellHit / SpellHitTarget)
- rename parameters in scripts according parent methods

* Restore logic in Algalon script

* Changed check for REMORSELESS_WINTER hit to avoid dublicate call, because it has TARGET_UNIT_CASTER for effects 0/1 and TARGET_GAMEOBJECT_SRC_AREA for effect 2

* Fix build after merge
2020-06-07 10:22:13 +02:00
Gildor
1181b636c0 Scripts/Naxxramas: Noth the Plaguebringer improvements (#24724) 2020-06-06 14:22:19 +02:00
jackpoz
6e34e07c48 Tools/MMAPs: Output the time spent in a human readable format 2020-06-05 19:58:02 +02:00
Keader
d81a9e5bc3 Core/Misc: Fixed resistance calculate for Mutated Transformation and Twilight Bloodbolt (#24717)
Ref: 9f7b464a6a
- Implemented a new SpellScript hook that allow control Resistance/Absorb amount of a damage spell.
2020-06-03 22:05:08 -03:00
jackpoz
adc7cd3cee Core/Misc: Fix static analysis issues reported by Coverity Scan 2020-06-03 20:49:31 +02:00
Gildor
90e00c3e2a Core/Spells: Fix ammo consumption (#24736) 2020-06-02 20:34:44 +02:00
Shauren
0e9eb8e7f5 Core/PacketIO: Validate AddonInfo size
Closes #24734
2020-06-01 23:43:38 +02:00
Ovah
43ef610fe0 Core/Units: flight and hover checks will now consider movement template data as well as manually set flight states
- manually set flight states via auras and scripts will no longer be ignored
- restored movement template consideration when generating pathings
- renamed IsLevitating to IsGravityDisabled to reflect the referenced movement flag's name
2020-06-01 15:58:31 +02:00
jackpoz
48c5c0d7a2 Core/Misc: Fix Clang 10 build warnings 2020-05-31 15:52:28 +02:00
jackpoz
e3dfab52a6 CI/CircleCI: Switch to Ubuntu 20.04 and MySQL 8 2020-05-31 15:40:15 +02:00
Giacomo Pozzoni
8c09b6e58b Cherry-pick some cmake commits (#24720)
* Build system: Support  new in cmake 3.17 Ninja Multi-Config generator

(cherry picked from commit 369b618d4f)

* Build system: Fixed PCH with MSVC & Ninja generator

(cherry picked from commit d669f46b6d)

* Core: Fix clang 10 warnings

(cherry picked from commit 7272508cb4)

# Conflicts:
#	src/common/Utilities/Util.h
#	src/server/bnetserver/REST/LoginRESTService.cpp
#	src/server/game/Entities/Object/Position.h
#	src/server/game/Entities/Player/Player.cpp
#	src/server/game/Guilds/GuildFinderMgr.h
#	src/server/game/Movement/Spline/MoveSplineFlag.h
#	src/server/shared/Dynamic/LinkedList.h

* Build system: Set -Wno-deprecated-copy only for clang 10

(cherry picked from commit 7fdeb259ba)

* Core/Misc: GCC build and warning fixes

(cherry picked from commit 4d69cc1c56)

# Conflicts:
#	src/common/Utilities/Util.cpp
#	src/server/database/Database/MySQLConnection.cpp
#	src/server/game/Battlefield/Zones/BattlefieldTB.cpp
#	src/server/game/DataStores/M2Stores.cpp
#	src/server/game/DungeonFinding/LFGMgr.cpp
#	src/server/game/DungeonFinding/LFGPlayerData.cpp
#	src/server/game/Entities/GameObject/GameObject.cpp
#	src/server/game/Entities/Item/Item.cpp
#	src/server/game/Entities/Object/Updates/UpdateFields.h
#	src/server/game/Entities/Player/Player.cpp
#	src/server/game/Entities/Player/RestMgr.cpp
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/game/Handlers/PetHandler.cpp
#	src/server/game/Server/Packets/GuildPackets.h
#	src/server/game/Spells/Auras/SpellAuraEffects.cpp
#	src/server/game/Spells/Auras/SpellAuras.cpp
#	src/server/game/Spells/Spell.cpp
#	src/server/game/Spells/SpellInfo.cpp
#	src/server/game/Spells/SpellMgr.cpp
#	src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp
#	src/server/scripts/Kalimdor/HallsOfOrigination/instance_halls_of_origination.cpp
#	src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp
#	src/server/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp
#	src/server/scripts/Northrend/zone_sholazar_basin.cpp
#	src/server/scripts/Outland/BlackTemple/instance_black_temple.cpp
#	src/server/scripts/Outland/GruulsLair/instance_gruuls_lair.cpp
#	src/server/scripts/Outland/HellfireCitadel/BloodFurnace/instance_blood_furnace.cpp
#	src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/shattered_halls.cpp
#	src/tools/vmap4_extractor/gameobject_extract.cpp
#	src/tools/vmap4_extractor/model.cpp
#	src/tools/vmap4_extractor/vec3d.h

* Build system: Print found git version when warning about it being too old

(cherry picked from commit 1ae72db201)

* Build system: Removed hard requirement on BOOST_ROOT being set as environment variable, it can now be also passed as command line argument to cmake and fix compile warning with boost 1.73

(cherry picked from commit 161944b764)

# Conflicts:
#	dep/boost/CMakeLists.txt

* Remove some code that was already removed from 335 and then cherry-picked into master

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2020-05-31 14:17:26 +02:00