Commit Graph

399 Commits

Author SHA1 Message Date
hondacrx 738ef0b1d5 Core/Gameobjects: Traps shouldn't ignore IsImmuneToNPC/IsImmuneToPC and IsInSanctuary rules if has owner
Port From (https://github.com/TrinityCore/TrinityCore/commit/fb39553831936c589697390e4a1827c977103c22)
2022-02-27 23:22:55 -05:00
hondacrx 9f72f655ab Core/SAI: Support SMART_TARGET_POSITION in SMART_ACTION_BECOME_PERSONAL_CLONE_FOR_PLAYER
Port From (https://github.com/TrinityCore/TrinityCore/commit/a270005de1122d18ea4b4e01b114a87bc0e7c0eb)
2022-02-27 15:07:03 -05:00
hondacrx 6df3ca3a3b Core/SAI: Add SMART_ACTION_BECOME_PERSONAL_CLONE_FOR_PLAYER
Port From (https://github.com/TrinityCore/TrinityCore/commit/f383c0ea214cc4da2d02b81e26297d77ff59c7ed)
2022-02-27 14:29:40 -05:00
hondacrx 06df87c79a Core/Conditions: Added conditions for object visibility
Port From (https://github.com/TrinityCore/TrinityCore/commit/b987a8968b45b8d5c86ab7e66d3910d2ecfe0963)
2022-02-25 17:23:55 -05:00
hondacrx 6f0b8760e2 Scripts/Spells: Fix shaman Mastery: Elemental Overload + Stormkeeper and Unlimited Power talents
Port From (https://github.com/TrinityCore/TrinityCore/commit/bd19e225137377a0d6925960b715f58ea18652bc)
2022-02-25 14:18:39 -05:00
hondacrx 8fa43cd0bd Core/Objects: fixed destination calculation for destination based spells casted by flying units
Port From (https://github.com/TrinityCore/TrinityCore/commit/0c15b2ac7cd8f57004b009a99ec357ef2eefecb3)
2022-02-22 19:20:18 -05:00
hondacrx c27475ae46 Core/MMAPs: Adjust walkable climb and fix a lot of mmap raycast issues
Port From (https://github.com/TrinityCore/TrinityCore/commit/89afeed41b4f040e4852b35183f30291588662d7)
2022-02-22 14:24:29 -05:00
hondacrx 9721f6406e 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
Port From (https://github.com/TrinityCore/TrinityCore/commit/b8e1de0f929598c2ebb8da2ee3de99f91be43d14)
2022-02-18 17:37:39 -05:00
hondacrx e6b9631ed0 Core/Objects: further improvements for MovePositionToFirstCollision
Port From (https://github.com/TrinityCore/TrinityCore/commit/26e7da1622b217f66d28771836014ca9023efd16)
2022-02-18 17:27:32 -05:00
hondacrx cb68969f1d Core/Objects: optimize and improve MovePositionToFirstCollision results
Port From (https://github.com/TrinityCore/TrinityCore/commit/b8805f43897bc5b22a7e7491b055b8dad84a34aa)
2022-02-18 17:15:45 -05:00
hondacrx 8126e7c6e1 Game/AI: Implement new targettype SMART_TARGET_CLOSEST_UNSPAWNED_GAMEOBJECT
Port From (https://github.com/TrinityCore/TrinityCore/commit/db825c3221de16cdb757711781318d76b414213f)
2022-02-18 13:35:32 -05:00
hondacrx a604bbd7f9 Core/Gameobjects: Improve stealth detection
Port From (https://github.com/TrinityCore/TrinityCore/commit/60e66621dae44cb832ebb0bdb5e168f9ab114ecb)
2022-02-18 12:51:16 -05:00
hondacrx 5bd2878a4e Core/Objects: cache current liquid status of objects when updating position data and use it to replace unnecessary vmap lookups
Port From (https://github.com/TrinityCore/TrinityCore/commit/d18d2b84f2c3e6e1005316625da80c99dd414bcc)
2022-02-17 16:55:41 -05:00
hondacrx 11e97aa548 Core/Spells: Implemented target 62 TARGET_DEST_CASTER_GROUND (the same as target 125)
Port From (https://github.com/TrinityCore/TrinityCore/commit/88cf53e54a4cda8fa8f1e3ef8b0766b5e6ac8c27)
2022-02-17 09:32:03 -05:00
hondacrx 8d7ba1061c Core/Spells: Implemented target 137 TARGET_DEST_CASTER_MOVEMENT_DIRECTION
Port From (https://github.com/TrinityCore/TrinityCore/commit/f515424217b6470b73269c7671a3086ff19c2359)
2022-02-16 13:05:11 -05:00
hondacrx cb7438506f Scripts/Spells: Implemented various rogue spells
Port From (https://github.com/TrinityCore/TrinityCore/commit/a3d06f2f329a6d21b9a79aed8b39f1d56fa933e6)
2022-01-07 16:42:42 -05:00
hondacrx 038a06e166 Core/PacketIO: Fixed SMSG_UPDATE_OBJECT packets going missing for new items
Port From (https://github.com/TrinityCore/TrinityCore/commit/48bd9698f88ade01209c9287ff38005900630ed3)
2022-01-07 12:52:45 -05:00
hondacrx 66e49cd043 Core/Objects: MovePositonToFirstCollision will now use detour raycasts to determine terrain obstacles
Port From (https://github.com/TrinityCore/TrinityCore/commit/6770987d6f1fe408c78f015ff5bed7f4f5b1715d)
2022-01-07 11:25:21 -05:00
hondacrx bf78002ab3 Core/Log: Gameobjects may have faction template id = 0
Port From (https://github.com/TrinityCore/TrinityCore/commit/89edc84c23f867855ee119c7a9eb5dbf31692cf8)
2022-01-05 17:56:50 -05:00
hondacrx 0d68984717 Misc fixes, and added GetDebugInfo() which was missed. 2022-01-05 13:11:32 -05:00
hondacrx 7f053ea099 Core/Movement: Fix LoS issue of NPCs chasing targets
Port From (https://github.com/TrinityCore/TrinityCore/commit/f012d4b7fcf0376de75f09c2b59509247fd133cb)
2022-01-04 20:09:33 -05:00
hondacrx 97ce4d6db7 Misc fixes and missed stuff. 2022-01-04 17:37:55 -05:00
hondacrx 9b2d1e67b6 Core/Spawns: Exterminate CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY with extreme prejudice. (It didn't work anyway.)
Port From (https://github.com/TrinityCore/TrinityCore/commit/d5e58cef694d3db65f0a27b93099ae4e517685a4)
2021-12-27 17:39:42 -05:00
hondacrx dafb8637d9 Core/Entities: Regenerate updatefields
Port From (https://github.com/TrinityCore/TrinityCore/commit/776298207a9522858af7b00ea2f5b0c65bbe049e)
2021-12-27 15:27:41 -05:00
hondacrx 31e0a1f476 Core/Spells: Moved SpellVisual functions from Unit to WorldObject
Port From (https://github.com/TrinityCore/TrinityCore/commit/54f607641ac9008a588b8ff635a9ed7ee7a5f976)
2021-12-24 20:50:24 -05:00
hondacrx f77b631422 Core/Movement: Defined movement force type enum
Port From (https://github.com/TrinityCore/TrinityCore/commit/e2de5000acba888e2ae3177893f6063340902ffd)
2021-12-10 17:33:33 -05:00
hondacrx c37e1c9f7d gameobject summoner
Port From (https://github.com/TrinityCore/TrinityCore/commit/5f545f540216d3b94c26e4aeda50c8bb8d5c3d74)
2021-12-07 20:42:47 -05:00
hondacrx 7c223b9a47 Core/Spells: Return CheckCast result from CastSpell
Port From (https://github.com/TrinityCore/TrinityCore/commit/ab988dc98284285b8ed0253f0bca1ddeb7eb9982)
2021-12-07 17:31:24 -05:00
hondacrx 6976fd649d Core/Units: Send PlayHoverAnim state in CreateObject if enabled by Unit::SetPlayHoverAnim
Port From (https://github.com/TrinityCore/TrinityCore/commit/7e779a6f5955de96dc1baa2f48b1bb15ad9bc343)
2021-12-07 14:26:39 -05:00
hondacrx d705730f04 Core/Entities: Implemented ObjectGuid::FromString
Port From (https://github.com/TrinityCore/TrinityCore/commit/8b74ca04fe52a99730c517cc5138e082e6fddb1a)
2021-12-07 12:33:34 -05:00
hondacrx 7f5dfd0025 Core/Maps: Fix crash caused by setActive(false) called after DespawnOrUnsummon()
Port From (https://github.com/TrinityCore/TrinityCore/commit/dd825c56148ed9530e4a314bc91f29ddc86b7122)
2021-12-01 22:59:01 -05:00
hondacrx b4febb11c8 Core/Object: Range check, Needs tested.
Port From (https://github.com/TrinityCore/TrinityCore/commit/b717603a9b3a676e800fc401f4544735287791a9)
2021-12-01 22:57:42 -05:00
hondacrx 25f95d9f9d Core/GameObjects: Defined more GameObjectFlags and GameObjectDynamicLowFlags
Port From (https://github.com/TrinityCore/TrinityCore/commit/21fefb31893dba5b6e2b909a672a3925a1534965)
2021-12-01 11:08:49 -05:00
hondacrx 334720dafe Core/Movement: Fix some undermap issues with random movement/fear/blink
Port From (https://github.com/TrinityCore/TrinityCore/commit/4fcc4a330044e84baa1f58ff13e1b4ea7775eb66)
2021-11-29 17:46:46 -05:00
hondacrx 356bbb8823 Core/Objects: use the actual collision height of players and creatures to get more accurate liquid status results
Port From (https://github.com/TrinityCore/TrinityCore/commit/d5daa2ad49a5a5d23ec4fae7508998ff9b1b6ad1)
2021-11-29 17:27:43 -05:00
hondacrx b509aac0cd Core/Spells: Fixed spells using MovePositionToFirstCollision for selecting target position getting Z coord offset by caster or target collision height (depending on spell target type)
Port From (https://github.com/TrinityCore/TrinityCore/commit/7a413ae5431fb078e14fe91196246bb67d9cbb30)
2021-11-23 22:45:57 -05:00
hondacrx b5d1877d0e Core/Spells: Fixed crash with some gameobject spell casters
Port From (https://github.com/TrinityCore/TrinityCore/commit/f24e16a460e81e8bf6efe26498a31f5cfc559d78)
2021-11-18 20:19:10 -05:00
hondacrx 705a2fe3a1 Fixes/cleanups from b026ee7ef8, And misc fixes/crashes. 2021-11-16 19:45:02 -05:00
hondacrx 527f117701 Core/Objects: properly use UPDATETYPE_CREATE_OBJECT2 when creating brand new objects in all cases.
Port From (https://github.com/TrinityCore/TrinityCore/commit/234a680d3a04142d0f99dfc316b6442d8a51bad1)
2021-11-15 23:24:39 -05:00
hondacrx c48696da32 Core/Player: Clean up duel related code. Fix a check for abusive client behavior, code style.
Port From (https://github.com/TrinityCore/TrinityCore/commit/7c062db94b1c2d28329c5f0ddc2fee74a6c07c35)
2021-11-15 19:56:36 -05:00
hondacrx b026ee7ef8 More cleanups of custom classes in favor of .NET runtime types. 2021-11-15 18:04:57 -05:00
hondacrx 032f9a55f3 Cleanup some warnings. 2021-11-15 16:11:20 -05:00
hondacrx 80d6b08c13 Core/Movement: Corrected values sent in knockback packet when speedXY < 0
Port From (https://github.com/TrinityCore/TrinityCore/commit/732a8ee26199d7f04c692fa64f96955db13cf69d)
2021-11-08 10:44:57 -05:00
hondacrx f766a06c8d Core/Movement: Remove random direction knockbacks and instead use unit orientation
Port From (https://github.com/TrinityCore/TrinityCore/commit/581d5146781355603d00703be2ac629286ed2e2b)
2021-11-07 20:45:07 -05:00
hondacrx 8563fa8952 Core/PacketIO: 9.1.5 updatefields and SMSG_UPDATE_OBJECT structure
Port From (https://github.com/TrinityCore/TrinityCore/commit/5c8a058120dcf2c3ff8592886cb842ca889e0411)
2021-11-07 20:27:03 -05:00
hondacrx 0bfef874de Core/Conversations: Dropped time fields and calculate them using db2 data
Port From (https://github.com/TrinityCore/TrinityCore/commit/94b14e4f6355a7bab8004dcc2ecadadbc52833de)
2021-11-03 11:44:33 -04:00
hondacrx af21142819 Core/Entities: Minor refactor to viewer dependent updatefield writing to allow using viewer dependent dynamic updatefields
Port From (https://github.com/TrinityCore/TrinityCore/commit/b8227f92d54e1e3130adb06fdd75c2338afa9414)
2021-11-02 17:15:12 -04:00
hondacrx 4d14f2f992 Core/Spells: Clean up some assist checks (no behavior change)
Port From (https://github.com/TrinityCore/TrinityCore/commit/8760b7322e2d6417956fe5ddf08bb7b1268c734e)
2021-11-02 14:19:45 -04:00
hondacrx 6a159b90a1 Core/Spells: Fix an incorrect check that was exempting negative spells from _IMMUNE_TO_x checks.
Port From (https://github.com/TrinityCore/TrinityCore/commit/d81a74bc98533d6c443b59a945b7e92cc7e87295)
2021-11-02 14:17:30 -04:00
hondacrx 1e4fa35ac2 Core/Unit: Random code style/naming adjustments
Port From (https://github.com/TrinityCore/TrinityCore/commit/05119fd90949340cad4a700d12069154a2faf5f6)
2021-11-01 12:09:07 -04:00