22 Commits
Author SHA1 Message Date
ccrs 2e12baf0ed Core/Instances: fix parameter handling in InstanceScript::DoCastSpellOnPlayer
(cherry picked from commit bac5265ea830a836654d84ab90302d494ba2f089)
Signed-off-by: luis <[email protected]>
2026-07-01 18:25:47 -03:00
ccrs 8c41868af3 Core/AI: fix _returnToStart handling in ScriptedEscortAI
(cherry picked from commit 84b0222bdcce8e6a0fe0589e334d1ff476ccfb2d)
Signed-off-by: luis <[email protected]>
2026-07-01 17:59:23 -03:00
ccrs caec43a8de Core/AI: prevent triggering Alert (stealth pre-detection system) for Player immuned units
(cherry picked from commit eccb8857f1cbb480f3acef6fd16c99d607399974)
Signed-off-by: luis <[email protected]>
2026-07-01 17:58:03 -03:00
ccrs 2516f9a311 Core/Movement: force destination finding in HomeMovementGenerator
(cherry picked from commit 7242f32ec8d948e3124b8624679626899d8b1432)
Signed-off-by: luis <[email protected]>
2026-07-01 17:51:10 -03:00
ccrs c26b1e4f20 Scripts/BlackwingLair: add missing one-time validation in Nefarian's SAY_XHEALTH
(cherry picked from commit 542b0fbf4b122d0204684b20d0abdef23137c773)
Signed-off-by: luis <[email protected]>
2026-07-01 17:50:35 -03:00
ccrs 64329c9872 Core/Entities: force CombatManager revalidation after applying charm
"Safely" goes through all combat references validating if in fact the unit should remain in combat or not
Any edge case that may get affected by this, are scenarios in which the charmed unit must keep the combat and threat references prior to their charm.... I can't think of any.
-> And honestly if there was any such case... imo it should be handled script wise, not core wise.

closes #31747
updates #30169

(cherry picked from commit 04ab833acd7e4a5e7025bb826106283c1c7c680b)
Signed-off-by: luis <[email protected]>
2026-07-01 17:49:45 -03:00
ccrs 780c471dc8 Scripts/BlackwingLair: improve Nefarian's summon handling (#31745)
general cleanup that enables the script intended purpose, but this needs much more work

(cherry picked from commit 009e1466c8c9a67d97005aff24660ced426e3a35)
Signed-off-by: luis <[email protected]>
2026-07-01 17:45:25 -03:00
ccrs 59cbb17bfd Core/Movement: Check that movement generators were properly initialized and fix off-by-one-update-tick time tracking (#31612)
(cherry picked from commit 8787dfe6cfca3c5eb32fb024bdaa5e83d725aab8)
Signed-off-by: luis <[email protected]>
2026-06-30 17:55:54 -03:00
ccrs 42353b32f1 Core/Movement: include missing condition
(cherry picked from commit 55cc4a093f5123d0b9afd1e98e26d16cc80e2b62)
Signed-off-by: luis <[email protected]>
2026-06-30 17:53:52 -03:00
ccrs aae2bc67b2 Core/Movement: implement MovementGeneratorMode::MOTION_MODE_OVERRIDE
(cherry picked from commit 2b24bc90fb4453c2d98ba4ad94d0a16532e1585a)
Signed-off-by: luis <[email protected]>
2026-06-30 17:53:19 -03:00
ccrs 3654f76023 Misc: improve UNIT_STATE_DISTRACTED handling
(cherry picked from commit 15b8a43311cb3e9e8ad3cf5e64cf8bf8615efed3)
(cherry picked from commit 3e7f0372dbdf62c84574ecb4c13aa5c837e788c5)
Signed-off-by: luis <[email protected]>
2026-06-30 17:49:57 -03:00
ccrs 78a91187c3 Core/Creature: cleanup movementflags initialization on creature create, a bit
- Remove redundant m_positionZ alteration (relocation is already handled in Unit::SetHover)

(cherry picked from commit 736add62678b5e04399421ee6ebcdaa2c7447712)
Signed-off-by: luis <[email protected]>
2026-06-28 18:57:12 -03:00
ccrs 6efe972481 Core/Movement: remove unnecessary UpdateAllowedPositionZ in FollowMovementGenerator
Already called in GetNearPoint

(cherry picked from commit aa8c287b6711bc8e1cb961532f37151c1da55da9)
Signed-off-by: luis <[email protected]>
2026-06-28 18:55:11 -03:00
ccrs 6683b1f49c Core/Movement: allow to manually set up SWIM flag on init splines
(cherry picked from commit 05afc3aa8950a5240b07472bb887bccbaf96101b)
Signed-off-by: luis <[email protected]>
2026-06-28 18:54:22 -03:00
ccrs ee87a65ff7 Core/SAI: allow indefinite movement pause timers in SmartScripts
This allows pausing random movement generator permanently, for example, instead of using a big number to simulate it.

(cherry picked from commit 328f82da78a347943124388f50a607b2a69a00a4)
Signed-off-by: luis <[email protected]>
2026-06-28 18:45:06 -03:00
ccrs 6cd209fda6 DB/SAI: rescript Ancient Drakkari Soothsayer and adjust movement type on event on Ancient Drakkari Warmonger
(cherry picked from commit 39859e7852016b31a327ac34f01f2091ca329aa4)
Signed-off-by: luis <[email protected]>
2026-06-28 18:44:13 -03:00
ccrs 29f49e9b2a Scripts/Azshara: rework quest Chasing the Moonstone related scripts (#31373)
(cherry picked from commit 731b918ac60d9aad6bf172dc589960e45bdae712)
Signed-off-by: luis <[email protected]>
2026-06-28 18:42:42 -03:00
ccrs 34926bb3f0 Scripts/Misc: replace GetThreatListSize with GetThreatListPlayerCount to achieve the desired behavior
(cherry picked from commit 48cd3c91423a03581203411ff6cea600d4518730)
Signed-off-by: luis <[email protected]>
2026-06-28 18:41:33 -03:00
ccrs 8a5a77c3c2 Core/Combat: add new getter to count Players in the threatlist
(cherry picked from commit 100790c0e22c2cf597bccd33971c6d1b856b8087)
Signed-off-by: luis <[email protected]>
2026-06-28 18:40:38 -03:00
ccrs 7f684023f1 Scripts/ICC: filter out tank and Frost Beaconed units in Sindragosa's fight
beaconed, that's a verb

(cherry picked from commit 714b48093f22324db6a50d17be77252446c039c1)
Signed-off-by: luis <[email protected]>
2026-06-28 18:37:57 -03:00
ccrs 1a3bcbad44 Scripts/ICC: time buffer the icy grip and breath events + repeat icy grip on third phase (right now its only casted once)
take a breath sindra... hehe
(if anyone has better timers, feel free)

(cherry picked from commit b9a3e6dc455b1daf04cfe7f3bfb3df6c304e9f9e)
Signed-off-by: luis <[email protected]>
2026-06-28 18:37:23 -03:00
ccrs 44234d9dc7 Scripts/Misc: use the new SetAggressiveStateAfter AI method on another script
(cherry picked from commit 5d2735d5d060a405569a2b7aa1abeb5218e3f0a2)
Signed-off-by: luis <[email protected]>
2026-06-28 18:36:16 -03:00