Commit graph

73 commits

Author SHA1 Message Date
Andrew
eb09ad5d60
fix(Core/Movement): restore JustExitedCombat evade to fix waypoint resume (#25332)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-31 20:22:39 -03:00
blinkysc
037588ed03
fix(Core/Scripts): Fix Valithria Dreamwalker encounter and default JustExitedCombat (#25315)
Co-authored-by: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
2026-03-30 14:22:36 -05:00
blinkysc
f3d2a28083
fix(Core/Movement): Prevent vehicles from following their own passenger on evade (#25225)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
2026-03-25 10:34:10 -05:00
blinkysc
fa9f28309b
fix(Core/AI): Prevent guardians from switching targets on owner combat interaction (#25190)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
2026-03-22 16:38:49 -05:00
blinkysc
9e666623c3
fix(Core/Combat): Restore pet/owner combat propagation (#25166)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
2026-03-22 18:39:34 +01:00
blinkysc
bf4c181b59
fix(Core/Combat): Fix guardians not attacking after threat system port (#25157)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
2026-03-21 13:05:57 -03:00
Andrew
51ee56d1e2
fix(Core/Movement): skip TriggerAlert for creatures immune to players (#25147)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 00:59:56 -03:00
blinkysc
48fa4d2856
fix(Core/Scripts): Fix DK pets not correctly attacking (#25128)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: Treeston <treeston.mmoc@gmail.com>
Co-authored-by: Malcrom <malcromdev@gmail.com>
Co-authored-by: Aqua Deus <95978183+aquadeus@users.noreply.github.com>
2026-03-20 09:14:58 -03:00
blinkysc
984baa92dd
refactor(Core/Combat): Port TrinityCore heap-based threat system (#24715)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: Treeston <treeston.mmoc@gmail.com>
Co-authored-by: killerwife <killerwife@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 13:36:59 -05:00
Benjamin Jackson
c552158e99
fix(Core/Entities): Improve interactions between taxis and players regarding PvP flag. (#23681) 2025-11-15 05:21:22 -03:00
Francesco Borzì
50b36e842a
fix(docs/license): use GPLv2 as MaNGOS-based project (#23655) 2025-11-14 08:44:25 -03:00
Tereneckla
675135e19b
fix(Core/Spells): only include the targets size for some GroundEffects (#23478) 2025-10-31 11:09:38 -03:00
天鹭
53238a68d3
refactor(Core): DespawnOrUnsummon (#23141) 2025-10-13 03:36:23 -03:00
Yehonal
09b79f45f2
feat(NPC): add configuration for creature repositioning during NPC combat (#22973)
Co-authored-by: Andrew <47818697+Nyeriah@users.noreply.github.com>
2025-09-20 03:49:50 +02:00
Andrew
9e0b6ff7a6
fix(Core/Creature): ensure target is valid when acquiring GUID (#22937) 2025-09-15 19:05:50 -03:00
Andrew
94c2f38ecc
feat(Core/SAI): Implement delay option to SMART_ACTION_TALK (#22918) 2025-09-15 09:44:49 +02:00
Jelle Meeus
b15507eb06
feat(Scripts/Commands): .debug boundary to visualize CreatureBoundary (#22099)
Co-authored-by: avarishd <46330494+avarishd@users.noreply.github.com>
Co-authored-by: treeston <treeston.mmoc@gmail.com>
2025-05-30 11:42:11 -03:00
Andrew
c5876bff6f
fix(Scripts/ZulAman): Fix Amani Hatcher behaviour (#20687) 2024-11-24 07:56:18 -03:00
Benjamin Jackson
bf18b9bdfb
fix(Core/AI): Improve creature leashing behavior. (#19751)
* Init.

https: //github.com/vmangos/core/commit/7d2f1e2923734ea1b983eeaa0208cfd158d4af02
Co-Authored-By: ratkosrb <35845488+ratkosrb@users.noreply.github.com>

* Hackfix for pets.

* Whoops.

* Correct evade uses.

* Conflict.

* Actually fix grace timer.

* Add visibility distance check.

Creatures should always fail combat checks in the open world if they're outside of visibility distance, might not be the case for worldbosses.

---------

Co-authored-by: ratkosrb <35845488+ratkosrb@users.noreply.github.com>
2024-09-03 21:08:56 +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
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
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
avarishd
03d06da87b
feat(Core/SmartScripts): SMART_EVENT_SUMMONED_UNIT_EVADE (#18018)
* feat(Core/SmartScripts): SMART_EVENT_SUMMONED_UNIT_EVADE

* .
2023-12-15 09:43:24 -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
Francesco Borzì
5d01b700fd
refactor(Core): remove unused imports (#17094) 2023-08-28 13:39:43 +02:00
Skjalf
76c9eb9159
feat(Core/AI): Implement delay option to the Talk() function (#14950) 2023-02-11 17:23:57 -03:00
Skjalf
f59ee4ef7c
feat(Core/Creature): Actually despawn creatures on evade with Despawn… (#14786) 2023-01-28 18:47:15 -03:00
Skjalf
cd3151df40
fix(Scripts/RuinsOfAhnQiraj): Implement Rajaxx waves (#12513) 2022-07-25 12:12:08 -03:00
UltraNix
801e68b1dd
fix(Core/Creatures): Added new AI function OnTeleportUnreacheablePlayer to teleport all unreachable players. (#12193)
* fix(Core/Creatures): Implemented CREATURE_FLAG_EXTRA_TELEPORT_UNREACHABLE_PLAYERS.

Fixed #11750

* Update.

* Update.

* Update.
2022-07-24 13:10:41 -03:00
Skjalf
9920e01b2b
feat(Core/Scripting): Add several UnitHooks (#12365) 2022-07-11 14:57:38 -03: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
Kitzunu
5def0cdd12
chore(Core/CreatureAI): improve log (#11468)
* chore(Core/CreatureAI): improve log

* Update CreatureAI.cpp

* Update CreatureAI.cpp
2022-04-23 15:10:07 +02:00
IntelligentQuantum
ab4ee71762
feat(Core/Maps): AreaBoundary (#10525)
* cherry-picked commit (2da458c56d)
2022-04-15 14:10:41 +02:00
UltraNix
ff654397e8
fix(Core/Creatures): Properly reset encounter if boss despawns on evade. (#11251)
Fixes #8167
2022-04-02 11:46:27 -03:00
Nefertumm
ede60e2bc0
chore(Core/Texts): Rename parameter for creature texts (#10317) 2022-01-31 06:48:55 -03: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
Kitzunu
d1cc65b1c7
refactor(Core/Misc): isEmpty to IsEmpty (#10011) 2022-01-13 21:43:15 -05:00
Francesco Borzì
cbc7e5466a
refactor(Core): remove unused imports (#9767) 2021-12-19 19:41:14 +01:00
Andrius Peleckas
36fc50e1a8
fix(Core/Formations): fixed possible finite loop related to GROUP_AI_FLAG_EVADE_TOGETHER (#9279) 2021-11-25 23:46:12 -03:00
Kargatum
f62664c987
refactor(Core/Misc): headers cleanup (#9259) 2021-11-22 17:24:39 +07:00
schell244
efe999309a
fix(Core/CreatureAI): enemy stealth alert ignoring LOS (#9161) 2021-11-20 10:38:08 +01:00
Andrius Peleckas
31f028abfc
feat(Core/Formations): implemented a new formation groupAI flag "GROUP_AI_FLAG_EVADE_TOGETHER" (#8758) 2021-11-16 15:14:34 -03:00
sschepens
b7f8083915
feat(Core/Misc): change how Position struct is retrieved (#9017)
Update Position::GetPosition() and similar methods signatures to reflect 2a4c9bc changes by return a Position object instead of accepting a Position parameter by reference.

Cherry pick of 2585e799f9
2021-11-10 23:43:00 +01:00
UltraNix
affa6f9084
refactor(Core/Combat): Cleanup DoZoneInCombat function. (#8789)
* Core/Combat: Cleanup DoZoneInCombat function.

Updates #7960

* Restore distance parameter.

* You don't belong here.

* Update
2021-11-09 00:54:44 +01:00
UltraNix
e57e0e7cd1
fix(Core/Creatures): AttackStart in MoveInLineOfSight is called only for aggressive mobs. (#8878)
Fixes #8868
2021-11-02 11:43:18 -03:00
Kitzunu
d464ee7083
refactor(Core/CreatureAI): Turn hardcoded entries into flagsExtra (#8189) 2021-10-12 13:35:22 +02:00
Kargatum
52aa0e9966
feat(License): add new headers information about license (#7941)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2021-09-30 13:40:52 +07:00
Kitzunu
f6f18cb538
fix(Core/Creature): remove combo points on evade (#7861) 2021-09-17 13:42:04 +02:00