Commit Graph
92 Commits
Author SHA1 Message Date
AndrewandClaude Opus 4.7 2d92b338d7 feat(Core/SmartAI): add SMART_ACTION_INC_DATA (242) (#25922)
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
2026-05-22 07:58:23 -03:00
sogladev 1cd8516e38 fix(Core/SmartAI): Mist escort and follow completion granting Credit (#25653) 2026-05-05 04:46:47 -03:00
Rocco Silipo 65613eaeeb fix(Core/SmartAI): Prevent NPCs from attacking invalid targets. (#25626) 2026-04-27 22:50:16 +02:00
32dd31b55a fix(Core/SmartAI): Keep combat pose on aggro (#25534)
Co-authored-by: blinkysc <[email protected]>
Co-authored-by: ccrs <[email protected]>
2026-04-21 23:02:15 -03:00
AndrewandClaude Opus 4.6 ab6315db98 fix(Core/SmartAI): Fix Scarlet Monastery Cathedral encounter reset (#25362)
Co-authored-by: Claude Opus 4.6 <[email protected]>
2026-04-03 23:52:54 -03:00
blinkyscandblinkysc 77de36bb9e fix(Core/SmartAI): Suppress evade during SMART_ACTION_COMBAT_STOP (#25249)
Co-authored-by: blinkysc <[email protected]>
2026-03-29 09:44:20 -05:00
4201acddd5 feat(Core/Movement): port smooth waypoint movement from Cataclysm Preservation Project (#25106)
Co-authored-by: blinkysc <[email protected]>
Co-authored-by: Ovahlord <[email protected]>
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Co-authored-by: Kitzunu <[email protected]>
2026-03-23 10:08:14 -03:00
sogladev 9c05983b2a fix(Core/SmartAI): despawn follow if player goes out of range / offline (#24450) 2026-03-22 17:45:31 -03:00
blinkyscandblinkysc d31e58d237 fix(Core/SmartAI): Remove REACT_PASSIVE check from CanAIAttack (#25186)
Co-authored-by: blinkysc <[email protected]>
2026-03-22 18:28:40 +01:00
984baa92dd refactor(Core/Combat): Port TrinityCore heap-based threat system (#24715)
Co-authored-by: blinkysc <[email protected]>
Co-authored-by: Treeston <[email protected]>
Co-authored-by: killerwife <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
2026-03-18 13:36:59 -05:00
33a438a585 feat(Core/AI): port OnSpellStart/OnSpellCast/OnSpellFailed/OnChannelF… (#25026)
Co-authored-by: offl <[email protected]>
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
2026-03-07 18:02:58 -03:00
Gultask c74e1567d7 fix(Core/SmartAI): Ranged Creatures should have relaxed stances while outside melee range (#24623) 2026-02-06 18:05:37 -03:00
blinkyscandblinkysc 9e6493ff26 fix(Core/SmartAI): Skip positive spells when determining attack distance (#24381)
Co-authored-by: blinkysc <[email protected]>
2026-01-12 10:31:13 -03:00
killerwife f0d9704d91 fix(Core/SAI): implement response for ranged mode on interrupt (#24175) 2025-12-21 10:09:25 -03:00
blinkysc bb7753d363 fix(Core/SAI): SMARTCAST_COMBAT_MOVE prevents movement on successful cast (#23913) 2025-12-02 12:44:23 -03:00
Francesco Borzì 50b36e842a fix(docs/license): use GPLv2 as MaNGOS-based project (#23655) 2025-11-14 08:44:25 -03:00
killerwife 7e5a28b064 SmartAI: Fix npcs not waypointing when offset is too big (#23453) 2025-10-28 10:49:51 +01:00
killerwife 6292f80219 feature(SmartAI/Movement) - Unify waypoint systems (#23251) 2025-10-26 17:52:59 +01:00
killerwifeand天鹭 a8d07b669d fix(Core/Scripts): Fix the wrong run in npc_escortAI (#23293)
Co-authored-by: 天鹭 <[email protected]>
2025-10-24 08:43:18 +02:00
10d5a3c553 fix(Core/Unit): rework Walk/Run mode (#22988)
Co-authored-by: sudlud <[email protected]>
Co-authored-by: Copilot <[email protected]>
2025-10-14 17:54:19 -03:00
天鹭 53238a68d3 refactor(Core): DespawnOrUnsummon (#23141) 2025-10-13 03:36:23 -03:00
天鹭andLucas Nascimento 8e2e30328f refactor(Core): Make ObjectGuid const (#23170)
* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/a7883380ce4c827db103b0c43faca6632c3d1f66)

Co-Authored-By: Lucas Nascimento <[email protected]>
2025-10-12 23:13:12 -03:00
killerwife 8e6d35c9b2 fix(Core/SAI): idle casters (#23005) 2025-09-23 20:45:48 -03:00
Andrew f893df775c feat(Core/Conditions): Implement CONDITION_AI_DATA and support for st… (#22879) 2025-09-11 18:38:56 -03:00
Andrew f1cb5cc71b fix(Core/SAI): Remove combat flag on evade for SAI-scripted charmed u… (#22775) 2025-09-02 20:15:40 -03:00
Andrew 5369aec3c9 fix(Core/SAI): Force SMC creatures to resume chasing victims once in… (#22581) 2025-08-12 14:31:08 -03:00
blinkysc d23e61b721 fix(SmartAI): Ensure immediate combat engagement (#21854)
NPCs will stop their current waypoint and start combat.
2025-04-26 19:24:35 +01:00
Andrew b17d69b33c feat(Core/Unit): Add SpellSchoolMask info to the DamageDealt() hook (#21411) 2025-02-12 12:16:02 +01:00
Gultask 8852f0c74c feat(Core/SmartScripts): Implement Scripted Spawn System (#19499)
* prespawn2

* pfta

* Update rev_1717715555182000500.sql

* Update rev_1717715555182000500.sql

* Update rev_1717715555182000500.sql

* Update rev_1717715555182000500.sql

* Update rev_1717715555182000500.sql

* Update rev_1717715555182000500.sql
2024-08-28 08:18:02 -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 5da3e2e688 refactor(Core/SmartScripts): Change invoker to be WorldObject (#19408)
* refactor(Core/SmartScripts): Change invoker to be WorldObject

* avoid dangling else

* womp womp

* check for null

* null check

* Update SmartScript.cpp

* Avarishd broke it for sure

* remove redundant check

* reduce more redundant code

* who doesnt love redundancy
2024-07-27 07:32:55 -03:00
f42ed2efa5 feat(Core/SAI): SetData now has invoker (#19296)
* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/cfc77fd84355d28737f3f85f2ba318be5caacdea)

* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/beb333738db0d493bf95994eb5557e174e5dd3a6)

* Move IsSmart function from headerfile

Co-authored-by: Treeston <[email protected]>
Co-authored-by: Shauren <[email protected]>
2024-07-06 13:46:10 +02:00
Walter Pagani 03f6dde549 fix(Core/SmartAI) fatal error: unused parameter pathId (#18795)
fix. fatal error: unused parameter pathId
2024-04-24 08:22:24 -03:00
Gultask 6f154d0a6b feat(Core/SmartAI): Add support for waypoint_data in SAI (#18706)
* Create rev_1712670662273633900.sql

* eol?

* doesn't like a comment at the end, ok, ok

* init

* mack

* Update SmartScript.cpp

* kurzel

* random paths and garg

* Update rev_1712889530436412200.sql

* brend & marge

* Update rev_1712889530436412200.sql

* movement actions

* Update SmartScriptMgr.h
2024-04-18 10:31:41 -03:00
8f127f9e21 Fix combat movement (#18026)
* Improve combat movement

 - Removed a bunch of logic related to another attempt at fixing combat movement.
- Removed SMART_ACTION_SET_CASTER_COMBAT_DIST and updated smarts scripts accordingly.
- Cherry-picked https://github.com/TrinityCore/TrinityCore/commit/7fb74326205acbc5c0fa6b2aa9731d891e788d64
- Cherry-picked https://github.com/TrinityCore/TrinityCore/commit/63a6e1e0480df659e773a3df5e1acc2027ebcf15

Co-Authored-By: Ludovic Barbier <[email protected]>
Co-Authored-By: Giacomo Pozzoni <[email protected]>

* Some more cleanup + fix sql

* More fixes to caster chase/combat movement + some cherry picks because why not

- Fix casters always trying to chase to melee range
- Fix casters another case of casters sometimes walking back instead of stopping
- Cleaned up some code
- Cherry picked https://github.com/TrinityCore/TrinityCore/commit/ca25e8d0199730c0976ebc37317e9407aceccc34
- Cherry picked https://github.com/TrinityCore/TrinityCore/commit/96b289cadbf304e427ddbd281d1a6f592af612a7

Co-Authored-By: Giacomo Pozzoni <[email protected]>

* Added parentheses

* Fixed caster combat movement when target is rooted

- Made a few adjustments to chase range and stuff, but nothing set in stone.

* convert uint to int

---------

Co-authored-by: Ludovic Barbier <[email protected]>
Co-authored-by: Giacomo Pozzoni <[email protected]>
2024-01-03 09:56:24 +01: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 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
Gultask e422583132 feat(Core/SmartAI): Implement a few more stuff (#17090)
* init

* init2

* attempt to fix WP delays

* init3

* init4

* buildfix

* Create rev_1693093120417899200.sql

* workflow

* Underbat

* castflag power mana

* did not work

* Update SmartScriptMgr.cpp

* ugly

* port range to new system

* attempt

* simplify cast

simplify cast
add iteration for aura_not_present
recalc timer if already castig spell

* Update SmartScript.cpp

* attempt

* attempts

* HP PCT

* missing aura to targetselector

* Update rev_1693093120417899200.sql

* Update SmartScriptMgr.h

* Update SmartScriptMgr.h

* Update SmartScript.cpp

* remove not_attacking, fix behind_me

* revert is_behind_me

* Update SmartScriptMgr.h

* Update underbog.cpp

* Update underbog.cpp
2023-09-10 13:12:55 +02:00
Francesco Borzì 5d01b700fd refactor(Core): remove unused imports (#17094) 2023-08-28 13:39:43 +02:00
Gultask aaa548df0b Revert "fix(Core/SAI): Set minions in combat with their master's vict… (#15967)
Revert "fix(Core/SAI): Set minions in combat with their master's victim (#14959)"

This reverts commit 1e17eaae0b.
2023-04-15 19:49:03 -03:00
KitzunuandTreeston bd6034e1a9 refactor(Core/AI): Some more refactoring prep for Comat Threat system… (#15026)
Co-authored-by: Treeston <[email protected]>
2023-02-13 21:39:40 +01:00
Skjalf 1e17eaae0b fix(Core/SAI): Set minions in combat with their master's victim (#14959) 2023-02-12 08:28:18 -03:00
UltraNix f496535cc8 fix(Core/AI): Fixed mobs attacking in defensive state. (#14947) 2023-02-11 12:06:17 -03:00
Skjalfandjackpoz 1fc1e1d5b7 feat(Core/SmartAI): Implement SMART_EVENT_SUMMONED_UNIT and SMART_EVE… (#14811)
Co-authored-by: jackpoz <[email protected]>
2023-01-31 22:50:34 +01:00
Skjalfandjackpoz bf30c66ba4 feat(Core/GameObject): Expand IsSummonedBy() to GameObjects (#14789)
Co-authored-by: jackpoz <[email protected]>
2023-01-29 09:44:33 -03:00
UltraNix 95652e14d5 fix(Core/SmartScripts): Implemented new target type: SMART_TARGET_SUM… (#13880)
* fix(Core/SmartScripts): Implemented new target type: SMART_TARGET_SUMMONED_CREATURES.

Fixes #13787

* Update.

* Update.
2022-12-06 09:41:05 -03:00
UltraNix ba4911142b fix(Core/SmartAI): Mind-controlled creatures can auto-attack its vict… (#12863)
fix(Core/SmartAI): Mind-controlled creatures can auto-attack its victims.

Fixes #12624
2022-08-31 23:42:36 -03:00
f0777d1fd3 fix(Core/AI): validate stored targets (#12489)
Co-authored-by: Meji <[email protected]>
Co-authored-by: Ariel Silva <[email protected]>
Co-authored-by: Shauren <[email protected]>

Co-authored-by: Meji <[email protected]>
Co-authored-by: Ariel Silva <[email protected]>
Co-authored-by: Shauren <[email protected]>
2022-07-24 13:06:11 -03:00
IntelligentQuantum 6ac7dfa26f refactor(Core/SmartScripts): GetTargets returns ObjectList instead of ObjectList* (#11950) 2022-07-18 11:15:57 +02:00
IntelligentQuantum cc52712ac1 refactor(Core/AI): factory functions cleanup (#11779) 2022-07-15 16:11:49 +02:00