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
5ab142af93
fix(Core/AI): remove an unused variable in ScriptedAI ( #19816 )
...
fix(Core/AI): remove an unused variable
2024-08-31 11:05:18 -03:00
Andrew
83f8871c31
refactor(Core/BossAI): Improve the ScheduleHealthCheck() code ( #19743 )
...
* refactor(Core/BossAI): Improve the ScheduleHealthCheck() code
* Update ScriptedCreature.cpp
---------
Co-authored-by: sudlud <sudlud@users.noreply.github.com >
2024-08-26 14:44:05 -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
Kitzunu
f42ed2efa5
feat(Core/SAI): SetData now has invoker ( #19296 )
...
* cherry-pick commit (cfc77fd843 )
* cherry-pick commit (beb333738d )
* Move IsSmart function from headerfile
Co-authored-by: Treeston <14020072+Treeston@users.noreply.github.com >
Co-authored-by: Shauren <shauren.trinity@gmail.com >
2024-07-06 13:46:10 +02:00
Andrew
c9725dd4b2
fix(Core/AI): Don't set boss state to none if already complete ( #19139 )
2024-06-26 22:40:04 +02:00
Andrew
9e122a0cad
fix(Core/AI): Fix bosses being stuck IN_PROGRESS if despawnonevade fl… ( #19070 )
...
fix(Core/AI): Fix bosses being stuck IN_PROGRESS if despawnonevade flag is used
2024-06-16 18:57:51 +02:00
Dan
a870173558
fix(Scripts/BossAI): add optional variable to BossAI class to make sure the boss calls for help ( #18630 )
...
init
2024-03-30 11:31:41 -03:00
Andrew
6df652a8dd
fix(Core/Creature): Prevent combat movement disabled creatures from r… ( #18428 )
...
* fix(Core/Creature): Prevent combat movement disabled creatures from repositioning if target moves within model boundary
* fixbuild
* Apply suggestions from code review
2024-02-27 10:11:39 -03:00
Andrew
daec8345e0
refactor(Scripts/BlackTemple): Modernize Najentus boss script ( #17871 )
...
* refactor(Scripts/BlackTemple): Modernize Najentus boss script
* fix build
* Update ScriptedCreature.h
2023-11-26 23:47:15 +01:00
Andrew
59e9451c3c
feat(Core/AI): Implement ScheduleTimedEvent() helper ( #17813 )
2023-11-20 20:36:15 -03: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
2e4ad36d20
feat(Core/AI): Add built-in TaskScheduler to CreatureAI ( #17700 )
...
* Add TaskScheduler to CreatureAI
* Code style, because of course.
2023-11-14 07:32:47 -03:00
Andrew
975a6fccab
feat(Core/Scripts): Prevent the inherited TaskScheduler from updating… ( #17689 )
2023-11-12 20:30:23 -03:00
Kitzunu
f757e93da5
refactor(Core/Misc): Make DeathState enum class ( #17607 )
2023-10-28 10:54:03 +02:00
avarishd
894732f11e
fix(Scripts/EscortAI): Do not remove auras on evade ( #17542 )
2023-10-20 20:49:17 -03:00
Francesco Borzì
5d01b700fd
refactor(Core): remove unused imports ( #17094 )
2023-08-28 13:39:43 +02:00
Skjalf
d47e93830f
feat(Core/Scripts): Allow scheduling multiple hp checks at once for i… ( #15897 )
...
feat(Core/Scripts): Allow scheduling multiple hp checks at once for identical phases
2023-04-09 15:37:04 -03:00
Skjalf
86a2e94746
feat(Core/AI): Implement DoForAllSummons() function to summon lists ( #15262 )
2023-03-07 05:32:53 -03:00
Skjalf
81d831faac
feat(Core/AI): Implement ScheduleHealthCheckEvent() for events that fire … ( #15275 )
2023-03-04 23:25:43 -03:00
Kitzunu
bd6034e1a9
refactor(Core/AI): Some more refactoring prep for Comat Threat system… ( #15026 )
...
Co-authored-by: Treeston <14020072+Treeston@users.noreply.github.com >
2023-02-13 21:39:40 +01:00
Skjalf
b0decf9ce4
feat(Core/AI): Update the BossAI scheduler in the parent class ( #14952 )
2023-02-11 19:17:01 -03:00
UltraNix
f496535cc8
fix(Core/AI): Fixed mobs attacking in defensive state. ( #14947 )
2023-02-11 12:06:17 -03:00
Maelthyr
32587b7659
feat(Core/Unit): Combat pulse ( #14792 )
...
Co-authored-by: Treeston <treeston@users.noreply.github.com >
2023-02-05 17:19:10 -03:00
Skjalf
8aa331b432
fix(Core/Creature): Fix bosses with hard reset flag not respawning an… ( #14862 )
2023-02-04 15:35:53 -03:00
Skjalf
aeed96f3b7
feat(Core/AI): Move TaskScheduler to BossAI class ( #14757 )
2023-01-26 13:46:30 -03:00
Maelthyr
c1c9dc6105
refactor(Core/ScriptedAI): few improvements with threat methods ( #13146 )
...
improve threat scripts
Co-authored-by: Maelthyrr <lynethris@protonmail.ch >
2022-11-12 13:29:28 +01:00
UltraNix
3c8a148b1e
fix(Scripts/Temple of AhnQiraj): Slime Toxin clouds should despawn 10… ( #13492 )
...
* fix(Scripts/Temple of AhnQiraj): Slime Toxin clouds should despawn 10 sec after Viscidus death.
Fixes #13420
* Update.
2022-10-25 10:43:39 -03:00
Maelthyr
1f472bddd3
refactor(Core/Combat): Code style and improvement of ThreatMgr ( #12992 )
2022-09-25 15:20:34 -03:00
Angelo Venturini
337c308dd3
fix(Core/TempleOfAhnQiraj): Viscidus ( #12956 )
2022-09-21 15:19:21 -03:00
Maelthyr
d928d8d96a
refactor(Core/Unit): PC&NPC Immunity ( #11986 )
...
* initial
* refactor(Core/Unit): PC & NPC Immunities
Cherry-pick TC: 74af880217
Co-authored-by: Treeston <treeston.nmoc@gmail.com >
* fix builds error
Cherry-pick TC: 74af880217
Co-authored-by: Treeston <treeston.nmoc@gmail.com >
* Fix nef combat, and replace SetFlag by SetUnitFlag
* fix combat with jedoga
Co-authored-by: Treeston <treeston.nmoc@gmail.com >
2022-06-18 08:16:45 -04:00
Maelthyr
32334f5f14
refactor(Core/Unit): minor changes for the combat system ( #11904 )
...
Cherry-pick from TC: https://github.com/TrinityCore/TrinityCore/pull/19966
Co-authored-by: Treeston <treeston.nmoc@gmail.com >
2022-06-13 19:40:29 -03:00
Maelthyr
dfc6adb081
refactor(Core/Combat): DeleteThreatLists() become ClearAllThreat() ( #11824 )
...
refactor(Chore/Combat): DeleteThreatLists() become ClearAllThreat()
2022-05-23 05:51:52 -03:00
Maelthyr
c5368816fa
Core/Combat: rename getThreatMgr() to GetThreatMgr() ( #11758 )
2022-05-18 05:36:57 -03:00
Maelthyr
5ede1177c5
refactor(Core/Combat): implement compatiblity layer for ResetAllThreat() ( #11778 )
...
* implement ResetAllThreat()
* .
2022-05-17 12:01:25 -03:00
IntelligentQuantum
9fa3436cbe
feat(Core/SmartScripts): SMART_EVENT_FLAG_WHILE_CHARMED ( #10286 )
2022-04-23 16:26:42 +02:00
IntelligentQuantum
ab4ee71762
feat(Core/Maps): AreaBoundary ( #10525 )
...
* cherry-picked commit (2da458c56d )
2022-04-15 14:10:41 +02:00
Kitzunu
edb7cac19b
feat(Core/Unit): NPCFlags helpers ( #11286 )
...
* cherry-pick commit (TrinityCore/TrinityCore@d611925 )
Co-Authored-By: Shauren <shauren.trinity@gmail.com >
2022-04-05 13:52:42 +02:00
Kitzunu
856aed6fc6
feat(Core/Unit): New helpers for UnitFlag and UnitFlag2 ( #11227 )
2022-03-30 07:59:42 -03:00
Nefertumm
556cbd8f58
feat(Core/Gossips): override BoxMoney from DB ( #10414 )
2022-03-10 13:55:29 +01:00
Kargatum
3a0a9ba088
feat(Core/Common): move EventMap to separated files, add support chrono ( #10209 )
2022-02-04 15:12:45 +01:00
Kargatum
5969df4e30
refactor(Core/Logging): switch to fmt style for LOG_ ( #10366 )
...
* feat(Core/Common): add support fmt style for ASSERT and ABORT
* correct CheckCompactArrayMaskOverflow
* 1
* Update src/server/game/Spells/Spell.cpp
* rework logging
* add fmt replace logs
* logging
* FMT_LOG_
* settings
* fix startup
* 1
* 2
* 3
* 4
* 5
* fmt::print
* to fmt
2022-01-27 16:44:41 +01:00
Kargatum
8b7df23f06
feat(Core/Time): Implement saparated manager for game time ( #8630 )
2022-01-24 17:55:00 +07:00
Kitzunu
d1cc65b1c7
refactor(Core/Misc): isEmpty to IsEmpty ( #10011 )
2022-01-13 21:43:15 -05:00
Kitzunu
913e65f97f
refactor(Core/Misc): fabs() to std::fabs() ( #9790 )
...
- prefer std functions over C functions
2021-12-31 20:41:00 -03:00
Kargatum
c81891fc11
feat(Core/AI): convert SelectAggroTarget to enum class ( #9893 )
2021-12-28 19:13:12 -03:00
Kargatum
f62664c987
refactor(Core/Misc): headers cleanup ( #9259 )
2021-11-22 17:24:39 +07:00
UltraNix
7201d8840f
fix(Scripts/BlackrockSpire): Urok Doomhowl - improvements: ( #9067 )
...
The mobs should attack the pike if there is no players around
The boss should not despawning after summon
Urok's Tribute Pile with Pike and Head should disapear after Urok appear
Fixes #9023
2021-11-12 09:46:07 -03:00
Skjalf
1ed0a67ed1
fix(Scripts/BlackrockSpire): Rend Blackhand improvements ( #8826 )
2021-11-02 19:31:35 -03:00