Commit Graph
12565 Commits
Author SHA1 Message Date
Ovahlord bf04bd36db Core/Units: do not update facing for mind controlled creatures 2020-09-24 14:31:18 +02:00
Ovahlord 361ac2292b Core/Movement: add velocity field to waypoint_data to allow specifying custom speed value for waypoints and cyclic splines
* standartized member naming in WaypointNode and WaypointPath struct
2020-09-24 14:30:48 +02:00
Giacomo Pozzoni 8bbe17c684 Core/Creature: Ignore combat reach when looking for assisting creatures 2020-09-24 00:37:11 +02:00
Ovahlord adffbaf375 Core/Units: restrict target guid based turning to creatures only 2020-09-23 20:48:45 +02:00
Ovahlord c9afa1a6ed Core/Units: renamed SetInFront to SetOrientationTowards to clarify its actual functionality and added comments to SetOrientationTowards, SetFacingTo and SetFacingToObject 2020-09-23 20:48:44 +02:00
Ovahlord 0a480f3ae8 Core/Units: update internal facing of units on every update tick when a target guid or a tracking channeled spell is being used 2020-09-23 20:48:43 +02:00
Ovahlord 27c1fd6aee Core/Movement: implement cyclic spline database support 2020-09-21 00:32:55 +02:00
xvwyh 6342b0def2 Core/PathFinding: Fix GetPathPolyByPosition() using only 2D distance instead of 3D
Signed-off-by: jackpoz <giacomopoz@gmail.com>
2020-09-19 21:41:31 +02:00
Ovahlord f067228bd7 Core/Spells: allow the channel target tracking to bypass no turn unit states 2020-09-19 20:22:51 +02:00
Ovahlord 02d700f3c2 Core/Spells: fixed a potential crash when trying to turn towards a non-existing target on spell cast 2020-09-15 14:51:37 +02:00
Ovahlord d606fa4688 Core/Spells: update serverside orientation of SPELL_ATTR1_CHANNEL_TRACK_TARGET on periodic aura update ticks instead of every spell update tick 2020-09-13 22:43:11 +02:00
Ovahlord a51d331e9a Core/Spells: do not save Priest's T11 Chakra Flow bonus to database to fix an exploit that was causing it to permanently last on the player 2020-09-13 22:24:02 +02:00
Ovahlord df370885a0 fixed nopch build 2020-09-11 21:43:30 +02:00
Giacomo Pozzoni fe30a6ef00 Core/AI: Make critters flee as soon as engaged in combat and make them evade after they stop running in fear 2020-09-11 21:33:54 +02:00
Ovahlord b6ea5033fa Core/Movement: 5cc2b41146 codestyle followup 2020-09-11 21:13:01 +02:00
Ovahlord 5cc2b41146 Core/Movement: setting path length limits will now round the amount of smooth path points up instead of down to reduce edge cases in which charge effects close to their maximum cast range would return no path 2020-09-11 20:50:57 +02:00
Ovahlord 40cda24dc2 Core/GameObjects: trigger npcs that are summoned for gameobject casts will now inherit the gameobject's phase shift as well to hit intended phased targets 2020-09-11 16:23:42 +02:00
Eridium 2aa05b951b Core/GameObject: Remove linked traps when the main GameObject is remo… (#24480)
* Core/GameObject: Remove linked traps when the main GameObject is removed from from the world

* Indentation
2020-09-11 15:24:21 +02:00
Ovahlord e871d2f0eb Fixed build 2020-09-11 15:23:53 +02:00
Giacomo Pozzoni 2cea40a466 Core/GameObjects: Skip LoS checks for traps (#23936)
* Core/GameObjects: Skip LoS checks for traps

* Core/GameObjects: Fix spells cast by traps missing always

* Scripts/Spells: Fix WSG heal buff not healing

The WSG green heal buff is now cast by a GameObject so the spell target should be used to calculate the healing, not the GameObject.

# Conflicts:
#	src/server/scripts/Spells/spell_generic.cpp
2020-09-11 15:12:12 +02:00
ariel- dcd017bbad Core/Spell: fix LoS checks for GameObject spells
Closes #21580
2020-09-11 15:11:24 +02:00
ariel- d34eb1a276 Core/GameObject: kill uninitialized, unused field from GameObjectTemplateAddon struct 2020-09-11 15:10:18 +02:00
ariel- 9040070520 Core/GameObject: refactor dismounting on use
# Conflicts:
#	src/server/game/Entities/GameObject/GameObject.cpp
2020-09-11 15:09:58 +02:00
ariel- 46866bad04 Core/GameObject: implement dismount on use of certain GOs
- The fact of player dismounting was entirely client-sided, with no server code enforcing it.

Closes #19979

# Conflicts:
#	src/server/game/Entities/GameObject/GameObject.cpp
2020-09-11 15:08:53 +02:00
Wyrserth d2b27bc43c Core/Misc: don't allow players to use/activate/loot non-allowed gameobjects while under the effect of a damage immunity aura (#23319)
* Core/Misc: don't allow players to use/activate/loot non-allowed gameobjects while under the effect of a damage immunity aura.

* Forgot to change this in last-second rename.

* Apply suggested changes, thanks Shauren!

# Conflicts:
#	src/server/game/Entities/GameObject/GameObject.cpp
#	src/server/game/Entities/Unit/UnitDefines.h
#	src/server/game/Entities/Unit/enuminfo_UnitDefines.cpp
#	src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp
2020-09-11 15:06:15 +02:00
Killyana 8c4ce86525 SAI/GameObject: Despawn the linked trap with the gameobject
Closes #23105
2020-09-11 15:02:17 +02:00
Treeston 8b81f1d9f0 revert 5df7ffa, hack 2020-09-11 15:01:42 +02:00
Treeston 77233dd073 Core/GameObject: Hunter traps now always put the Hunter in combat with the target when triggered. Closes #21847. 2020-09-11 15:00:58 +02:00
Killyana 5677d65eed Core/GameObject: Fix linked traps not being despawned properly and remove deprecated code
Closes #20159
2020-09-11 14:59:12 +02:00
Ovahlord 3274117cec Core/Spells: cleaned up and improved spell focusing behavior
* removed hacky update_object call from SetSpellFocus helper
* corrected facing behaivior in SetSpellFocus
* spells with SPELL_ATTR5_DONT_TURN_DURING_CAST will no longer set a target guid for proper clientside facing behaivior
* channeled spells with a destination target will no longer pick a objectTarget
* update serverside orientation for channeled spells with SPELL_ATTR1_CHANNEL_TRACK_TARGET
2020-09-09 20:08:35 +02:00
HelloKitty a4e5afed50 Core/Addon: Correct Banned Addon length in SMSG_ADDON_INFO packet (#25424) 2020-09-09 16:18:32 +02:00
Treeston 5073370126 Core/Combat: When entering a vehicle, transfer any current threat to that vehicle. Closes #1340. 2020-09-08 21:02:23 +02:00
jackpoz 129614cbf8 Core/PathFinding: Enable pathfinding (MMaps) by default 2020-09-08 20:58:37 +02:00
Keader 2159703022 Core/Spells: Implemented PROC_ATTR_CANT_PROC_FROM_ITEM_CAST 2020-09-08 20:58:11 +02:00
Shauren fb11c148c8 Core/Spells: Removed PROC_ATTR_DISABLE_EFF_* attributes and store that in a separate column 2020-09-08 20:56:11 +02:00
Treeston 8385c3ffd3 Core/Movement: MoveSplineFlag::animId -> animTier, MoveSpline::GetAnimation() -> GetAnimationTier() 2020-09-08 20:52:34 +02:00
Shauren 64bc20bf35 Core/Players: Directly store PlayerSpell in m_spells, not as pointer 2020-09-07 21:36:13 +02:00
Ovahlord c46ae64384 fixed nopch build 2020-09-02 10:32:44 +02:00
Ovahlord 64dd02acb0 Core/Vendors: converted SMSG_VENDOR_INVENTORY to packet class 2020-09-02 00:09:28 +02:00
Ovahlord 9bf26d19fa Core/Spells: Divine Purpose will no longer get consumed by Divine Storm 2020-08-31 18:18:54 +02:00
Ovahlord aba4da0898 Core/Spells: revert ec997a4715 and apply stricter rules to avoid unwanted behaivior 2020-08-30 14:30:55 +02:00
Ovahlord ec997a4715 Core/Spells: revert SPELL_ATTR5_INCLUDE_MELEE_RANGE naming since all non-generic aoe spells are suposed to use hitbox sums instead 2020-08-30 14:17:01 +02:00
Ovahlord ce5d28617d Core/Packets: converted CMSG_GENERATE_RANDOM_CHARACTER_NAME, SMSG_GENERATE_RANDOM_CHARACTER_NAME_RESULT, CMSG_CHAR_DELETE, SMSG_CREATE_CHAR, SMSG_DELETE_CHAR and CMSG_PLAYER_LOGIN to packet class 2020-08-30 02:23:39 +02:00
Ovahlord 62a96c8f30 Core/AI: SortByDistance will now sort the referenced list instead of a copy of it. This fixes MinDistance and MaxDistance target selection 2020-08-30 00:15:35 +02:00
Ovahlord 94ad82b4e1 Core/Spells: fixed several miss chance calculations in melee and spell hit result calculations 2020-08-30 00:14:42 +02:00
Ovahlord 27bbba32aa Core/Spells:
* fixed Protector of the Innocent talent
* fixed Tower of Radiance talent
* fixed Blessed Life talent
* fixed Gift of the Earthmother Rejuvenation instant heal effect
2020-08-29 21:33:16 +02:00
Giacomo Pozzoni 6a8ecc3ee3 Core/Misc: Fix issues reported by static analysis (#25351)
* Core/Misc: Fix issues reported by static analysis

* Core/Vmaps: Code cleanup after e777161888
# Conflicts:
#	src/common/Collision/DynamicTree.cpp
#	src/server/game/Entities/Object/Object.cpp
#	src/server/game/World/World.cpp
2020-08-29 13:49:21 +02:00
Ovahlord 85018f9421 Core/Spells: fixed name clash between local variables and class member corpseTarget 2020-08-29 13:15:43 +02:00
kvipka e6e20bd574 Scripts/InstanceScript: Fix an issue where LoadAllGrids would load creatures before TeamInInstance was properly set (PR #25340)
# Conflicts:
#	src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp
2020-08-29 00:48:20 +02:00
Shauren bdb6705911 Core/Misc: Use "proper" type for respawn info map key 2020-08-29 00:47:28 +02:00