Commit Graph

468 Commits

Author SHA1 Message Date
天鹭
058f7acac6 refactor(Core): AddEventAtOffset (#23140) 2025-10-17 06:09:57 +02:00
killerwife
10d5a3c553 fix(Core/Unit): rework Walk/Run mode (#22988)
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-14 17:54:19 -03:00
天鹭
53238a68d3 refactor(Core): DespawnOrUnsummon (#23141) 2025-10-13 03:36:23 -03:00
天鹭
8e2e30328f refactor(Core): Make ObjectGuid const (#23170)
* cherry-pick commit (a7883380ce)

Co-Authored-By: Lucas Nascimento <keader.android@gmail.com>
2025-10-12 23:13:12 -03:00
天鹭
9c49349e1e refactor(Core/EventMap): Refactor EventMap and related scripts (#23121)
Co-authored-by: Kelno <3866946+kelno@users.noreply.github.com>
Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com>
2025-10-12 22:19:24 -03:00
blinkysc
c3c28e0d8b fix(Script/BloodmystIsle): Tel'athion the Impure will no longer spawn from webbed creature (#22898) 2025-10-12 13:54:52 +02:00
Rocco Silipo
a14fe1c4de fix(DB/SAI): Move Rizzle Sprysprocket event to smartscript. (#23167) 2025-10-11 13:41:14 -03:00
Andrew
939dae3119 fix(Scripts/CoS): Fix chest despawning when player leaves map (#23112) 2025-10-07 09:37:40 +02:00
Takenbacon
73317b2706 feat(Core/Grids): Remove WorldObject separation in grid containers (#22595) 2025-08-09 06:36:24 +02:00
Andrew
dad67f9bb0 fix(Scripts/CullingOfStratholme): Prevent Arthas from despawning (#22570) 2025-07-26 16:42:49 -03:00
attacksnack
506722ee88 fix(Scripts/Kalimdor): Fix hardcoded gossip in zone_felwood (#21931)
Co-authored-by: Christopher Höllriegl <buddiman@users.noreply.github.com>
2025-07-15 07:01:52 +02:00
Benjamin Jackson
b73bdb3adc chore(Core): Remove unused and inaccurate comment headers for various script-related files. (#22263) 2025-06-05 15:49:20 -03:00
Tereneckla
fe2d1150b3 fix(Core/LFG): Lock Deathknights from the dungeonfinder until they complete their starting zone (#22270) 2025-06-05 11:43:35 -03:00
avarishd
f40954ab42 fix(Scripts/Desolace): Kodo Roundup (#22052)
Quest: Kodo Roundup now can be completed.
2025-05-10 18:30:32 +01:00
Benjamin Jackson
52799d76f6 refactor(Core): Add definition file for area table entries. (#22054) 2025-05-09 15:48:02 +02:00
Tereneckla
a8b982dca8 refactor(Core/AI) don't add currentTarget to the front of the SelectTargetList for MaxThreat/Random (#21965) 2025-05-05 20:17:10 +01:00
avarishd
b3735c9d5c fix(Scripts/CoS): First trio transforming on low HP (#22055)
Culling of Stratholme after defeating Salramm the Fleshcrafter the following npcs will now have their health at max:
- Infinite Adversary
- Infinite Hunter
- Infinite Agent
2025-05-05 00:12:00 +01:00
Benjamin Jackson
da55f05cfc refactor(Core/WorldState): Initial addition of world state definition file. (#21875)
Many world states had their enums from script's header and hardcoded values to their respective header file (WorldStateDefines.h)
Co-authored-by: Jelle Meeus <sogladev@gmail.com>
2025-04-26 19:31:30 +01:00
Exitare
451750eb04 fix(Scripts/Hyjal): Fix hyjal trash (#21194)
Co-authored-by: Exitare <Exitare@users.noreply.github.com>
Co-authored-by: Ludwig <sudlud@users.noreply.github.com>
2025-03-10 22:10:43 +01:00
Jelle Meeus
4c4b04f07b refactor(Core/Packet): use WorldPackets::WorldState::InitWorldStates definition (#20475)
Co-authored-by: ccrs <ccrs@users.noreply.github.com>
2025-02-19 07:55:09 -03:00
Jelle Meeus
a05833eeed fix(Core/Common): Container fixes use after free (#21460) 2025-02-15 22:22:30 +01:00
Takenbacon
ee69a569c4 fix(Core/Grids): Grid improvements (#20955) 2025-02-14 22:11:27 +01:00
Kitzunu
17412174be feat(Core/SAI): implement SMART_ACTION_DISABLE_REWARD (#21105) 2025-02-01 22:49:41 +01:00
Kitzunu
bff594c4f5 feat(Unit/Misc): HasAnyAuras() HasAllAuras() HasAuras() (#21040) 2024-12-26 05:51:54 -03:00
Exitare
9c01bbbd6e fix(Scripts/Hyjal) First wave should not grant reputation (#21004) 2024-12-23 12:08:39 +01:00
Francesco Borzì
b2ddd10369 refactor(src/server/scripts): remove unused imports (#20540) 2024-11-13 06:35:15 +01:00
avarishd
6c69bd5b53 fix(Scripts/AQ20): Set General Rajaxx's Thundercrash to min 100 dmg (#20461) 2024-11-06 12:00:57 -03:00
avarishd
7ad00f9633 fix(Scripts/Kalimdor): Prophecy of Akida not giving group credit (#20437)
* fix(Scripts/Kalimdor): Prophecy of Akida not giving group credit

* {}

* {} attempt 2

* RewardPlayerAndGroupAtEvent
2024-11-04 14:03:26 -03:00
Jelle Meeus
94ba32e709 fix(Scripts/Kalimdor): Cavern of Time custodian escort quest group completion (#20355)
* cast quest credit on group members

* refactor group event

* Revert "refactor group event"

This reverts commit 36dff97740ac1e63c8f323a4dbea5bd92a73031d.
2024-11-02 07:13:30 -03:00
Francesco Borzì
4dcaee1816 refactor(src/common|server): remove unused import (big part 2) (#20388) 2024-11-01 08:42:31 +01:00
Francesco Borzì
c06cadfe75 refactor(src/common|server): remove unused import (big part 1) (#20377)
* refactor(src/common|server): remove unused import (big part 1)

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: attempt to fix damn linkin error
2024-10-31 21:46:11 +01:00
Francesco Borzì
cb7e28df05 refactor(src/server/game/*): remove unused imports (big part 1) (#20310) 2024-10-27 10:25:40 +01:00
Kitzunu
386aea03ee chore(Core/Misc): Some cleanup (#19970)
* remove weird blanks

* update if

* ) ) to ))

* missed some ) )

* now switch

* .
2024-09-21 19:34:31 +02:00
Benjamin Jackson
1edac37ac3 refactor(Core): Make more use of helpers. (#19835)
* Init.

* Reword.

* Update codestyle script.

Co-Authored-By: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Add gameobject type ID check, reorder checks.

* Add helper/codestyle check for unit type.

* `IsUnit()` -> `IsCreature()`

* Add `IsUnit()` method.

* Use type mask.

https: //github.com/TrinityCore/TrinityCore/commit/cc71da35b5dc74abf71f8691161525a23d870bb5
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-Authored-By: Ovahlord <18347559+Ovahlord@users.noreply.github.com>

* Replace instances of `isType` with `IsUnit`.

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-authored-by: Ovahlord <18347559+Ovahlord@users.noreply.github.com>
2024-09-03 14:41:31 -03:00
Grimdhex
221dbd3fdb chore(Apps/Codestyle): add new codestyle checks for pointers and range loops (#19841)
* chore(Apps/Codestyle): add new codestyle checks for pointers and range loops

* revert a typo
2024-09-03 13:02:38 -03:00
Andrew
9ce2b23df3 refactor(Scripts/RuinsOfAhnQiraj): Clean up Ayamiss script (#19742) 2024-08-26 10:04:11 -03:00
Andrew
c5399509e6 refactor(Scripts/TempleOfAhnQiraj): Clean up Cthun script (#19736)
* refactor(Scripts/TempleOfAhnQiraj): Clean up Cthun script

* Update boss_cthun.cpp

* Update boss_cthun.cpp
2024-08-25 16:46:24 -03:00
Grimdhex
643362d697 refactor(Core/Object): adds consistency in the use of type object check (#19671) 2024-08-25 09:57:37 -03:00
Grimdhex
61f3a631c3 fix(Server): remove double blank lines at the end of several files (#19735) 2024-08-25 07:21:14 -03:00
Kitzunu
337135bf9e refactor(Core/Misc): Use NpcFlag helpers (#19676)
* chore(Core/Misc): Use HasNpcFlag instead of HasFlag

* extend to all npcflag helpers
2024-08-19 10:17:02 +02:00
Andrew
b8de917800 fix(Scripts/Hyjal): Anetheron dont sleep main tank (#19544)
* fix(Scripts/Hyjal): Anetheron dont sleep main tank

* Update boss_anetheron.cpp
2024-08-06 09:00:25 -03:00
Benjamin Jackson
7569a3bf1b fix(Scripts/HyjalSummit): Adjust Air Burst cast targetting. (#19488)
Init.
2024-08-01 19:57:32 -03:00
Francesco Borzì
2dd53e3521 refactor(Scripts): remove unused imports (#19503) 2024-07-29 14:44:52 -03:00
Francesco Borzì
dc3dfd3ab0 refactor(Scripts/Kalimdor): remove unused imports (#19459)
* refactor(Scripts/Kalimdor): remove unused imports

* chore: remove duplicate blank line

* chore: damn linking issue

* chore: wip

* chore: wip

* chore: wip
2024-07-26 19:58:11 -03:00
Benjamin Jackson
6c97e45e87 fix(Scripts/HyjalSummit): Adjust Doomfire Spirit movement logic. (#19469)
* Init.

Co-Authored-By: Tereneckla <Tereneckla@pm.me>

* Simplify code, add comment.

* Adjust scenario in which distance fails at all ranges.

* Remove unused variable.

* Account for deviation with distance check.

Co-Authored-By: Tereneckla <Tereneckla@pm.me>

* f

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Rewrite with initial teleport.

* Whitespace?

* Update function type.

* Drop Doomfire spawn timer.

Verified with le sniff. Teehee.

---------

Co-authored-by: Tereneckla <Tereneckla@pm.me>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2024-07-25 20:50:15 -03:00
Tereneckla
be256e7a78 fix(scripts/HyjalSummit): Make Doomfire Spirit move away from Archimonde at first (#19467)
Update boss_archimonde.cpp
2024-07-24 11:00:07 -03:00
Benjamin Jackson
c7d086862a fix(Scripts/HyjalSummit): Adjust Azgalor's Rain of Fire timings. (#19393)
* Init.

* Bad number.
2024-07-12 20:07:25 -03:00
Benjamin Jackson
ccf5f06128 fix(Scripts/HyjalSummit): Correct Soul Charge color assignments. (#19345)
Init.
2024-07-09 14:15:34 -03:00
sudlud
37e3d89f91 fix(CI): linux-build: add -Werror parameter (#19240)
* fix(CI): linux-build: add -Werror parameter

* add KI

tzunu

* Revert "feat(CI): enable fail-fast for pch/nopch (#19058)"

This reverts commit 564cbca7d3.

* Update midsummer.cpp - drop unused variable

* initialize variable

* Update core-build-nopch.yml - drop gcc12

* fix(Core/CalendarMgr): do not use element after delete, but before

* attempt to fix Socket.h error

* Revert "attempt to fix Socket.h error"

This reverts commit c1a59145ed3c49d0f76be2f81925434ea969db97.

* fix Socket.h error - attempt 2

* Update Socket.h

* Update Socket.h

* npc_shattrath_daily_quest: init variable templateID

* fix(Scripts/Karazhan): use size_t within loop in boss_shade_of_aran:Reset()

* boss_archimonde: drop unused variable

* Revert "fix(Scripts/Karazhan): use size_t within loop in boss_shade_of_aran:Reset()"

This reverts commit 1f71aaef256990c5cdc16561676be302c954ea9d.

* SmartScripts: SMART_TARGET_RANDOM_POINT: fix unintended fallthrough

* Revert "Revert "feat(CI): enable fail-fast for pch/nopch (#19058)""

This reverts commit d13df293624e0f50d9374272bfd05ab56242511d.

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2024-07-07 22:00:24 +02:00
Gultask
8279d9c272 fix(Scripts/HyjalSummit): Rage Winterchill Spells (#19335)
Update boss_rage_winterchill.cpp
2024-07-07 13:48:24 -03:00