Commit Graph

14608 Commits

Author SHA1 Message Date
offl
049cba3ace DB/Quest: Convert & update support for 'Shizz Work' to SAI
Closes #24638
2020-05-18 00:08:58 +02:00
offl
2815db52a6 DB/Quest: Convert & update support for 'Finding the Survivors' to SAI
Closes #24636
2020-05-17 23:36:34 +02:00
offl
a2068cade5 DB/Creature: Convert & update support for Ashyen & Keleth to SAI
Closes #24635
2020-05-17 21:53:02 +02:00
Ovahlord
fdcb7388a6 Core/Objects: fixed destination calculation for destination based spells casted by flying units
* Additionally he PathGenerator will now check for realtime movement flags instead of creature based template data only so scripted flying movement and players will now correctly get their path calculated
2020-05-16 17:40:08 +02:00
Shauren
75ab3619bd Core/Commands: Fixed .npc add overwriting existing spawns when used on transports 2020-05-16 11:23:34 +02:00
Giacomo Pozzoni
bd2d60c267 Fixes/3.3.5 aura infinite loop (#24631)
* Core/Auras: Attempt to fix infinite loop with aura 18950 on map unload

* Core/Auras: Log a detailed error and assert when failing to remove all auras after a few tries

* Code cleanup

* Fix build warnings

* Fix more build warnings
2020-05-16 11:06:03 +02:00
joshwhedon
4db77bc913 Removing a duplicate item combat spell handling causing poisons (and others) to proc twice. (#24627)
https://github.com/TrinityCore/TrinityCore/issues/24608
2020-05-15 21:54:33 +02:00
Giacomo Pozzoni
c0b75bf40d Core/MMAPs: Adjust walkable climb and fix a lot of mmap raycast issues (#24539)
* Core/MMAPs: Adjust walkable climb

Adjust walkable climb as recast using walkableClimb also to find the poly from a position, giving priority to polys that are below the position but closer than walkableClimb.

* Temporarily disable static collision (the whole check should be removed)

* Core/Spells: removed deprecated mmap path check for TARGET_DEST_CASTER_FRONT_LEAP

* Core/Objects: allow flying units to use the helper as well (flying units casting radius based spells)

* Code refactor

* Handle raycasts that end in a point with no height in the mmap mesh as PATHFIND_NOPATH

* Walk back a bit from raycast hitpoints as sometime the 2D result point is outside of the polygons due to floating point errors.

* Remove whitespace

* Revert 4a197ba22a as a raycast point path should have the Z retrieved with getPolyHeight(). Raycast will only return a 2-point path with Start and Hitpoint/End

* Cleanup PathGenerator raycast case

* Fix PathGenerator raycast broken if start and end are on same poly.
Fix PathGenerator raycast broken if no wall is hit.
Remove unused case of using raycast with an existing previous path (can be added back properly if needed).
Remove forcing poly length to 2 when we actually have already the right number.

* Use closestPointOnPolyBoundary on the second try of finding a point on poly for raycast.
Note that in this case the mesh height is not used which might cause issues. The poly boundary height will be used instead.

* Handle cases where getPolyHeight() fails because the point is on polygon border (and caused by floating point imprecision)

* Add far from poly flags

* Set PATHFIND_INCOMPLETE in raycast case if startFarFromPoly or endFarFromPoly

* Fix blink close to walls with no valid polygon behind the wall

* Require to re-extract mmaps

Co-authored-by: Ovah <dreadkiller@gmx.de>
2020-05-15 20:43:12 +02:00
HelloKitty
43b595111d Further improve ChrRace DBC handling (#24508)
* Core/DBC: Added ChrRacesAllianceType for ChrRaces.dbc

* Core/Character: Check ChrRace DBC playable in HandleCharCreateOpcode

* Core/DBC: Implement ChrRacesFlags removing literals

Cannot take credit for this enum, derived from documentation in
https://wowdev.wiki/DB/ChrRaces

* Core/Character: Check CHRRACES_FLAGS_NOT_PLAYABLE on creation

* Core/DBC: Fix formatting of ChrRaces enums

* Core/DBC: Use ChrRaces CreatureType instead of hardcoded humanoid assumption

* Address enum style code changes
2020-05-15 20:41:16 +02:00
Shauren
1d43003cfa Scripts/Icecrown Citadel: Fixed Professor Putricide oozes not moving during their channel 2020-05-15 18:16:03 +02:00
Metalaka
e2434e4f47 Core/CreatureAI: Shambling Horror re-cast Enrage as soon as it is not stun (#24618) 2020-05-14 21:17:00 +02:00
NoName
26439c8951 Core/ByteBuffer: Fixed output truncation in ByteBuffer::hexlike (#24595)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2020-05-11 22:21:31 +02:00
ccrs
472e1fd8ae Core/Movement: 9080e78 followup
actually port back the previous implementation, now correctly
this implies that a unit that has a different victim than the one its chasing will stand still till either:
- a new movement replaces the current, for w/e reason
- the chase target is again the current victim

probably a pause implementation on the generator is a more elegant solution...

updates #24600
2020-05-11 19:38:36 +02:00
Shauren
c189fe4911 Core/Spells: Fix refreshing exclusive auras that have different values in each effect
Closes #24592
2020-05-10 16:30:48 +02:00
ForesterDev
6caba62572 Core/PacketIO: updated some pet packets (#24531)
* Core/PacketIO: Updated and enabled CMSG_PET_ABANDON

(cherry picked from commit 0b76381283)

# Conflicts:
#	src/server/game/Handlers/PetHandler.cpp
#	src/server/game/Server/Packets/PetPackets.h
#	src/server/game/Server/Protocol/Opcodes.cpp
#	src/server/game/Server/WorldSession.h

* Core/PacketIO: Updated and enabled CMSG_PET_STOP_ATTACK

(cherry picked from commit dea718e4ed)

# Conflicts:
#	src/server/game/Handlers/PetHandler.cpp
#	src/server/game/Server/Packets/PetPackets.h
#	src/server/game/Server/Protocol/Opcodes.cpp
#	src/server/game/Server/WorldSession.h

* Core/PacketIO: Updated and enabled CMSG_PET_SPELL_AUTOCAST

(cherry picked from commit 1f8268c89c)

# Conflicts:
#	src/server/game/Handlers/PetHandler.cpp
#	src/server/game/Server/Packets/PetPackets.h
#	src/server/game/Server/Protocol/Opcodes.cpp
#	src/server/game/Server/WorldSession.h

* Core/PacketIO: Updated SMSG_PET_LEARNED_SPELL

* Core/PacketIO: Updated SMSG_PET_UNLEARNED_SPELL

* fix build

* Remove whitespaces

* Unify naming for PetGUID

* Initialize variables

Co-authored-by: Carbenium <carbenium@outlook.com>
2020-05-10 16:25:08 +02:00
Sorikoff
34fecde022 Scripts/Pet: Lil' K.T (#24528)
* Lil' K.T.

* Rename 9999_99_99_99_world_335.sql to 2020_05_10_00_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-05-10 16:23:13 +02:00
ForesterDev
5eaf68670a Core/PacketIO: Updated logout opcodes (#24519)
(cherry picked from commit f59a701e29)

# Conflicts:
#	src/server/database/Database/Implementation/LoginDatabase.cpp
#	src/server/database/Database/Implementation/LoginDatabase.h
#	src/server/game/Handlers/MiscHandler.cpp
#	src/server/game/Server/Packets/AuthenticationPackets.cpp
#	src/server/game/Server/Packets/AuthenticationPackets.h
#	src/server/game/Server/Packets/CharacterPackets.h
#	src/server/game/Server/Protocol/Opcodes.cpp
#	src/server/game/Server/Protocol/Opcodes.h
#	src/server/game/Server/WorldSession.cpp
#	src/server/game/Server/WorldSession.h
#	src/server/game/Server/WorldSocket.cpp

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2020-05-10 14:37:44 +02:00
HelloKitty
772f506a3b Improve Creature DBC Handling (#24509)
* Core/DBC: Add CreatureModelDataFlags to remove hardcoded literals

* Core/DBC: Use CreatureType flags in Creature::CanGiveExperience calculation

* Core/DBC: Fixed CreatureType Flags Misinterpretation

Meaning of this was wrong, wowdev wiki was incorrect. Partially reverts
0d61e653f4

* Address enum codestyle

* Update DBCStructure.h

* Update DBCfmt.h

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-05-10 14:30:25 +02:00
Shauren
1fecbc6892 Core/Units: Allow mind controlling non-controllable vehicles (for example players that become vehicle during boss encounters or creatures that only are vehicles to show non standard power type)
Closes #24562
2020-05-06 16:45:03 +02:00
NoName
5bbab32793 Core/Maps: fix respawn times for manual respawns (#24571)
by joshwhedon
2020-05-05 21:09:50 +02:00
ccrs
ac12bd1391 Core/Movement: modify MovementInform trigger condition & checks in ChaseMovementGenerator 2020-05-03 17:20:37 +02:00
ccrs
71ed2e5d5e Core/Movement: de832b6 followup
lets keep that failsafe there, doesnt hurt
2020-05-03 17:03:12 +02:00
ccrs
de832b6980 Core/Movement: modify MovementInform trigger condition & checks in FollowMovementGenerator
ref #24552
2020-05-03 16:53:21 +02:00
Shauren
829cf38c67 Core/Spells: Relaxed aura exclusivity check to allow casting spells that have other, non-aura effects even if aura will not be applied
Closes #24553
2020-05-03 16:19:19 +02:00
ccrs
ecac9d79e3 Core/GameObject: b0db728 followup 2020-05-03 03:12:34 +02:00
ccrs
b8422e667b Core/Movement: 0e2342c followup 2020-05-02 22:52:01 +02:00
ccrs
eedb2d3343 Build: fix nopch
hey there
2020-05-02 11:42:31 +02:00
Ovahlord
3144471209 Core/Objects: fixed build 2020-05-02 00:18:11 +02:00
Ovahlord
a548d9f9b0 Core/Objects: use the static vmap check in MovePositionToFirstCollision for all path results to avoid falling below wmo surfaces when the mmap path returns unreliable data 2020-05-02 00:06:34 +02:00
Shauren
978745220a Core/Spells: Fixed refreshing stat buff auras that have been improved by talents
Closes #24527
2020-05-01 21:02:01 +02:00
Ovah
6485422c61 Core/Objects: further improvements for MovePositionToFirstCollision (#24523)
* Core/Objects: further improvements for MovePositionToFirstCollision

* the PathGenerator will now normalize incomplete destinations as well
* normalize destination positions before launching detour raycasts to get better direction data
* exclude unwanted pathfinding results from further use to avoid unintended behaivior

* Core/PathFinding: Split PATHFIND_FARFROMPOLY into PATHFIND_FARFROMPOLY_START and PATHFIND_FARFROMPOLY_END for start and end position

Handle PATHFIND_FARFROMPOLY_END as valid in MovePositionToFirstCollision

Co-authored-by: jackpoz <giacomopoz@gmail.com>
2020-05-01 13:43:24 +02:00
Killyana
d3578c3474 Item/Script: Remove unused script, related to the previous commit
Ref #24522
2020-04-30 19:58:13 +02:00
offl
9638f0ad0b DB/Quest: Becoming a Spellfire Tailor
Closes #24522
2020-04-30 19:37:22 +02:00
Ovahlord
cf849df50a Core/Objects: optimize and improve MovePositionToFirstCollision results
* removed redundant static LOS checks as they are covered by the mmap raycast prior to the check
* removed unnecessary VMap height lookups to determine rapid falloffs as they are covered by the mmap raycast as well
2020-04-29 23:52:56 +02:00
ForesterDev
8128bb97db Core/Player: add helper methods for PLAYER_FLAGS_DEVELOPER (#24511)
* Core/Player: add helper methods for PLAYER_FLAGS_DEVELOPER. Update .dev command to new command model

* Rename _player -> player
2020-04-29 22:41:51 +02:00
NoName
c38a9d757d Core/Spells: implement SMSG_MOUNT_RESULT and use it for transformed mounting cases (#24507)
cherry-pick from fb0d2ed2b9

Co-authored-by: Ovah <dreadkiller@gmx.de>
2020-04-29 22:37:35 +02:00
ForesterDev
f01e53f3f3 Core\GameObject: corrected check for IsWithinDistInMap (#24506) 2020-04-29 22:35:08 +02:00
jackpoz
dc7856644f Core/PathFinding: Fix buffer overflow 2020-04-29 22:01:23 +02:00
NoName
22aaf32a79 Scripts/IcecrownCitadel: Adding IsAlive check to avoid possible crash in Event (#24514) 2020-04-29 21:14:27 +02:00
Shauren
411033ddf8 Core/PacketIO: Send item flags in auction items for the lulz, its bugged in the client anyway 2020-04-28 22:53:40 +02:00
Shauren
79edf74768 Core/AuctionHouse: Fixed auction mail subjects for items with random properties 2020-04-28 20:01:48 +02:00
Shauren
e795eed96b Warning fix 2020-04-28 19:44:41 +02:00
Shauren
3ebcf3f1a9 Core/AuctionHouse: Fixed auction mail bodies 2020-04-28 19:24:24 +02:00
Shauren
50576fa1f5 Core/Auras: Prevent getting negative scale with auras
Closes #24040
2020-04-28 18:03:51 +02:00
Shauren
43d9ffd1bc Core/Spells Fixed scroll stacking check when not targeting self
* Reuse code that removes non-stackable auras at apply to check before casting the spell to keep reagents/cast item
2020-04-28 11:02:27 +02:00
FAQ
8d87c834e7 Core/Spells: Scrolls should not be consumed, when they fail to apply. 2020-04-28 11:02:27 +02:00
Gildor
2e42156f8d Remove tabs (ee5eace3c6) (#24510) 2020-04-28 10:58:31 +02:00
Killyana
ee5eace3c6 DB/Pet: Lil' K.T
Ref #1364
2020-04-28 02:04:53 +02:00
Ovahlord
1610337e67 Core/Vehicles: update the power display of vehicles before being added to world to avoid building unnecessary update_object packets right after spawning them 2020-04-27 19:29:01 +02:00
HelloKitty
f1ad04b31b Core/DataStores: Use ResSicknessSpellID from ChrRaces instead of hardcoding it (#24504) 2020-04-27 17:55:25 +02:00