Commit Graph

97 Commits

Author SHA1 Message Date
daobashun
a95dff8ca0 fix(Core): SMART_ACTION_ESCORT_STOP now stops a repeating escort path (#26455)
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
2026-07-24 06:10:08 +02:00
Rocco Silipo
1eb3749b3b fix(Core/Script): Creatures will not interrupt channeling spells anymore on engage if the spell has attribute "Allow Actions During Channeling". (#26710)
Co-authored-by: sogladev <46423958+sogladev@users.noreply.github.com>
2026-07-21 08:24:18 +02:00
Kitzunu
8eb009fdfc refactor(Core/Misc): enforce east-const style and add codestyle check (#26492)
Co-authored-by: Ludwig <sudlud@users.noreply.github.com>
2026-07-21 06:13:51 +02:00
隐如仙
497cd60dcf fix(Core/SmartAI): Fix SAI's SetFollow behavior so it doesn’t inherit movement speed (#26539) 2026-07-10 21:28:55 +02:00
silviu20092
8d0a1aaf6f fix(Core/SmartAI): Call unit evade mode hook for SmartAI aswell (#23958)
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
2026-06-13 14:13:19 +02:00
Andrew
2d92b338d7 feat(Core/SmartAI): add SMART_ACTION_INC_DATA (242) (#25922)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
blinkysc
32dd31b55a fix(Core/SmartAI): Keep combat pose on aggro (#25534)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: ccrs <ccrs@users.noreply.github.com>
2026-04-21 23:02:15 -03:00
Andrew
ab6315db98 fix(Core/SmartAI): Fix Scarlet Monastery Cathedral encounter reset (#25362)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 23:52:54 -03:00
blinkysc
77de36bb9e fix(Core/SmartAI): Suppress evade during SMART_ACTION_COMBAT_STOP (#25249)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
2026-03-29 09:44:20 -05:00
blinkysc
4201acddd5 feat(Core/Movement): port smooth waypoint movement from Cataclysm Preservation Project (#25106)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: Ovahlord <dreadkiller@gmx.de>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Kitzunu <Kitzunu@users.noreply.github.com>
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
blinkysc
d31e58d237 fix(Core/SmartAI): Remove REACT_PASSIVE check from CanAIAttack (#25186)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
2026-03-22 18:28:40 +01: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
Andrew
33a438a585 feat(Core/AI): port OnSpellStart/OnSpellCast/OnSpellFailed/OnChannelF… (#25026)
Co-authored-by: offl <11556157+offl@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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
blinkysc
9e6493ff26 fix(Core/SmartAI): Skip positive spells when determining attack distance (#24381)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
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
killerwife
a8d07b669d fix(Core/Scripts): Fix the wrong run in npc_escortAI (#23293)
Co-authored-by: 天鹭 <18535853+PkllonG@users.noreply.github.com>
2025-10-24 08:43:18 +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
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
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
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
AG
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 7fb7432620
- Cherry-picked 63a6e1e048

Co-Authored-By: Ludovic Barbier <ludovic.barbier03@gmail.com>
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>

* 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 ca25e8d019
- Cherry picked 96b289cadb

Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>

* 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 <ludovic.barbier03@gmail.com>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
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
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
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
Skjalf
1fc1e1d5b7 feat(Core/SmartAI): Implement SMART_EVENT_SUMMONED_UNIT and SMART_EVE… (#14811)
Co-authored-by: jackpoz <giacomopoz@gmail.com>
2023-01-31 22:50:34 +01:00
Skjalf
bf30c66ba4 feat(Core/GameObject): Expand IsSummonedBy() to GameObjects (#14789)
Co-authored-by: jackpoz <giacomopoz@gmail.com>
2023-01-29 09:44:33 -03:00