Commit Graph

26650 Commits

Author SHA1 Message Date
Ovah
cdeb752941 Core/Movement: improved RandomMovementGenerator wait handling to get closer to retail behaivior (#24093)
* according to observations Blizzard is letting creatures do 2 up to 10 spline movements right after each other before waiting for a couple seconds

(cherry picked from commit 78c1216bcf)
2021-12-20 23:47:37 +01:00
Kelno
ce8c83ef6f Core/Maps: cosmetic correction on comment (#24096)
(cherry picked from commit d0efd76c92)
2021-12-20 23:47:37 +01:00
Ovahlord
606597f4f8 Core/Movement: reset position update interrupt info after the interrupt checks have been executed
* for discussion see: 02daf1bf3a (r36916229)

(cherry picked from commit 01584cb0b9)
2021-12-20 23:47:37 +01:00
Ovah
43a7091e8a Core/Movement: properly fix aura interrupts during movement (#24068)
We want our movement to be fully updated before even thinking about interrupting anything. The old logic was updating positions, interrupting stuff and afterwards updating movement generators. This way we were ending up with false interrupts.

properly fixes #22908

(cherry picked from commit 02daf1bf3a)
2021-12-20 23:47:23 +01:00
jackpoz
0ed58b0952 Core/MMaps: Handle path on same position
Handle path on the same polygon between 2 very close positions as a normal path.

(cherry picked from commit d293dd3782)
2021-12-20 23:16:21 +01:00
Giacomo Pozzoni
1a070fd127 Core/PathGenerator: Fix path generator returning shortcuts when start and end are on the same polygon (#24083)
* Core/PathGenerator: Fix path generator returning shortcuts when start and end are on the same polygon

Second try of handling paths on same poly in a better way than just building a shortcut

* Fix movement generators using paths with start/end positions far from mmap polygons

* Include flag PATHFIND_FARFROMPOLY even with a normal path if start or end were far away from mmap poly

(cherry picked from commit 67d9d04d63)
2021-12-20 23:15:54 +01:00
Killyana
4dfaaa61ce DB/Quest: Convert Reports from the Field to SAI
(cherry picked from commit c1580108f6)
2021-12-20 23:14:55 +01:00
NoName
5e267dda71 Core/Gameobject: Rename GO_STATE_ACTIVE_ALTERNATIVE to GO_STATE_DESTROYED (#24062)
* Step 1: Rename GO_STATE_ACTIVE_ALTERNATIVE to GO_STATE_DESTROYED

* Update src/server/shared/SharedDefines.h

Co-Authored-By: Trond B. Krokli <38162891+illfated@users.noreply.github.com>

Co-authored-by: Trond B. Krokli <38162891+illfated@users.noreply.github.com>
(cherry picked from commit 50d9d9196d)
2021-12-20 23:13:47 +01:00
Sorikoff
868784636b Scripts/Quests: Reports from the Field (#24075)
(cherry picked from commit bfac09bbcf)
2021-12-20 23:08:41 +01:00
Sorikoff
a4b8371c93 Scripts/Violet Stand: Warmages (#24084)
* Scripts/Violet Stand: Warmages

* Rename 9999_99_99_99_world.sql to 2020_01_19_02_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
(cherry picked from commit 07c0bfe11b)
2021-12-20 23:06:17 +01:00
Sorikoff
97c28f4a42 Scripts/Transitus Shield: Warmages (#24082)
* Scripts/Transitus Shield: Warmage

* Scripts/Transitus Shield: SQL fix

* Scripts/Transitus Shield: improve SQL

* Rename 9999_99_99_99_world.sql to 2020_01_19_01_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
(cherry picked from commit f20b147c71)
2021-12-20 23:04:44 +01:00
jackpoz
4bab876fe4 Core/PathGenerator: Temporarily revert 29bf280e34
Temporarily revert 29bf280e34 since our recast implementation always expects a path to have different polygons.
A proper fix will be implemented later on, splitting a path with 1 single polygons in smaller steps in a similar way of how FindSmoothPath() works

(cherry picked from commit 9f8477cd11)
2021-12-20 23:01:40 +01:00
jackpoz
87e5b3a08c Scripts/Ulduar: Fix Ominous Clouds movements
Fix Ominous Clouds being only clockwise, now they move both clock and counter-clock wise.
Add a workaround for GenericMovementGenerator not handling correctly cyclic splines started by MoveCirclePath(), stopping the movement after a single round. The workaround code can be removed once the bug in GenericMovementGenerator is fixed.

(cherry picked from commit c1df161e1d)
2021-12-20 22:34:14 +01:00
NoName
37178ff311 Core/Spells: SPELL_AURA_48 implementation (#24054)
by xvwyh

(cherry picked from commit b3b7f0761d)
2021-12-20 22:30:41 +01:00
Killyana
ef794af489 Spell: "Fierce Lightning Stike" must hit only one target
(cherry picked from commit 8942142286)
2021-12-20 22:15:44 +01:00
Shauren
5d02739b98 Scripts: Fix rbac permission for skipping default boss sequencing check
(cherry picked from commit e660c8bc19)
2021-12-20 21:40:47 +01:00
Kelno
45585b5305 Fixed PvP Combat timer never getting refreshed (#24058)
* Fixed PvP Combat timer never gets refreshed while meleeing

* Apply Treeston feedback

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
(cherry picked from commit 2b024e8fbf)
2021-12-20 21:25:46 +01:00
Regigicas
aa81d8979f Core/SAI: Fix SMART_ACTION_SET_MOVEMENT_SPEED behavior (#24059)
(cherry picked from commit 1369620436)
2021-12-20 21:25:33 +01:00
Giacomo Pozzoni
ce25c212e0 Scripts/Ulduar: Attempt to fix Yogg-Saron not evading on wipe (#24055)
(cherry picked from commit 039534d1db)
2021-12-20 21:24:51 +01:00
Alan Deutscher
cd72ecce78 Scripts/Spells: fix Turkey Timer duration (#24048)
* spell_gen_turkey_marker::OnPeriodic: Pop expired stack timestamps from tracking list.

* Be a bit more explicit about the data type of removedCount.

* Formatting nudge.

* Remove brackets.

(cherry picked from commit a0c07655eb)
2021-12-20 21:24:37 +01:00
xvwyh
9b79d1b410 Core/DynamicObjects: Restore the ability of DynamicObjects to be world objects which was accidentally removed in f0f4a620fb breaking Far Sight (#24046)
Fixes #17081

(cherry picked from commit d4ba47a76e)
2021-12-20 21:22:37 +01:00
ccrs
25a987496c Scripts/ICC: include missing call from UnitAI::JustExitedCombat override in npc_green_dragon_combat_trigger
(cherry picked from commit 330cbb55fb)
2021-12-20 21:10:33 +01:00
Shauren
e43a02668f Scripts/Icecrown Citadel: Removed unneccessary combat hacks from Valithria Dreamwalker
(cherry picked from commit c188d4db85)
2021-12-20 21:07:50 +01:00
Killyana
e9ba28afc9 Quest/Scripts: Remove some hacks from "Trolls Is Gone Crazy!"
(cherry picked from commit a149261e94)
2021-12-20 21:07:28 +01:00
Shauren
bfde919694 Tools/mmaps_generator: Replace hardcoded map ids with db2 data checks 2021-12-20 20:50:28 +01:00
Giacomo Pozzoni
dd929665e5 Core/PathGenerator: Fix path generator returning shortcuts when start and end are on the same polygon (#24036)
* Core/PathGenerator: Fix path generator returning shortcuts when start and end are on the same polygon

Fix path generator returning shortcuts when start and end are on the same polygon by handling this case as if start and end were on 2 different polygons. This will ensure BuildPointPath() gets called which calls FindSmoothPath(), making sure each step is not longer than SMOOTH_PATH_STEP_SIZE (4 yards)

* Change ingame cast error message to SPELL_FAILED_NOPATH from SPELL_FAILED_OUT_OF_RANGE if the generated path is too long

(cherry picked from commit 29bf280e34)
2021-12-20 20:35:37 +01:00
Keader
174f4bad3d Scripts/Blood Furnace: Fixed Broggok reset issues and some little improvements
Closes #23658

(cherry picked from commit 1bdc792559)
2021-12-20 20:18:55 +01:00
Giacomo Pozzoni
7c97fa4449 Scripts/Misc: Fix build warnings
(cherry picked from commit 37ffdc05b2)
2021-12-19 23:31:30 +01:00
Killyana
71e474e14f DB/Spawns: Remove "Hand of the Deceiver" spawns as summoned by a script
(cherry picked from commit 434cdb1fa0)
2021-12-19 23:27:12 +01:00
Killyana
3f3abe9ad0 Creature/Script: Add text target for npc_shadowfang_prisoner
(cherry picked from commit 10ba39e626)
2021-12-19 19:49:52 +01:00
Shauren
d44d218046 Core/Phasing: Delete old and unused enum 2021-12-19 18:12:28 +01:00
Shauren
68a25f5e9b Core/Scripts: Add missing implementation for samePhase argument of ScriptedAI::ForceCombatStopForCreatureEntry 2021-12-19 18:12:12 +01:00
ccrs
d7571e5d1f Scripts/ICC: little bit of cleanup in Valithria after the "recent" changes
(cherry picked from commit 7ffe018571)
2021-12-19 18:05:23 +01:00
Killyana
956a342845 Core/Movement: Remove a wrong set SetWalk from HomeMovementGenerator
(cherry picked from commit 9f057d7082)
2021-12-19 17:44:10 +01:00
Killyana
a7cf209428 Core/Creature: Clear creature focus after an evade
(cherry picked from commit a32aeceb0d)
2021-12-19 17:44:00 +01:00
Giacomo Pozzoni
d095d4afe9 Fix fleeing speed to 66% run speed (#24025)
* Core/Movement: Fix fleeing speed to 66% run speed

Fix fleeing speed to 66% run speed until the creature starts returning home

* Fix build

* Don't check speed type

* Don't apply speed reduction twice

* Fix no-pch (1st try)

* Make sure every spell focus is interrupted when seeking assistance

(cherry picked from commit 4ccf01de39)
2021-12-19 17:39:25 +01:00
Killyana
d946d74ff9 Core/AI: Fix creatures not updating their target properly once engaged
Closes  #21562

(cherry picked from commit 7fb7432620)
2021-12-19 15:54:20 +01:00
Giacomo Pozzoni
8d32849b34 Core/MMaps: Fix charge underwater/falling (#24010)
* Core/MMaps: Fix charge underwater

Fix charge sometimes returning "no path available" when swimming/underwater.
Fix charge selecting a destination point 4 yards above swimming/underwater targets

* Allow falling units to charge targets that are below (lower Z coordinate)

* Disable "raycast" pathfinding as it's not blizzlike.

This might show some strange paths when charging with a target in front.
It also fixes some falling undermap issues.

This Reverts 272009ebee

* Remove Z offset when charging a target as it never made sense

(cherry picked from commit 88a14251e2)
2021-12-19 15:54:09 +01:00
Keader
80dbecbd56 Scripts/ICC: Fixed Valithria Archmages casting while dead
After 9c603ea87f, dead creatures will tick UpdateAI
Closes: #24012

(cherry picked from commit 2f31119ea3)
2021-12-19 15:51:30 +01:00
Giacomo Pozzoni
292df30394 Core/Movement: Fix wrong orientation set when pausing movement (#23986)
* Core/Movement: Fix wrong orientation set when pausing movement

* Update MoveSpline.h

* Update Unit.cpp

(cherry picked from commit e698c17a26)
2021-12-19 15:48:43 +01:00
Eridium
2b27278516 Spell/Script: Egg Nog (#24007)
Closes  #23996

(cherry picked from commit b60786a916)
2021-12-19 15:48:29 +01:00
Killyana
a09d5d4854 Creature/AI: Reset CoolDowns on evade
Closes  #24008

(cherry picked from commit cb11ad97fb)
2021-12-19 15:46:40 +01:00
Michael
72e61625bc additional output for additem command (#24006)
* additional output for additem command

when removing items with additem:

if the user provides an amount too large of a negative amount, the command will now output the amount of items that could not be destroyed.

* renamed sql file to hopefully avoid conflicts

* added clarification to failure string

* changed unneeded else if condition to else

* code style; braces

* Update and rename 9999_99_99_99_world.sql to 2019_12_28_01_world.sql

(cherry picked from commit 6b19f4a0ab)
2021-12-19 15:46:20 +01:00
jackpoz
2327ff4d6d Core/Movement: Fix fleeing speed to 66% run speed
Fix AssistanceMovementGenerator using 100% MOVE_RUN speed instead of 66% . Please note that the fleeing mechanic still has some open issues that this single commit doesn't fix

(cherry picked from commit 862d47394b)
2021-12-19 15:34:20 +01:00
Giacomo Pozzoni
b40cadd5a1 Core/Movement: Fix stunned falling units freezing the client (#24000)
(cherry picked from commit 8f94c9ef6b)
2021-12-19 15:33:57 +01:00
Keader
b9def15aa7 Scritps/ICC: Fixed resistance calculation for Mutated Transformation (Professor Putricide) (#23858)
More Info in: #23837

(cherry picked from commit 9f7b464a6a)
2021-12-19 15:33:41 +01:00
Giacomo Pozzoni
96ec8477f0 Core/Creatures: Fix spell_school_immune_mask being applied against positive spells too (#23999)
(cherry picked from commit 18a4cbee5e)
2021-12-19 15:31:34 +01:00
Giacomo Pozzoni
fda1630f74 Core/Spells: Fix Spellsteal stealing Silence buff of Arcane Torrent (#23992)
(cherry picked from commit 7920347f43)
2021-12-19 15:30:59 +01:00
Giacomo Pozzoni
1635a34228 Core/Movement: Add more LOS checks (#23991)
Add more LOS checks to ensure Units don't cross trees/walls when fleeing/moving

(cherry picked from commit 13ad8b66d9)
2021-12-19 15:30:13 +01:00
Meji
c4fee8c5cf Core/Spells: Implemented spell effect 204 (SPELL_EFFECT_CHANGE_BATTLEPET_QUALITY) (#27425) 2021-12-19 13:27:27 +01:00