Commit Graph

14352 Commits

Author SHA1 Message Date
Ovahlord
01584cb0b9 Core/Movement: reset position update interrupt info after the interrupt checks have been executed
* for discussion see: 02daf1bf3a (r36916229)
2020-01-22 20:40:09 +01:00
Ovah
02daf1bf3a 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
2020-01-22 13:32:38 +01:00
jackpoz
d293dd3782 Core/MMaps: Handle path on same position
Handle path on the same polygon between 2 very close positions as a normal path.
2020-01-20 22:48:25 +01:00
Giacomo Pozzoni
67d9d04d63 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
2020-01-20 08:15:31 +01:00
Killyana
c1580108f6 DB/Quest: Convert Reports from the Field to SAI 2020-01-19 22:25:56 +01:00
NoName
50d9d9196d 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>
2020-01-19 17:51:30 +01:00
Sorikoff
bfac09bbcf Scripts/Quests: Reports from the Field (#24075) 2020-01-19 16:45:05 +01:00
Sorikoff
07c0bfe11b 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>
2020-01-19 16:36:27 +01:00
Sorikoff
f20b147c71 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>
2020-01-19 16:35:28 +01:00
jackpoz
9f8477cd11 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
2020-01-18 20:24:26 +01:00
jackpoz
c1df161e1d 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.
2020-01-17 23:05:25 +01:00
NoName
b3b7f0761d Core/Spells: SPELL_AURA_48 implementation (#24054)
by xvwyh
2020-01-17 16:50:50 +01:00
Killyana
8942142286 Spell: "Fierce Lightning Stike" must hit only one target 2020-01-17 01:12:43 +01:00
Killyana
4a6ecbaec5 DB/Quest: Convert the quest "Missing in Action" to SAI
Closes #24030
2020-01-15 16:08:59 +01:00
Shauren
e660c8bc19 Scripts: Fix rbac permission for skipping default boss sequencing check 2020-01-14 23:53:08 +01:00
Kelno
2b024e8fbf 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>
2020-01-14 21:16:23 +01:00
Regigicas
1369620436 Core/SAI: Fix SMART_ACTION_SET_MOVEMENT_SPEED behavior (#24059) 2020-01-14 20:02:18 +01:00
Giacomo Pozzoni
039534d1db Scripts/Ulduar: Attempt to fix Yogg-Saron not evading on wipe (#24055) 2020-01-14 19:57:16 +01:00
Alan Deutscher
a0c07655eb 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.
2020-01-14 19:49:32 +01:00
xvwyh
d4ba47a76e Core/DynamicObjects: Restore the ability of DynamicObjects to be world objects which was accidentally removed in f0f4a620fb breaking Far Sight (#24046)
Fixes #17081
2020-01-14 19:42:30 +01:00
ccrs
330cbb55fb Scripts/ICC: include missing call from UnitAI::JustExitedCombat override in npc_green_dragon_combat_trigger 2020-01-12 00:14:45 +01:00
Shauren
c188d4db85 Scripts/Icecrown Citadel: Removed unneccessary combat hacks from Valithria Dreamwalker 2020-01-11 23:49:33 +01:00
Ovahlord
87c79c9485 Core/Events: allow to override holiday durations and correct Lunar Festival duration down to 2 weeks
* the new field must be set for every new holiday date entry to take effect if you want to override the duration of the given
2020-01-11 23:00:38 +01:00
jackpoz
33e4d4cd05 Scripts/Misc: Fix static analysis issues. 2020-01-11 22:56:08 +01:00
Killyana
a149261e94 Quest/Scripts: Remove some hacks from "Trolls Is Gone Crazy!" 2020-01-09 23:10:46 +01:00
Giacomo Pozzoni
29bf280e34 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
2020-01-09 19:38:45 +01:00
Keader
1bdc792559 Scripts/Blood Furnace: Fixed Broggok reset issues and some little improvements
Closes #23658
2020-01-07 23:09:59 -03:00
Giacomo Pozzoni
37ffdc05b2 Scripts/Misc: Fix build warnings 2020-01-07 08:28:21 +01:00
Killyana
434cdb1fa0 DB/Spawns: Remove "Hand of the Deceiver" spawns as summoned by a script 2020-01-05 22:16:01 +01:00
Killyana
10ba39e626 Creature/Script: Add text target for npc_shadowfang_prisoner 2020-01-03 15:55:26 +01:00
Shauren
677834dca7 Core/SAI: Add missing break (fixes incorrect db errors) 2020-01-03 13:44:42 +01:00
dr-j
a04a80b906 DB/Quest: Move "Gyromast's Revenge" to SAI
Closes #24034
2020-01-02 23:34:10 +01:00
Gildor
78e77a086b Core/Spells: Fix Sacred Shield (Paladin) absorb amount with ICC buff (#24023) 2020-01-02 13:07:39 -03:00
Aokromes
ed93932537 New year
Say bye bye to every year changing dates
2020-01-02 06:25:50 +01:00
ccrs
7ffe018571 Scripts/ICC: little bit of cleanup in Valithria after the "recent" changes 2020-01-02 01:06:38 +01:00
jackpoz
be65f7d60e Core/Misc: Fix no-pch build 2020-01-01 22:57:13 +01:00
Lopfest
443a425c4c Core/SAI: Implement new action to set movement speed
(cherry picked from commit 5dd6d31c01)

# Conflicts:
#	src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
#	src/server/game/AI/SmartScripts/SmartScriptMgr.h
2020-01-01 19:56:05 +01:00
Killyana
9f057d7082 Core/Movement: Remove a wrong set SetWalk from HomeMovementGenerator 2020-01-01 19:42:10 +01:00
Killyana
0eb9e4d805 line 2020-01-01 17:38:52 +01:00
Killyana
a32aeceb0d Core/Creature: Clear creature focus after an evade 2020-01-01 17:19:37 +01:00
Giacomo Pozzoni
4ccf01de39 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
2020-01-01 16:28:33 +01:00
Killyana
7fb7432620 Core/AI: Fix creatures not updating their target properly once engaged
Closes  #21562
2019-12-30 19:03:14 +01:00
Giacomo Pozzoni
88a14251e2 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
2019-12-30 15:58:39 +01:00
Keader
2f31119ea3 Scripts/ICC: Fixed Valithria Archmages casting while dead
After 9c603ea87f, dead creatures will tick UpdateAI
Closes: #24012
2019-12-30 11:26:07 -03:00
Gildor
617e9dacc8 Core/Spells: Fix Power Word: Shield (Priest) absorb amount (#23985)
Closes #22090
2019-12-30 10:46:10 -03:00
Keader
e15354dc7f Scripts/Spells: Fixed Black Magic proc with some druid spells (#24002) 2019-12-30 10:42:21 -03:00
Giacomo Pozzoni
e698c17a26 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
2019-12-29 16:24:53 +01:00
Eridium
b60786a916 Spell/Script: Egg Nog (#24007)
Closes  #23996
2019-12-29 12:09:31 -03:00
Killyana
cb11ad97fb Creature/AI: Reset CoolDowns on evade
Closes  #24008
2019-12-29 14:05:03 +01:00
Michael
6b19f4a0ab 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
2019-12-28 22:58:18 +01:00