Commit Graph

521 Commits

Author SHA1 Message Date
Andrew
a11434b24f refactor(Core/GameObject): Move the GameObject state save handling to… (#18080)
* refactor(Core/GameObject): Move the GameObject state save handling to instance level

* Update GameObject.h

* remove leftover

* small improvements
2024-01-01 01:51:33 -03:00
Alexandru-Mihai Maftei
ebe89b875f fix(Scripts/ScarletMonastery): Prevent Whitemane from dying before resurrecting Mograine (#18082)
The current code only prevents Whitemane from dying before casting sleep, but the players can inflict enough DPS on her before that, that she can die before resurrecting Mograine.
When this happens, the dungeon is broken and cannot progress.
2023-12-30 12:47:02 -03:00
IntelligentQuantum
6a6cefb512 chore(Scripts/EK): remove useless includes (#18075)
* chore(Scripts/Kalimdor): remove useless includes

* chore(Scripts/EK): remove useless includes
2023-12-28 16:15:16 -03:00
Andrew
0ad882338c chore(Scripts): Remove placeholder Ironforge/AlteracMountains files (#18047) 2023-12-24 08:09:07 -03:00
Amnney
af03611faf fix(Scripts/Karazhan): fixing the Aran drink routine and reset behavior (#17849)
* fix(Scripts/Karazhan) Fixed drinking behavior

* fix(Scripts/Karazhan) Cleanup comments

* fix(Scripts/Karazhan) Cleanup whitespace
2023-12-10 12:48:43 -03:00
Andrew
755d439896 fix(Scripts/AlteracValley): Balinda Stoneheart (#17933)
* fix(Scripts/AlteracValley): Balinda Stoneheart

- Convert to taskscheduler
- Use proper spell to summon elemental
- Move elemental to SAI
- Now uses Iceblock

partial cherry pick of 93a01b6d50
2023-12-03 10:35:44 -03:00
Winfidonarleyan
eb1ecc38a5 feat(Core/Scripting): move all script objects to separated files (#17860)
* feat(Core/Scripts): move all script objects to separated files

* Apply 5bfeabde81

* try gcc build

* again
2023-12-02 21:13:20 +01:00
Andrew
4552e89bfd refactor(Scripts/MagisterTerrace): Update Vexallus script (#17892)
* refactor(Scripts/MagisterTerrace): Update Vexallus script

* Update src/server/scripts/EasternKingdoms/MagistersTerrace/boss_vexallus.cpp
2023-11-29 20:34:11 +01:00
Gultask
abf85fb44f fix(Scripts/Quest): Correct respawn logic for Isla Starmane and Rin'ji (#17874)
* Create rev_1694739263824086500.sql

* init

* 2
2023-11-27 00:04:47 +01:00
Winfidonarleyan
e90d7a2f92 chore(Core/Misc): sort includes (#17776)
* chore(Cleanup): sort includes

* fix build

* fix build again
2023-11-18 17:51:26 +01:00
KJack
05e530317a refactor(Scripts/AI) ZG20: Venoxis (Snake Boss) modernization (#17699)
* npc_razzashi_cobra_venoxis: modernize

* ZG/Venoxis : npc_razzashi_cobra_venoxis

* ZG20/Venoxis - modernize AI

* Reimplement cobras with SAI and DB edits
2023-11-16 21:42:11 +01:00
KJack
bc18526ee7 refactor(Scripts/AI) ZG20: Mar'li (Spider Boss) modernization (#17715)
ZG/Marli modernized
2023-11-16 19:24:11 +01:00
Andrew
81bd9b7ba4 fix(Scripts/Karazhan): Fix chess and optional boss not saving players (#17729) 2023-11-16 19:01:03 +01:00
Andrew
0d8b1d4942 refactor(Scripts/Karazhan): Move Malchezaar door handling to the inst… (#17730) 2023-11-16 14:00:19 -03:00
Andrew
c605a48f98 refactor(Scripts/Stormwind): Move Bartleby script to SAI (#17731) 2023-11-16 13:59:03 -03:00
Andrew
8fbed6c30e refactor(Scripts/MagistersTerrace): Update scripts to new register model (#17725) 2023-11-15 21:04:14 -03:00
Andrew
a0f66edcec fix(Scripts/Karazhan): Fix being able to interact with Nightbane's doors (#17713)
fix(Scripts/Karazhan): Fix being able to interact with NIghtbane's doors
2023-11-15 13:35:32 +01:00
Andrew
c4722de46a fix(Scripts/Karazhan): Fix Temptation target (#17710) 2023-11-14 20:09:25 -03:00
Andrew
a19613df86 fix(Scripts/Karazhan): Use actual spell interruption timers to handle… (#17709)
fix(Scripts/Karazhan): Use actual spell interruption timers to handle basic ability cast
2023-11-14 18:50:45 -03:00
Andrew
d9e12f7a46 fix(Scripts/Karazhan): Implement Aran's Atiesh interaction (#17692) 2023-11-14 14:49:05 -03:00
KJack
3d20f8902b feat(Core/Instance): InstanceScript: create Remove functions (#17702)
InstanceScript: create `Remove` helper functions
2023-11-14 08:13:28 -03:00
KJack
4fabaee597 fix(Scripts/ZulGurub): Jeklik (Bat Boss) - fix double-run scheduler (#17693)
* Don't double-run scheduler. Only run out of combat when needed.

* Comment clarification

* Rename variable

* Replace janky scheduling with `DespawnOnEvade()`
2023-11-13 03:42:16 -03:00
Andrew
bbedb91e2c fix(Scripts/Karazhan): Implement Nightbane summon emote and despawn on evade (#17690)
* fix(Scripts/Karazhan): Implement summon emote and despawn on evade

* missing flag
2023-11-13 01:39:14 -03:00
KJack
3c8adc71cd (Scripts/AI) ZG20: Jeklik (Bat Boss) - Implement Bat Riders, other fixes and improvements (#17573)
---------

Co-authored-by: AG <43139552+AGandrup@users.noreply.github.com>
2023-11-12 09:35:35 +01:00
Kitzunu
bbadc32bea Revert Visibility Notifier changes (#17682)
* Revert "fix(Core/Grid): Implement missing GridUnload setting (#17569)"

This reverts commit 79b39f9655.

* Revert "fix(Core/Grid): Address bugs and performance issues introduced by visibility notifier implementation (#17480)"

This reverts commit 60e27511c5.

* Revert "fix(Core): GridCleanUpDelay Log (#17436)"

This reverts commit 90b16ca065.

* Revert "feat(Core/Grids): Implement visibility notifier (#15919)"

This reverts commit 2779833768.
2023-11-12 00:48:49 +01:00
KJack
896e7c5656 (Scripts/AI) ZG20: Improvements to Thekal (Tiger Boss) (#17603)
Co-authored-by: AG <43139552+AGandrup@users.noreply.github.com>
2023-11-11 08:13:43 +01:00
Kitzunu
f757e93da5 refactor(Core/Misc): Make DeathState enum class (#17607) 2023-10-28 10:54:03 +02:00
Andrew
3dcbe649dd fix(Scripts/Karazhan): Fix Flame Wreath affecting pets (#17581) 2023-10-25 19:01:15 -03:00
AG
60e27511c5 fix(Core/Grid): Address bugs and performance issues introduced by visibility notifier implementation (#17480)
* Bug fixes

- Corrected std::chrono from seconds to milliseconds
- Got rid of leftover code that caused objects to not show up on time

* Removed logic to set gameobject as active

- More alignement with TC.
- Reduces CPU usage drastically

* Revert back to using time_t instead of std chrono

* Invoke SetNoCreate() method to reduce CPU usage drastically

* Remove setActive from static and motion transports

* Fix performance issues

* Added SetFarVisible to WG and some dungeon scripts

- Also removed setActive(true) from creatures in Wintergrasp. As for gameobjects they are set to active upon being damaged/destroyed and removed from active on rebuild (reset)

* Removed comments related to VISIBILITY_COMPENSATION

* Fix log

* Deleted unused files + corrected a check

* Added missing header

* Removed unused parameter

* Removed another unsued parameter

* Changed vector to set for i_visibleNow

- Changed vector to set for i_visibleNow in VisibleNotifer
- Adjusted HaveAtClient to accept Object*
- Adjusted SendUpdateToPlayer to send createobject packet only if not known to client
2023-10-23 05:37:11 -03:00
Andrew
a56a224bd7 fix(Scripts/Karazhan): Update Aran with the new OnPowerUpdate() hook (#17561) 2023-10-23 05:28:29 -03:00
Andrew
4e41a02be2 fix(Scripts/Karazhan): Implement the side entrance door area trigger … (#17556)
fix(Scripts/Karazhan): Implement the side entrance door area trigger handling
2023-10-21 22:52:07 -03:00
Andrew
c5ac4789d8 fix(Scripts/Karazhan): Opera left door should stay open in case of wipe (#17553) 2023-10-21 21:59:18 -03:00
Andrew
a3d728f791 fix(Scripts/Karazhan): Script Aran's Flame Wreath ability (#17551) 2023-10-21 21:08:12 -03:00
daobashun
d9d500923a fix(DB/SAI): Move the Ashbringer event AI of the Bloody Monastery mob to Smartai (#17078)
* Move scarlet_guard's Ashbringer event to smartAI

* Remove the code from the script

* Delete the commented out code

* Modify the distance of the "Scarlet Wizard" Cast Arcane Explosion

* Fix errors

* Update rev_1692891765582381000.sql

* Update rev_1692891765582381000.sql

* Remove duplicate statements

* Remove duplicate statements
2023-10-22 02:03:50 +02:00
avarishd
62ef0db09f fix(Scripts/Karazhan): Side Enterance Door check (#17493) 2023-10-12 11:19:21 -03:00
avarishd
e08de5f073 fix(DB/Creature): Hex Lord Malacrass missing weapon (#17475)
fix(DB/Creature): Hex Lord Malacrass wrong equipment

https: //github.com/TrinityCore/TrinityCore/commit/5856f520bbd8dded42f7742277839587b0645dde

Co-authored-by: Eridium <6587064+Killyana@users.noreply.github.com>
2023-10-10 10:23:27 -03:00
Andrew
7f36c5f059 fix(Scripts/Karazhan): Replace Big Bad Wolf chase mechanic with prope… (#17458)
fix(Scripts/Karazhan): Replace Big Bad Wolf chase mechanic with proper taunt spell
2023-10-08 17:19:48 -03:00
Dan
71312323a1 fix(Scripts/Karazhan): Nightbane clean-up script (#17446)
initial hackfix
2023-10-08 17:14:45 -03:00
Skjalf
c17a6c0a0e fix(Scripts/Karazhan): Fix Dorothee yell once Tito dies and clean up … (#17395)
* fix(Scripts/Karazhan): Fix Dorothee yell once Tito dies and clean up script

* fix dorothee interrupt immunity
2023-10-01 02:24:11 -03:00
Skjalf
9b403e0d10 fix(Scripts/Karazhan): Fix Curator arcane immunity (#17397)
* fix(Scripts/Karazhan): Fix Curator arcane immunity

* Update boss_curator.cpp

* Update boss_curator.cpp
2023-09-30 23:16:45 -03:00
Skjalf
7de2405604 fix(Scripts/Karazhan): Several Aran fixes (#17394)
- Fix drinking being interrupted by dots
- Fix first super timer
- Fix missing Arcane Explosion emote
- Fix supers being locked by spell interrupt
- Correct drinking to 10% mana down from 20%
2023-09-30 22:13:49 -03:00
Skjalf
f583dbe98c fix(Scripts/Karazhan): Restore Netherspite DestroyPortals() function (#17392) 2023-09-30 15:34:18 -03:00
Skjalf
52c7edaa5c fix(Scripts/Karazhan): Clear Netherspite portal targets on transition (#17377) 2023-09-28 07:38:29 +02:00
Skjalf
57841f7213 fix(Scripts/Karazhan): Update Aran script to use boss states (#17376) 2023-09-27 19:39:17 -03:00
Dan
f44e658342 fix(Scripts/Karazhan): allow Aran to cast pyroblast also when interrupted (#17375)
* initial

* add scheduling
2023-09-27 19:31:08 -03:00
Skjalf
ae99ce586a fix(Scripts/Karazhan): Fix Aran combat movement behavior (#17359)
* fix(Scripts/Karazhan): Fix Aran combat movement behavior

* Update SmartScript.cpp
2023-09-26 18:27:23 -03:00
Tereneckla
c05acf4f96 fix(Script/Karazhan): Netherspite resets threat after portal phase (#17362)
* Update boss_netherspite.cpp

* Update boss_netherspite.cpp

* Update boss_netherspite.cpp
2023-09-26 18:15:18 -03:00
Skjalf
3c698f86af fix(DB/Text): Add missing Netherspite text emotes (#17335)
* fix(DB/Text): Add missing Netherspite text emotes

* fix emote order

* Update boss_netherspite.cpp
2023-09-25 08:04:15 -03:00
Skjalf
4a0b879ee3 fix(Scripts/Karazhan): Fix Shade of Aran Blizzard and use proper spel… (#17329)
* fix(Scripts/Karazhan): Fix Shade of Aran Blizzard and use proper spells to summon elementals

* Update boss_shade_of_aran.cpp

* Update boss_shade_of_aran.cpp

* Update rev_1695546719351253200.sql

* missing sql
2023-09-25 06:41:21 -03:00
Skjalf
84d4d60cfc fix(Scripts/Karazhan): Fix Julliane awarding no loot (#17334)
* fix(Scripts/Karazhan): Fix Julliene awarding no loot

* Update bosses_opera.cpp
2023-09-25 06:38:01 -03:00