Commit Graph
779 Commits
Author SHA1 Message Date
Giacomo Pozzoni 61bf51874d Core/Misc: Fix static analysis issues (#25178)
(cherry picked from commit 7cf122fc2a604bae77d0b935536c41ec9203e62d)
2022-01-24 20:21:25 +01:00
Trond B. Krokli fa444aca66 Scripts/Quest: Force of Neltharaku quest credit (#24807)
* Scripts/Quest: Force of Neltharaku quest credit

**Description:**

Suggested solution to resolve the kill credit double cast issue
in the quest "The Force of Neltharaku" (10854).

by Rushor

**Changes proposed:**

- Remove duplicate spell casts in the zone quest script
- Remove commented-out script section
- Set a couple of unit flags (anim/stand/hover)
- Move return new creature script override to end of script
- Move PlayerGUID, FlyTimer, and Tapped to Private
- Add DB flight movement control to Enslaved Netherwing Drake
- Add SpellMgr MaxAffectedTargets = 1 for spell 38762
- Add movement enum POINT_MOVE_UP
- Add missing enum for quest ID

**Target branch(es):** 3.3.5/master

- [X] 3.3.5
- [X] master

**Issues addressed:** Closes #24796

**Tests performed:** (Does it build, tested in-game, etc.)

Pending for now.

**Known issues and TODO list:** (add/remove lines as needed)

- [X] Open PR in draft mode until testing is cleared
- [ ] Compile and create local server
- [ ] Test changes on local server

* Rename 9999_99_99_99_world.sql to 2020_07_29_00_world.sql

Co-authored-by: Rushor <[email protected]>
Co-authored-by: Giacomo Pozzoni <[email protected]>
(cherry picked from commit e0dae8feb6607b5190d14b56ecfc10bbfa667c95)
2022-01-24 13:19:36 +01:00
Carbenium b3f2ff97ff Core/CreatureAI: std::chrono-ify DoSummon* methods
(cherry picked from commit 1245833cdd9988a2ac9c3a9374b40e76a53d889a)
2022-01-24 13:11:13 +01:00
Carbenium 82fce41852 Core/WorldObject: Replace non-std::chrono SummonGameObject overloads
Also fix intended despawn time of GOs used by the "Engineering a Disaster" quest

(cherry picked from commit 8642aaaf9268364454b409db7eb62f31210e6d6c)
2022-01-24 12:55:43 +01:00
Carbenium 3bba8d50b1 Core/WorldObject: Remove non-std::chrono SummonCreature overload
Remove
TempSummon* SummonCreature(uint32 entry, Position const& pos, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, uint32 despawnTime = 0, uint32 vehId = 0, uint32 spellId = 0);

(cherry picked from commit a41f599be72ccc88b13c1cf725f20cee4a5335d7)
2022-01-24 12:39:59 +01:00
Carbenium 03e4c0d7bf Core/Creature: Remove non-std::chrono overload of DespawnOrUnsummon
(cherry picked from commit 480dee3125929181b7004810516ea673c61f5811)
2022-01-24 12:21:26 +01:00
Carbenium eeffb310de Core/EventProcessor: std::chrono-ify CalculateTime
uint64 CalculateTime(uint64 t_offset) has been replaced with Milliseconds CalculateTime(Milliseconds t_offset).
Also add the std::chrono-ified overload void AddEvent(BasicEvent*, Milliseconds, bool)

(cherry picked from commit 92a02a5c8750913f596d7e3b58bf8439cb770c28)
2022-01-24 12:00:35 +01:00
Carbenium 310f996b1d Core/WorldObject: Partially std::chrono-ify SummonCreature overloads
TempSummon* SummonCreature(uint32 entry, float x, float y, float z, float o = 0, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, uint32 despawnTime = 0);
to
TempSummon* SummonCreature(uint32 entry, float x, float y, float z, float o = 0, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime = 0s);

(cherry picked from commit 1131229ee9c43704b11187f0b11c327db92018b6)
2022-01-24 11:55:32 +01:00
Carbenium 27c1f47598 EventMap: Change GetTimeUntilEvent to return std::chrono types
(cherry picked from commit 8cb35b0d5f1462387033e6bd2f99d0ea829fdcd8)
2022-01-23 23:59:46 +01:00
Carbenium 38695b0943 Scripts/World+Outland+Spells: Use std::chrono overload of Creature::DespawnOrUnsummon
(cherry picked from commit 5832790428b124876ba48eacaf47806fd10a3c47)
2022-01-23 23:58:48 +01:00
Carbenium e660b870e9 Core/ScriptedAI: std::chrono-ify DoSpawnCreature
(cherry picked from commit f5076112cb25bff877a450a14fe20172e9044081)
2022-01-23 23:33:04 +01:00
Carbenium 330e7100cb Core/Scripts: Fix timing issue of EVENT_FLY_TO_RANDOM_PILLAR during Illidan encounter
The intention here is to add additional 30 seconds of delay to the current delay of EVENT_FLY_TO_RANDOM_PILLAR.
Instead of EventMap::GetNextEventTime, EventMap::GetTimeUntilEvent has to be used which returns the currently
scheduled delay until the event occurs.
EventMap::GetNextEventTime instead exposes the timer value internal to EventMap at which the event should occur.

(cherry picked from commit f1f251eb381bccc9164e29a81da9e013090543a4)
2022-01-23 22:19:24 +01:00
Peter Keresztes Schmidt 44ea32ace4 Build: Enable -Wimplicit-fallthrough on clang (#25056)
* Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs

Related: #25006

* Misc: Add some missing breaks (no-ops) to satisfy clang

Related: #25006
Closes #25055

* Build: Enable -Wimplicit-fallthrough on clang

Closes #25006
2022-01-23 22:16:15 +01:00
Peter Keresztes Schmidt ad340466d0 Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs (#25054)
Related: #25006
(cherry picked from commit 85b5b842ca6c05d4e51081e6c3282940a80f3761)
2022-01-23 22:02:03 +01:00
Peter Keresztes Schmidt 253cbf5678 Scripts/Tempest Keep: Use std::chrono::duration overloads of EventMap (#25040)
Contributes to #25012

(cherry picked from commit 2d9c5979a6a6d9244f557ff5653694ce5b8f19a4)
2022-01-23 16:01:09 +01:00
Peter Keresztes Schmidt 5507aa2f5e Scripts/Coilfang Reservoir: Use std::chrono::duration overloads of EventMap (#25025)
Contributes to #25012

(cherry picked from commit 5ed6c6a5c348d601c6f144ca2b0df3e297dd2a69)
2022-01-23 15:48:08 +01:00
Peter Keresztes Schmidt 7f948a3e23 Scripts/Hellfire Citadel: Use std::chrono::duration overloads of EventMap (#25024)
Contributes to #25012

(cherry picked from commit d00c95f26f835e681bcadbb68a2476408948d64a)
2022-01-23 15:47:58 +01:00
Shauren e0256154b6 Scripts/Mana Tombs: Fix Pandemonious Dark Shell event delay
(cherry picked from commit 7e5cf40d4c776bc048f74b8323c435173394772f)
2022-01-23 15:47:38 +01:00
Peter Keresztes Schmidt 5c3b3d2225 Scripts/Auchindoun: Use std::chrono::duration overloads of EventMap (#25023)
Contributes to #25012

(cherry picked from commit 4ad80434a2efa046c4f4954221832714225b801d)
2022-01-23 15:47:16 +01:00
Peter Keresztes Schmidt 1a53ac17c8 Scripts/Outland: Use std::chrono::duration overloads of EventMap (#25022)
Contributes to #25012

(cherry picked from commit 39fc17e284bf2082d3b5a0c50dfd9e6cde64b582)
2022-01-23 15:47:00 +01:00
offl 306e08cc31 DB/Quest: Convert & update support for 'Scratches' to SAI
Closes #24824

(cherry picked from commit d526d5d1765a6468d9acb585b3e60c08352edf55)
2022-01-19 20:54:24 +01:00
offl 775c6ca039 DB/Quest: Convert & update support for 'City of Light' to SAI
Closes #24814

(cherry picked from commit f2c2210dbb88ffa3571344030d77f80c0a765591)
2022-01-18 23:45:00 +01:00
Rothend 77e1304a5a Script/Creature: script Terokk's encounter (#24871)
* Script/Creature: script Terokk's encounter.

Closes #2029

* Apply suggested changes.

* Fix nopch build.

* Rename 9999_99_99_99_world_terokk.sql to 2020_06_24_02_world.sql

* Update 2020_06_24_02_world.sql

Co-authored-by: Giacomo Pozzoni <[email protected]>
Co-authored-by: Eridium <[email protected]>
(cherry picked from commit 3227ed94bc7e8a6833fe67a2edb63debcca90a60)
2022-01-18 00:27:18 +01:00
Killyana 81d6cde257 Script: Remove npc_avatar_of_martyred converted to SAI
Ref https://github.com/TrinityCore/TrinityCore/commit/5924e038d648e2074191ffc322732e875d37c39c

(cherry picked from commit 75bc0f6771e6fe744123c1bb865469c585e1d31b)
2022-01-06 23:17:10 +01:00
Killyana fa47977c4a Creature/Scripts: Remove deprecated scripts
Ref https://github.com/TrinityCore/TrinityCore/commit/bd609caf09bc29f0b20ffad52118a46a8d884d02

(cherry picked from commit 8b5549c0f1bad44babece99f2323d9f6f877994e)
2022-01-06 22:32:24 +01:00
Peter Keresztes Schmidt c4098897a8 game/AI: Convert SelectAggroTarget to enum class (#24818)
* game/AI: Convert SelectAggroTarget to enum class

* game/AI: Rename SelectAggroTarget to SelectTargetMethod

(cherry picked from commit 418c3b1fd50664aad035bd975a65281e82ba2dea)
2022-01-06 21:53:27 +01:00
ForesterDev 3171cd3fa9 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

(cherry picked from commit e3b232fe0e5c21a87d3fe71813e9d750259823f1)
2022-01-06 20:46:25 +01:00
Keader 09f611e467 Scripts/BloodFurnace: Fixed Broggok stopping work after wipe
By: Rushor
(cherry picked from commit 00bc6e7d54e924dabaf4636a4b8084f0db067194)
2022-01-06 19:43:54 +01:00
offl c5274417bb DB/Quest: Convert & update support for 'Mark V is Alive!' to SAI
Closes #24686

(cherry picked from commit e48c4151560049a876418f69cd25153a259f50eb)
2022-01-06 19:15:15 +01:00
offl a7d03862dd DB/Quest: Convert & update support for 'When the Cows Come Home' to SAI
Closes #24685

(cherry picked from commit 1316ca482d1d20d03bbdfa5aa338955d96dd03bb)
2022-01-06 19:14:38 +01:00
Killyana 8571a22017 DB/Quest: Convert "HELP!" & "Corki's Gone Missing Again!" & "Cho'war the Pillager" to SAI
Closes #24649

(cherry picked from commit fd66e291b5595635411116b5b0946b476719a2ab)
2022-01-06 18:55:13 +01:00
jackpoz 9e0e52f023 Scripts/Misc: Fix issues reported by ASan
(cherry picked from commit 013301088d862f634cd5b817cb3949c58454f924)
2022-01-06 16:22:58 +01:00
offl 070da4f711 DB/Quest: Convert Escape from Umbrafen to SAI
Closes #24648

(cherry picked from commit cfe6b651bc38239de58d6a3f95e8897bfb7d1869)
2022-01-06 16:05:08 +01:00
offl a0bee07b0c DB/Quest: Convert & update support for 'Shizz Work' to SAI
Closes #24638

(cherry picked from commit 049cba3ace198ec74a2014e233b33aafbf749a53)
2022-01-06 00:21:07 +01:00
offl b217e5842f DB/Quest: Convert & update support for 'Finding the Survivors' to SAI
Closes #24636

(cherry picked from commit 2815db52a643bdfa397317b79d5b3f68995b343e)
2022-01-06 00:20:41 +01:00
offl 692163493c DB/Creature: Convert & update support for Ashyen & Keleth to SAI
Closes #24635

(cherry picked from commit a2068cade59a067f55d779735ba8bcf5c48f045f)
2022-01-06 00:20:02 +01:00
Keader c11288af78 Making travis happy
(cherry picked from commit ee218a564239cf02c43df41f7b9597d71b018ed5)
2022-01-01 20:16:05 +01:00
Keader a21ad2079a Scripts/Black Temple: Fixed Reliquary of Souls after combat rewrite changes.
Closes #23879
* Fixed combat start/evade issue
* Fixed visual issue in Soul Release spell
* Fixed some timers issue
* Fixed some codestyle issues

PS: Please, stop break my black temple babys.
(cherry picked from commit d8e726de586070d24bec3c43a9ae795cf5482be0)
2022-01-01 20:15:51 +01:00
skipperheartbeat 00f6631cd2 Boss/Script: Vazruden_Fix (#24197)
* Add files via upload

* Update boss_vazruden_the_herald.cpp

* Update boss_vazruden_the_herald.cpp

* Update boss_vazruden_the_herald.cpp

* Update boss_vazruden_the_herald.cpp

* Update boss_vazruden_the_herald.cpp

* Update boss_vazruden_the_herald.cpp

* Update boss_vazruden_the_herald.cpp

* Update boss_vazruden_the_herald.cpp

* Update boss_vazruden_the_herald.cpp

* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp

Co-Authored-By: Trond B. Krokli <[email protected]>

* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp

Co-Authored-By: Trond B. Krokli <[email protected]>

* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp

Co-Authored-By: Trond B. Krokli <[email protected]>

* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp

Co-Authored-By: Trond B. Krokli <[email protected]>

* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp

Co-Authored-By: Trond B. Krokli <[email protected]>

* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp

Co-Authored-By: Trond B. Krokli <[email protected]>

* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp

Co-Authored-By: Trond B. Krokli <[email protected]>

* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp

Co-Authored-By: offl <[email protected]>

* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp

Co-Authored-By: Trond B. Krokli <[email protected]>

* Update boss_vazruden_the_herald.cpp

* Update boss_vazruden_the_herald.cpp

* Update boss_vazruden_the_herald.cpp

Co-authored-by: Aokromes <[email protected]>
Co-authored-by: Trond B. Krokli <[email protected]>
Co-authored-by: Giacomo Pozzoni <[email protected]>
Co-authored-by: offl <[email protected]>
(cherry picked from commit 8ac83744293afe297bce2597107bc5da5445ccbb)
2022-01-01 20:01:46 +01:00
Gildor a477e85ae3 Scripts/Quest: The Exorcism of Colonel Jules (#24459)
* Remove Anchorite Barada gossip when event start

(cherry picked from commit 8a5b02be0a678ff4a9c589e3da05e96103f819fc)
2022-01-01 15:51:07 +01:00
Shauren 9f76071108 Core/Misc: Remove whitespace at the end of lines 2022-01-01 01:25:04 +01:00
Shauren 5d02739b98 Scripts: Fix rbac permission for skipping default boss sequencing check
(cherry picked from commit e660c8bc19198d9e2e912c5243498469f75b0ee6)
2021-12-20 21:40:47 +01:00
Keader 174f4bad3d Scripts/Blood Furnace: Fixed Broggok reset issues and some little improvements
Closes #23658

(cherry picked from commit 1bdc792559fbf4fa713fce40cdcf012e63fdc741)
2021-12-20 20:18:55 +01:00
Eridium c96157cb95 Boss/Script: Fix Mechano-Lord Capacitus's Nether Charges (#23976)
* Boss/Script: Fix Mechano-Lord Capacitus's Nether Charges

Closes #23973

* Update boss_mechano_lord_capacitus.cpp

* Update boss_mechano_lord_capacitus.cpp

* Update boss_mechano_lord_capacitus.cpp

* Rename 2019_12_99_99_world.sql to 2019_12_19_00_world.sql

(cherry picked from commit efcbfa5c24b32fe7bc7015a953f0926e375a6a6b)
2021-12-19 12:34:32 +01:00
jackpoz d5d04a6c55 Core/Misc: Fix C++17 build errors
(cherry picked from commit 30823f9b79b4ad16f96e90692a900f68a7f63c0a)
2021-12-18 22:51:50 +01:00
Keader 5d2b37634b Scripts/Tempest Keep: Fixed a typo in Nethermancer Sepethrea
Closes #23828
Ty Rizztazz

(cherry picked from commit 746a1d89b34984f31ab66ef00e93a648dc42af5d)
2021-12-18 22:24:21 +01:00
Artamedes e4607725dd Scripts/Outland: Change auto to TempSummon* (#23764)
(cherry picked from commit 1b095811b82e7bf390e3a3e522e768fc2b42d2b0)
2021-12-18 21:37:15 +01:00
Artamedes 913f0903a3 Scripts/Outland: Fix npc_ancestral_wolf not starting waypoint (#23763)
* Scripts/Outlands: Fix npc_ancestral_wolf not starting waypoint, and also add a way to not follow owner automatically in CreatureAI::JustAppeared() for tempsummons

* fix nopch

(cherry picked from commit 0b3a9e2a2b2537e7224d103947ad6028c6d2e5fe)
2021-12-18 21:37:02 +01:00
Giacomo Pozzoni 77eaa2c1ac Scripts/Blood Furnace: Fix infinite loop in Broggok encounter
Fix infinite loop in Broggok encounter caused by https://github.com/TrinityCore/TrinityCore/pull/23300

(cherry picked from commit 30a4aca266be7cc065abb6f8ef79c3a3af2f5836)
2021-12-17 21:52:33 +01:00
ForesterDev 529ca2dd5d Scripts/Defines: cleanup some magic numbers in factions (#23631)
(cherry picked from commit 0c317498a57b3983de61d381d684a77176b281e4)
2021-12-17 20:48:31 +01:00