Commit Graph

1160 Commits

Author SHA1 Message Date
Giacomo Pozzoni
7c97fa4449 Scripts/Misc: Fix build warnings
(cherry picked from commit 37ffdc05b2)
2021-12-19 23:31:30 +01:00
Killyana
71e474e14f DB/Spawns: Remove "Hand of the Deceiver" spawns as summoned by a script
(cherry picked from commit 434cdb1fa0)
2021-12-19 23:27:12 +01:00
Killyana
3f3abe9ad0 Creature/Script: Add text target for npc_shadowfang_prisoner
(cherry picked from commit 10ba39e626)
2021-12-19 19:49:52 +01:00
Ovah
04ed6e292c Scripts/ScarletEnclave: reworked Eye of Acherus script (#23953)
* updated script model to new standard
* corrected spell usage and timers based on sniff data
* removed hacks

(cherry picked from commit 60763fc5e2)
2021-12-19 01:05:59 +01:00
ccrs
6443116d5b Scripts/ScarletMonastery: instance script cleanup (#23889)
Adapt InstanceScript into newer structure and style
Adapt existing boss scripts into newer structure and style
Improve existing boss related definitions

Should make each boss more functionally reliable, but nothing new has been added

(cherry picked from commit 06c6b30ed4)
2021-12-18 23:36:17 +01:00
jackpoz
d5d04a6c55 Core/Misc: Fix C++17 build errors
(cherry picked from commit 30823f9b79)
2021-12-18 22:51:50 +01:00
ForesterDev
4a47e1c6be Core/Defines: define UNIT_FLAG_SWIMMING (#23630)
(cherry picked from commit c03c88d0c0)
2021-12-18 22:50:52 +01:00
Artamedes
0b43b43566 Scripts/ScarletMonastery: Rewrite Mograine and Whitemane encounter (#23761)
* Scripts/ScarletMonastery: Rewrite Mograine and Whitemane encounter

* qq

* qq 2

* tryfix circleci build

* review suggestions

(cherry picked from commit 832c95fa4f)
2021-12-18 21:41:10 +01:00
Sorikoff
cd0fb6edbf Scripts/Blackrock Depths: Use DB Texts for Doom'rel (#23681)
* Scripts/Blackrock Depths: Use DB Texts for Doom'rel

* Quick Fix

(cherry picked from commit 33807a065a)
2021-12-18 15:36:00 +01:00
Sorikoff
1fd0ba816f Scripts/Spells: Devour Humanoid (#23660)
(cherry picked from commit 0d53a0ba98)
2021-12-18 00:01:56 +01:00
ForesterDev
529ca2dd5d Scripts/Defines: cleanup some magic numbers in factions (#23631)
(cherry picked from commit 0c317498a5)
2021-12-17 20:48:31 +01:00
Wyrserth
f6df334bb6 Script/ScarletEnclave: remove Eye of Acherus control and speed auras from player when the Eye of Acherus is dismissed.
(cherry picked from commit bf8741c53d)
2021-12-17 00:29:59 +01:00
Treeston
c13d83796f Core/AI: Finally move the "is creature engaged" flag to be a property of the creature AI, where it honestly always belonged. Fixes #17981 and #23602 for real this time.
(cherry picked from commit 0e7c66cb4c)
2021-12-17 00:23:33 +01:00
ccrs
49bc6533fd Scripts/ScarletEnclave: 4ee84bb followup
(cherry picked from commit 81475f709f)
2021-12-16 00:11:25 +01:00
ccrs
8c35206bb5 Scripts/ScarletEnclave: 4ee84bb followup
(cherry picked from commit fa9a4ee20d)
2021-12-16 00:10:25 +01:00
Wyrserth
3bb61af113 Script/ScarletEnclave: use spline movement for the lauch phase of the Eye of Acherus.
Closes #22802.

(cherry picked from commit 4ee84bbecb)
2021-12-15 23:39:51 +01:00
Wyrserth
756325bc84 Script/BlackrockDepths: randomize timers for Ironhand Guardian's spell Gout of Flame.
(cherry picked from commit 6ef1b3e6c6)
2021-12-14 22:02:52 +01:00
Martin Topholm
dc0728b9a0 Script/BlackrockDepths: fix Ironhand Guardian's Gout of Flame spell cast. (#21816)
(cherry picked from commit 4529a94e0d)
2021-12-14 21:19:01 +01:00
ccrs
4e6c59dca7 Core/Unit: rename several getters to follow codestyle
uint8 GetLevel()
        uint8 GetLevelForTarget(WorldObject const* /*target*/)
        void SetLevel(uint8 lvl)
        uint8 GetRace()
        uint32 GetRaceMask()
        uint8 GetClass()
        uint32 GetClassMask()
        uint8 GetGender()

(cherry picked from commit 5c09ff51f7)
2021-12-13 00:42:20 +01:00
Shauren
116285818b Core/Misc: Corrected file headers 2021-12-13 00:42:19 +01:00
ccrs
70fd6e7398 Core/Instances: improve DoRemoveAurasDueToSpellOnPlayers & DoCastSpellOnPlayers handling
(cherry picked from commit 22b3b21ae3)
2021-12-13 00:42:18 +01:00
Shauren
9951b53808 Core/Misc: Fixed some gcc warnings 2021-12-12 19:19:15 +01:00
Treeston
38d7c1530a Combat/Threat: Split ThreatManager::NotifyDisengaged off from ThreatManager::ClearAllThreat. NotifyDisengaged signifies intent to clear the engagement flag, and should only be called from AI. Fixes #23490.
(cherry picked from commit 1158f267df)
2021-12-12 02:09:15 +01:00
Sorikoff
799fba7fd1 Scripts/Spells: Portal to Orgrimmar & Portal to Stormwind (#23463)
* Scripts/Spells: Portal to Orgrimmar & Portal to Stormwind

* Revert "Scripts/Spells: Portal to Orgrimmar & Portal to Stormwind"

This reverts commit a8055960

* Revert "Revert "Scripts/Spells: Portal to Orgrimmar & Portal to Stormwind""

This reverts commit a5be792b

* Fix NoPCH

* Clean up

* Clean up

* fixup! Clean up

* Caster -> Target

* Rename 9999_99_99_99_world.sql to 2019_06_22_01_world.sql

(cherry picked from commit ac7c72d633)
2021-12-11 23:01:46 +01:00
Sorikoff
c8d0e0fd6d Scripts/Isle of Quel'Danas: Thalorien Dawnseeker (#23382)
* Scripts/Isle of Quel'Danas: Thalorien Dawnseeker

* Kill warning

* Kill warning

* Fixes

* Code style

* Code style

* Accident

* Prevent Out of Bound & spelling

(cherry picked from commit e87f8b1aac)
2021-12-11 14:51:31 +01:00
ccrs
41dba7c456 Scripts/ZulGurub: general instance related refactoring/updating
plus couple event-spells-ai related corrections
plus codestyle cleanup

(cherry picked from commit 7b2defe5a0)
2021-12-10 22:45:42 +01:00
Nitair
f6048aca9a Scripts/Stratholme: Baron Rivendare rewrite (#22572)
* Adding last state of rivendare rewrite

* Fix aura beeing removed on reset, fix death pact

* Not needed

* SQL: Changed remove/inset into update, fixed delete at conditions part

* Typo

* Remove link spell, fix blank lines, change magic numbers to enum

* Test changes with SpellScript and DoCastSelf

* Revert SpellScript and moved DoCastSelf for the aura into UpdateAI part

* Damn, copyright.

* Fix Unholy Aura

* Fix again (does attack now / does cast if encounter resets)

* Adding handling of the aura to the db

* Rename 2018_99_99_99_world_335.sql to 2019_05_31_02_world_335.sql

(cherry picked from commit ee5101fbf7)
2021-12-09 00:24:26 +01:00
Giacomo Pozzoni
5f545f5402 3.3.5 gameobject summoner (#23289)
* Scripts/Misc: Change IsSummonedBy(Unit*) to IsSummonedBy(WorldObject*)

* Scripts/Misc: Fix build

* Core/TempSummons: Rename GetSummoner() to GetSummonerUnit()

* Core/TempSummons: Add support to TempSummons::GetSummoner() to return GameObject too

* Fix build

* Core/TempSummons: Allow GameObject to be owner of TempSummon

* Core/TempSummons: Add support to SAI for GameObject owner of TempSummon

* Scripts/Misc: Fix no-pch build

* Core/TempSummons: Implement PR comments

(cherry picked from commit 797fba98e9)
2021-12-07 00:02:03 +01:00
Sorikoff
8f0afc81da Scripts/Scarlet Enclave: Unworthy Initiate (#23195)
(cherry picked from commit 4468a538ff)
2021-12-02 00:38:42 +01:00
Sorikoff
d72e809ecf Scripts/Spells: Migrate Some Scripted Spells to Scripts (#23185)
* Migrate spells to scripts

* Simplify code

* I need to sleep

* Update chapter1.cpp

* Use actual damage

* No need in null check here

(cherry picked from commit 2cfaeb1400)
2021-11-30 22:30:53 +01:00
Sorikoff
956158d299 Core/Movement: Allow using walk when chasing v2 (#23073)
* Allow walk when chasing

(cherry picked from commit dbadb6369c)
2021-11-24 20:34:54 +01:00
Sorikoff
b3f75852c2 Allow walk when chasing (#23069)
(cherry picked from commit c2f2db08aa)
2021-11-24 00:02:13 +01:00
Ovah
2dda5fb477 Scripts/MGT: Kael'thas intro can now be skipped when not killing the trash pack in his room
Scripts/MGT: Kael'thas will now despawn at evade

Cherry picked from
f6e9ff5ca4
ed8c1830f5

(cherry picked from commit c10c8c6bba)
2021-11-23 23:17:08 +01:00
Sorikoff
ee0662ca3d Scripts/Scarlet Enclave: Stable Master Kitrik's spell Repo (#23023)
(cherry picked from commit f0f4d0280d)
2021-11-23 23:04:34 +01:00
Shauren
c14cf5a892 Core/Misc: Added lambda support to EventProcessor
Closes #22909

(cherry picked from commit 813f693768)
2021-11-23 23:01:47 +01:00
Sorikoff
fc9106054b Scripts/Scarlet Enclave: Grand Theft Palomino (#22967)
* Grand Theft Palomino

* Cosmetic issues

* Address CR

(cherry picked from commit d5f565f429)
2021-11-23 21:28:03 +01:00
Keader
084491669e Scripts/Magister Terrace: Fixed a enum mistake
(cherry picked from commit 33b0654f8e)
2021-11-23 00:40:07 +01:00
Keader
cfd0e18b81 Core/Misc: Fixed shaman elementals and magister terrace first boss access
(cherry picked from commit 6545cd33b9)
2021-11-23 00:39:59 +01:00
Ovah
3027458338 Scripts/Magister Terrace: Update InstanceScript and more fixes
Cherrypicked of https://github.com/Ovahlord/TrinityCore/commits/4.3.4

(cherry picked from commit 1b346485e4)
2021-11-23 00:39:13 +01:00
Ovah
3847d7b277 Scripts/Magister Terrace: Felblood Kaelthas rewrite
Cherrypick of ae440400aa

(cherry picked from commit 00958c9178)
2021-11-23 00:21:42 +01:00
Killyana
f497534b15 DB/Creature: Update Lord Victor Nefarius gossips with the correct entry
Closes #22946
2021-11-21 19:45:48 +01:00
Killyana
c375208e5b Rename spell correctly
(cherry picked from commit 4c53dd930e)
2021-11-21 13:30:00 +01:00
Killyana
0b1c3d3544 Creature/Script: Add missing abilities for Ghostly Citizen and Spectral Citizen
Closes #22662

(cherry picked from commit 21030d0cd0)
2021-11-21 13:29:37 +01:00
PolarCookie
fa07f74db2 Spell/Script: Scourge Disguise and Haunting Phantoms (#22727)
(cherry picked from commit 66720e5fd9)
2021-11-16 22:00:58 +01:00
Trond B. Krokli
b63fe46e0e Scripts/Blackrock Depths: npc_grimstone Event_Timer improvements (#22663)
High Justice Grimstone's movement script timers improvement in Ring of the Law.

case 6 & case 7 modifications:
- Event_Timer = 5000; // originally 0

Closes #20499 (High Justice Grimstone issue)

(cherry picked from commit 48eba61e90)
2021-11-15 14:01:49 +01:00
Killyana
07bba72fe7 DB/Gossip: Update Vaelastrasz gossip menu with the correct ID
(cherry picked from commit d10e42c049)
2021-11-15 01:41:29 +01:00
Trond B. Krokli
eb42538d6e Scripts/Sunken Temple: normalize Atal'alarion despawn timer (#22546)
* Atal'Alarion will now despawn as a regular Elite mob
  (5 minutes unlooted or 2.5 minutes when fully looted)
  instead of 7200 (ms) (7.2 seconds) before this change.

Closes #22531

(cherry picked from commit d24b461396)
2021-11-12 00:16:30 +01:00
jackpoz
c4cb1748ca Scripts/BlackrockSpire: Fix infinite loop in Gyth fight
Fix infinite loop in Gyth fight and double event caused by Rend Blackhand being respawned.
Please note this event is completely bugged and unfinished and contains for sure more bugs.

(cherry picked from commit af3449e064)
2021-11-11 21:40:03 +01:00
Sarah Alexander
973f9174e7 Scripts/MoltenCore: Implement Garr's Firesworn Separation Anxiety mec… (#22477)
- The previous (wrong) spell ID used mana, so it was never cast because Firesworns aren't mana users

(cherry picked from commit 001dd32b5c)
2021-11-10 00:18:22 +01:00
Shauren
f2456ff319 Scripts/Areatriggers: Fixed all areatrigger scripts triggering both on enter and exit instead of only on enter 2021-11-10 00:01:50 +01:00