aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-12-12Entities/Unit: Cleanup all the direct accesses to m_unitMovedByMe. Refactor ↵Treeston
the field to be protected. Add assertions to catch dangling pointers. (cherry picked from commit 396f87c30dff1b50f1eb0d924778a7fbab7e8d11)
2021-12-12Core/Misc: Add static versions of GetGUID and ToX methods to Object. The ↵Treeston
static versions return Empty/nullptr for null objects. (cherry picked from commit b3ee407707db01a5bc49f544a56b1db381687f65)
2021-12-12some more cleanup, a5f8c0d follow-upTreeston
(cherry picked from commit 00728cef1565a78b39541fbaea5923dcfc243743)
2021-12-12Core/Creature: Attach out-of-combat health regen to the Engaged system, not ↵Treeston
the Combat flag. Closes #21571. (cherry picked from commit a5f8c0d30ca8793a0d1f97a16ab0e0a9f066dab4)
2021-12-12Core/Misc: Rename Unit::AttackedTarget to Unit::AtTargetAttacked to match ↵Treeston
naming scheme for these notifiers (cherry picked from commit 632a300dd20aad9663392c2f21a8ed29ffee1ef7)
2021-12-12Core/Entities: Kick engagement logic upstairs to Unit (from ThreatManager), ↵Treeston
since all Units with AI need it (not just those with threat list). Fixes #17981. (cherry picked from commit dbe3bbefe734f8824e8f07c302e256f0d446b974)
2021-12-11Core/Misc: Code cleanupjackpoz
(cherry picked from commit eeced9ae158640de67ed0cb59d01ae92570bfa77)
2021-12-11Core/Instance : Fix instance resetting exploit (#23263)zartech22
* Push offline players out of instance Push offline players out of instance when reseting dungeon with a raid mode group * Add SQL request to character Add a SQL request to update the position of a player in a specified map * Teleport to graveyard instead (cherry picked from commit 678e0e606aa38e18fd361c33bc91833fdae76735)
2021-12-11 Scripts/Spells: Portal to Orgrimmar & Portal to Stormwind (#23463)Sorikoff
* Scripts/Spells: Portal to Orgrimmar & Portal to Stormwind * Revert "Scripts/Spells: Portal to Orgrimmar & Portal to Stormwind" This reverts commit a8055960 * Revert "Revert "Scripts/Spells: Portal to Orgrimmar & Portal to Stormwind"" This reverts commit a5be792b * Fix NoPCH * Clean up * Clean up * fixup! Clean up * Caster -> Target * Rename 9999_99_99_99_world.sql to 2019_06_22_01_world.sql (cherry picked from commit ac7c72d63392cc246d2cd4ab64f558f2bf0970bf)
2021-12-11Scripts/Spells: Ultra-Advanced Proto-Typical Shortening Blaster (#23456)Sorikoff
* Scripts/Spells: Ultra-Advanced Proto-Typical Shortening Blaster * Fix NoPCH * Correct header * fixup! Clean up * Rename 9999_99_99_99_world.sql to 2019_06_22_00_world.sql (cherry picked from commit 40b09e3df144304562a63f33d16e25bbde5079fd)
2021-12-11Core/RBAC: add permission that prevents accounts from earning all ↵Wyrserth
achievements or only realm firsts (#23459) * Core/RBAC: add permission that prevents accounts from earning all achievements or only realm firsts. * Kill evil spaces. * Rename 9999_99_99_99_auth.sql to 2019_06_21_00_auth.sql * Update auth_database.sql (cherry picked from commit 8163ea60c8d517ebe3a88f595dd8291df8338811)
2021-12-11Scripts/Spells: Migrate Teleporting to Script (#23458)Sorikoff
* Scripts/Spells: Migrate Teleporting to Script * Rename 9999_99_99_99_world.sql to 2019_06_21_02_world.sql (cherry picked from commit e9d803ccee2fb5d229babbf6c2c4a17b1986edb0)
2021-12-11Core/Spells: Deleted old script (partial port of ↵Shauren
a4cd4d8b872bcbd9e28e9ae76f5220b30494a996)
2021-12-11Scripts/Icecrown Citadel: Fixed some bugs on Blood Orb object and trash mobs ↵Keader
around him Followup: 394b119664bc16dc5376f1404925b6d0b5a26876 (cherry picked from commit 3b0743ea67687937a1e6ba75ae9ef5e7fb996355) (cherry picked from commit f9a366628a17263852634a1095edcdb79a8b383e)
2021-12-11DB/Quest: "Where Kings Walk" and "Warchief's Blessing"Killyana
The script was deleted by https://github.com/Aokromes/TrinityCore/commit/5f928f79490b1d73c32ea962c3c720bd16833010 But it wasn't done properly via the spell_area anyway (cherry picked from commit 8d6295559d72e4d17bce3c03f56f2a8f67c5109d)
2021-12-11DB/Quest: A Visit With The AncestorsKillyana
Closes #23284 (cherry picked from commit a3dec9068bda1a3145e526eaa69c1e38fa3f2fe3)
2021-12-11Spell/Fishing: ensure that the fishing bobber expires when the Fishing ↵Wyrserth
channeling ends, and don't allow fish to be hooked in the instant the spell is cast. (#23448) (cherry picked from commit 9083fc149d61f9f2ee8fe760ece4392b1e8b181e)
2021-12-11Core/Loot: don't allow to regenerate chest loot inside instances and raids. ↵Wyrserth
(#23449) (cherry picked from commit 4320cd7d375927f1008824d6ddf8cc7d212d4ed2)
2021-12-11Core/Conditions: Sync CONDITION_QUEST_OBJECTIVE_PROGRESS implementation with ↵Shauren
3.3.5
2021-12-11Core/FlightPath: teleport players at destination on floor Z when the flight ↵Wyrserth
ends (#23428) * Core/FlightPath: teleport players at destination on floor Z when the flight ends, instead of having them fall from the air. Closes #10051. * Use the path destination's mapheight instead of the player position's. * Update FlightPathMovementGenerator.cpp (cherry picked from commit 6a0a800535f6de9f6028a5375abfaf1dae8c7c28)
2021-12-11Core/SAI: allow to start waypoint movement for a creature that is in combat. ↵Wyrserth
(#23426) (cherry picked from commit d6e36601151046d5e99f97fa9594ac2d86fa698c)
2021-12-11Core/Spell: Jump Speed Calculations (#22886)DanVS
* Jump Speed Calculations * Fix (cherry picked from commit 0197a2f990aa7c7eaf8637a2a5da7f43def9c4bd)
2021-12-11Core/Misc: don't allow FindNearestCreature() and FindNearestGameObject() ↵Wyrserth
searches to return the entity that called them. (#23437) Closes #23334. (cherry picked from commit 015870bfe1d3ec57c4505072f087b88fe63662b5)
2021-12-11Core/Scripts: Fixed a reference error introduced in ↵Keader
394b119664bc16dc5376f1404925b6d0b5a26876 (cherry picked from commit 70cbedd75dff077fa75e25c4c467f0efd4bb6252)
2021-12-11Scripts/Icecrown Citadel: Fixed Blood Orb Game Object (#23397)Keader
Close #18005 and Update #18529 (cherry picked from commit 394b119664bc16dc5376f1404925b6d0b5a26876)
2021-12-11Scripts/Isle of Quel'Danas: Thalorien Dawnseeker (#23382)Sorikoff
* Scripts/Isle of Quel'Danas: Thalorien Dawnseeker * Kill warning * Kill warning * Fixes * Code style * Code style * Accident * Prevent Out of Bound & spelling (cherry picked from commit e87f8b1aacafb640fba19375dc0bcb8e34870534)
2021-12-11Core/SAI: add cooldownMin (event_param2) and cooldownMax (event_param3) to ↵Wyrserth
SMART_EVENT_ACCEPTED_QUEST and SMART_EVENT_REWARD_QUEST. (#23422) (cherry picked from commit 50be697e1f3a56760e593b15bfbd576f4d370dcf)
2021-12-11Core/Creature: drop current target when evading while a spell cast is in ↵Wyrserth
progress (#23420) * Core/Creature: drop current target when evading while a spell cast is in progress. Closes #18373. * Update Creature.h, thanks jackpoz! (cherry picked from commit 5ac9b20fcfeccac906ff39109e94d77e811597a3)
2021-12-11Core/SAI: don't allow to start a new SAI actionlist while the entity is ↵Wyrserth
already running one. (#23421) (cherry picked from commit 2b1cde25604b6400ac327801d8e1649e30688f5a)
2021-12-11Core/Commands: implement commands to look up a map/item/quest name for a ↵Wyrserth
given id (#23416) * Core/Commands: implement commands to look up a map/item/quest name for a given id. * Add entry to updates table. * Rename 9999_99_99_99_auth.sql to 2019_06_16_00_auth.sql * Add missed change, thanks jackpoz! * Update auth_database.sql (cherry picked from commit ce3dcdcb1ad1887fb3a531aaea09482c12b5e4f3)
2021-12-11Core/RDF: fix counting issue with the achievement Looking for More (and ↵Wyrserth
similar) (#23418) * Core/RDF: allow the achievement Looking for More (and similar) to increase the counter based on how many random players were picked. * Use getter/setter instead. (cherry picked from commit 14c2bdc5dac81f5f2b76d78b09c1224dbebcd8bc)
2021-12-11Core/Loot: fix some other cases where a creature should not be able to set ↵Wyrserth
focus. (#23415) (cherry picked from commit d50be8e020c235617cae6d85e214794c164a73c9)
2021-12-11Core/Unit: Ignore On Transport spline movements if the Unit isn't on a ↵jackpoz
transport anymore On Transport splines use coordinates relative to the transport but if the transport is not found anymore than there is no way to get the absolute coordinates, leading to relative coordinates being used as absolute instead. The result is a Unit being set at position (0, 0, 0) or close by. (cherry picked from commit c90f789eac9092d5332e92242ed0bfab7fd9e9fe)
2021-12-11Core/Misc: Change some logs from INFO to ERROR when loading invalid creature ↵jackpoz
template resistances and spells (cherry picked from commit 078c5a3e18227ad9f8bd2c1bcc7d48dd0122f801)
2021-12-11Core/Player: Fix teleporting FlyPath dismounting the playerjackpoz
Issue added in 72fc79a9e63d77754699a3da90d81219b2defb0d (cherry picked from commit 4019cae375838e3bc653936fb9705d8df57ca571)
2021-12-11Core/Loot: make Loot::AddItem() honor LootItem::AllowedForPlayer() so that ↵Wyrserth
items that cannot be looted don't prevent skinning. (#23408) (cherry picked from commit a1b2aa97fcb64be82050af037cec955ce361ccad)
2021-12-11Core/Loot: implement automatic pass in group loot for items that cannot be ↵Wyrserth
looted. (#23413) (cherry picked from commit 00fdf6e99a2516095889e13d4638efa049782ce5)
2021-12-11Core/Spells: don't allow spells with SPELL_EFFECT_CREATE_LOOT to be cast if ↵Wyrserth
there isn't enough space in inventory (#23404) * Core/Spells: don't allow spells with SPELL_EFFECT_CREATE_LOOT to be cast if there isn't enough space in inventory, * Move GetFreeInventorySpace() to a better place, thanks ccrs! (cherry picked from commit 218055280af4563f28643e2683eafe40808f90db)
2021-12-11Core/Creature: prevent dead creatures from setting a focus target, so they ↵Wyrserth
won't turn when hit by certain spells. (#23367) (cherry picked from commit 0a24a6571b7065d66afe52fc7b0b00f6366272bf)
2021-12-11Core/CreatureTemplate: Outsourced resistances and spells into creatur… ↵Giacomo Pozzoni
(#23343) * Core/CreatureTemplate: Outsourced resistances and spells into creature_template_spell and creature_template_resistance * Rename 2019_99_99_00_world.sql to 2019_06_15_01_world.sql (cherry picked from commit d5fb0a30ec62f3799416326d81d5d14992f9a6df)
2021-12-11 Core/Group: implement automatic party/raid leader change when the leader ↵Wyrserth
has been offline for two minutes (#23398) * Core/Group: implement automatic party/raid leader change when the leader has been offline for two minutes. * Add #23396 to make testing easier. * Prioritize assistants in raids. * Fix dumb mistake and apply suggested change, thanks VincentVanclef and jackpoz! (cherry picked from commit e906a2fe7d71fc17de9f7ea4778970beb3f9265e)
2021-12-11Core/Loot: fix some issues with master loot and don't allow players to see ↵Wyrserth
soulbound recipes that they already learned in the loot window. (#23410) (cherry picked from commit e6ad9b10cf381625ca1955cf6081ea1a8b14de11)
2021-12-113.3.5 game event respawn (#23391)Giacomo Pozzoni
* Core/GameEvent: Remove respawn times of Creature and GameObjects when starting/stopping an event * Add checks for pool * Remove the check for pools (cherry picked from commit 678f3dd687432b4229d903a8acfb882c2336e168)
2021-12-11Core/Spell: allow Northrend Inscription Research to unlock three recipes the ↵Wyrserth
first time it is cast. (#23401) Also prevent double skill-up because of duplicate UpdateCraftSkill() calls. (cherry picked from commit 2315d43b2c1f478bd5f612e39f3a938bf6640ab6)
2021-12-11Core/Misc: Fix static analysis issues reported by Coverity ScanGiacomo Pozzoni
(cherry picked from commit df92ceb9bc051444073a44eaf8c730357bb57355)
2021-12-11Core/Player: allow AutoStoreLoot to specify if the looted item should be ↵Wyrserth
shown as if created by the player. (#23400) (cherry picked from commit 8d53d16d162689f6034acf963406c7188f4a7f79)
2021-12-11Core/Misc: Implemented Icecrown Citadel buff disable (#23394)Keader
Closes #8576 Closes #7940 (cherry picked from commit 94b60ff0ef7ee908e9ab4660f6dce0dcfe3f13e8)
2021-12-11Core/Player: Remove all Motion Masters when teleportingjackpoz
Fix #22859 (cherry picked from commit 72fc79a9e63d77754699a3da90d81219b2defb0d)
2021-12-11Core/SmartAI: Rename SMART_EVENT_HEALT_PCT to SMART_EVENT_HEALTH_PCTjackpoz
(cherry picked from commit 50ed1bb5b3d30936b844659b869fe66a0da7e04f)
2021-12-11Scripts/Icecrown Citadel: Fixed Heroic Attempts logic (#23379)Keader
(cherry picked from commit 136964769db509d1a2238f863d57e61651d97fae)