sogladev
19f1ede216
fix(Core/Unit): add Dual Wield 'auto' to improve scripting ( #23078 )
2025-10-03 08:26:31 +02:00
Andrew
78dea88d5d
fix(Scripts/AzjolNerub): Fix Anubarak impale sequence ( #22717 )
2025-09-23 10:49:23 +02:00
Andrew
28532bc1e0
feat(Core/AI): Allow preventing health check events while casting ( #22897 )
2025-09-14 18:48:33 -03:00
Takenbacon
73317b2706
feat(Core/Grids): Remove WorldObject separation in grid containers ( #22595 )
2025-08-09 06:36:24 +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
sudlud
4459afc98d
fix(Core/Movement): Allow MoveFollow to not inherit speed of the target ( #21711 )
2025-03-15 21:47:11 +01:00
Andrew
835283bf26
feat(Core/Scripting): Implement ScheduleEnrageTimer() helper ( #21597 )
2025-02-24 09:59:18 +01:00
Andrew
0f1618faf5
feat(Core/Scripting): Implement SetAutoAttackAllowed() to disable aut… ( #20805 )
...
* feat(Core/Scripting): Implement SetAutoAttackAllowed() to disable autoattacks
* Update ScriptedCreature.cpp
2024-12-02 08:11:18 -03:00
Andrew
0b771cbc92
fix(Core/Creature): Don't call reset if still in combat ( #20675 )
2024-11-23 10:57:26 +01:00
Andrew
e741a9a87f
feat(Core/Scripting): Implement SetInvincibility() to prevent creatur… ( #20508 )
2024-11-11 00:22:03 -03:00
Andrew
31cb7579e0
fix(Core/Scripts): Further improve the ScheduleHealthCheck() function ( #20163 )
2024-10-09 08:08:37 -03:00
Jelle Meeus
6e4a9bbb14
fix(Core/Unit): fix Dual Wield for more creatures, CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK, creature disarm damage ( #20015 )
...
* enable CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK
* sql set CREATURE_FLAG_EXTRA_USE_OFFHAND
* use new HasOffHandWeaponForAttack instead of haveOffhandWeapon
no longer requires m_CanDualwield set to use Offhand attack
requires non-disarmed weapon in Offhand OR creature_flag_extra enabled
Co-authored-by: Ovah <dreadkiller@gmx.de >
Co-authored-by: Warlockbugs <warlockbugs@outlook.com >
* Make shapeshift forms which dont override attack speed use weapon damage
Co-authored-by: killerwife <killerwife@gmail.com >
* SetEquipmentSlots turning off damage update when using template default
Co-authored-by: killerwife <killerwife@gmail.com >
* Setup DualWield & Damage On Equipment Updates, implement Set and GetVirtualItem
Co-authored-by: Yatzii <47720837+Yatzii93@users.noreply.github.com >
* creature disarm damage
set disarm to reduce minmax damage by 50% instead of setting to 0
Co-authored-by: Warlockbugs <warlockbugs@outlook.com >
---------
Co-authored-by: Ovah <dreadkiller@gmx.de >
Co-authored-by: Warlockbugs <warlockbugs@outlook.com >
Co-authored-by: killerwife <killerwife@gmail.com >
Co-authored-by: Yatzii <47720837+Yatzii93@users.noreply.github.com >
2024-09-25 16:53:39 +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
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