Commit Graph

34424 Commits

Author SHA1 Message Date
Shauren
622cec8a8f Core/Vmaps: Fixed crash in unloading vmaps
Closes #26536
2021-05-21 12:31:21 +02:00
mdX7
0935862770 DB/Creature: Update a lot creature_equip_template entries from massparse
Closes #26299
2021-05-20 13:44:35 +02:00
mdX7
83f8e8778d DB/Scaling: Update a lot of creature_template_scaling from massparse 2021-05-20 13:39:34 +02:00
mdX7
620f7901bc DB/Template: Update a lot of creature related data from massparses 2021-05-20 13:34:57 +02:00
Shauren
3df64ceff4 Core/Items: Fixed crash happening when deleting item before it was saved for the first time
Closes #26532
2021-05-18 14:41:06 +02:00
funjoker
ffa262bfa2 DB/Hotfixes: Add some zhTW optional_data 2021-05-17 23:58:00 +02:00
funjoker
6b56755902 DB/Hotfixes: Add some zhCN optional_data 2021-05-17 23:57:55 +02:00
funjoker
1f8c96c0a8 DB/Hotfixes: Add some ruRU optional_data 2021-05-17 23:57:47 +02:00
funjoker
b02d7308ed DB/Hotfixes: Add some ptBR optional_data 2021-05-17 23:57:38 +02:00
funjoker
278919d2ba DB/Hotfixes: Add some koKR optional_data 2021-05-17 23:57:30 +02:00
funjoker
5b7de32d76 DB/Hotfixes: Add some itIT optional_data 2021-05-17 23:57:22 +02:00
funjoker
5c482d7bc0 DB/Hotfixes: Add some frFR optional_data 2021-05-17 23:57:13 +02:00
funjoker
7f1bb67a73 DB/Hotfixes: Add some esMX optional_data 2021-05-17 23:57:07 +02:00
funjoker
f68c028537 DB/Hotfixes: Add some esES optional_data 2021-05-17 23:56:56 +02:00
funjoker
6bb4e97e3a DB/Hotfixes: Add some deDE optional_data 2021-05-17 23:56:45 +02:00
funjoker
8df8bc54c6 DB/Hotfixes: Add some enUS optional_data 2021-05-17 23:56:21 +02:00
Treeston
ac8ff49274 Core/Unit: Abide UNIT_FLAG2_DISABLE_TURN on creatures. Add that flag to Kologarn (from sniff). Hi sirikfoll.
(cherry picked from commit d9c772303c)
2021-05-17 00:36:06 +02:00
ZenoX92
345e067855 DB/Quest: Emotes for Horde & Neutral quests in Desolace, Thousand Needles and Stranglethorn Vale
Closes #21211

(cherry picked from commit dede2503e0)
2021-05-17 00:27:51 +02:00
Treeston
563188fe4b 3dcd49e v2, slightly cheaper
(cherry picked from commit b53cbf467b)
2021-05-17 00:06:52 +02:00
Treeston
7cd61b581c Core/Threat: fix a potential super edge case iterator invalidation
(cherry picked from commit 3dcd49ef90)
2021-05-17 00:05:47 +02:00
Treeston
4a65dcaecb Scripts/World: New target dummy AI, because I don't trust the existing one in light of #21187.
(cherry picked from commit a23c97a0fc)
2021-05-17 00:02:27 +02:00
tkrokli
fdbc88e3de Update copyright note for 2018 follow-up
File missed in main 2018 copyright update, commit f6b6f57a6d

- revert link from collab.kpsn.org back to www.trinitycore.info for branch consistency
- also some minor whitespace edits

(cherry picked from commit e2666fff35)
2021-05-16 22:04:37 +02:00
Treeston
e090c9a00e Scripts/Commands: New command: .debug threatinfo
(cherry picked from commit f45c211987)
2021-05-16 21:57:35 +02:00
Chaouki Dhib
0ce1e9d652 Core/Movement: Correct the allowed distance to target before a repositioning is necessary. #20173
Also getting rid of the wordserveur config parameter 'TargetPosRecalculateRange' since it is no longer needed.

(cherry picked from commit 274dede3dc)
2021-05-16 21:56:07 +02:00
xinef1
1912999b9e Core/Spells: Defined and implemented some new spell attributes (#18950)
(cherry picked from commit 23823f5147)
2021-05-16 21:56:07 +02:00
Keader
068b4f96e5 Core/Spells: Fixed Shapeshift using macro
Close #21197
Author: lineagedr

(cherry picked from commit 57672fdf25)
2021-05-16 21:56:06 +02:00
kelno
1206e815cd Core/Creature: improve DB linked_respawn handling (#21172)
* Fixed SetCreatureLinkedRespawn function possible erasing/replacing a GameObject link (instead of a creature one)

(cherry picked from commit 70eb18d0e5)
2021-05-16 21:56:06 +02:00
Treeston
a121f47ba3 9ad11e6 follow-up, prevent Halion respawn without loot
tagging #21198

(cherry picked from commit f0a394753a)
2021-05-16 21:56:06 +02:00
offl
7f50fc118a DB/Creature: Harbinger Skyriss
Closes #21168

(cherry picked from commit b847f32b58)
2021-05-16 21:56:06 +02:00
Treeston
c31ae7ab33 Core/Threat: Fix a potential exploit allowing players to damage a boss without them taking damage.
Scripts/Halion: General cleanup of old hacks no longer needed under new combat system.

(cherry picked from commit 9ad11e67fb)
2021-05-16 21:56:06 +02:00
Treeston
8b7728f82e Core/Map: New Map::ForceRespawn to override objections and force a respawn (equivalent to force = true). Use this to fix various GM commands.
Scripts/Valithria: Fix an issue that could get the encounter stuck in an unloaded state.

(cherry picked from commit 3bb33e3108)
2021-05-16 21:56:06 +02:00
offl
0f005c3686 DB/Creature: Skulking Witch invisibility
- Greater Invisibility missing in Heroic mode
- replace Normal spell ID with sniff value

Closes #21166

(cherry picked from commit 38d0c1e940)
2021-05-16 21:56:06 +02:00
Keader
7ba1afdbfb DB/Creature: Ruby Sanctum boss/mini-boss white damage updates
Closes #11834

(cherry picked from commit 9e9253d92b)
2021-05-16 21:56:06 +02:00
Shauren
c79e5528e1 Core/Units: Remove Unit::EnergizeBySpell overload taking spellId argument 2021-05-16 21:56:06 +02:00
meji46
8678179873 DB/Creature: Fix mount condition for Stabled Argent Warhorse
(cherry picked from commit 509edd4312)
2021-05-16 21:56:06 +02:00
Teppic1
779ac46b9c DB/Loot: Reference template 24077 corrections
Closes #21181

(cherry picked from commit 1f0210bfe5)
2021-05-16 21:56:06 +02:00
Shauren
b9d63c2009 Core/Scripts: Remove deprecated overload of QuestReward without LootItemType argument 2021-05-16 21:56:06 +02:00
DanVS
72cfc0ef34 DB/Creature: Dream Vision
Closes #21161

(cherry picked from commit f76dd2f4ab)
2021-05-16 21:56:06 +02:00
ZenoX92
d07972e7e2 DB/Misc: Stranglethorn Vale
Closes #21057

(cherry picked from commit 9462b4b7ee)
2021-05-16 21:56:06 +02:00
ZenoX92
92ee37f852 DB/Misc: Badlands
Closes #21056

(cherry picked from commit b06b06a22d)
2021-05-16 21:56:05 +02:00
ZenoX92
91cbdabcb6 DB/Misc: Alterac Mountains
Closes #21055

(cherry picked from commit 6e6f43a5e3)
2021-05-16 21:56:05 +02:00
Treeston
6344ddd633 Core/Threat: only send periodic threat list updates while unit is engaged
(cherry picked from commit a08ad9aac1)
2021-05-16 21:56:05 +02:00
Treeston
dce39aedc2 Core/Combat: Some more sanity check asserts to try and track down #21187.
Also, some anti-annoyance treatment for dot tele.

(cherry picked from commit fdacf12739)
2021-05-16 21:56:05 +02:00
Treeston
2a7bb9b404 Core/Combat: some more detailed assertions to possibly shed light on #21187.
(cherry picked from commit 5a9fddaa5a)
2021-05-16 21:56:05 +02:00
Treeston
b00d3812ab Core/Map: Fix a crash that could happen if a player moved very far away from a creature they were in combat with. Closes #21177.
(cherry picked from commit e0b609a178)
2021-05-16 21:56:05 +02:00
Moein
673cc20e79 MovementInform should overrides
(cherry picked from commit 18f5eae835)
2021-05-16 21:56:05 +02:00
Treeston
5aee452943 Core/Misc: A variety of clean-up changes, mostly following up on 532ab1c to fix legacy bugs exposed by it:
- Triggers can no longer have a threat list (this may expose some ugliness in old legacy scripts)
- Threat entries are forced to OFFLINE if the AI refuses to attack the target
- Clean up passive creature evade behavior to be more consistent
- Fix a months old issue in spawn group management that would cause "Inactive" to incorrectly show in .list respawns for system groups outside of map 0
- Valithria script cleanups, remove old hacks and make it work with the new system. Closes #21174.
- Some strings cleanup

(cherry picked from commit 9f9507e6a1)
2021-05-16 21:56:05 +02:00
ariel-
83159544b5 Core/Spells: fix casting NO_TARGET event spells
Closes #19978

(cherry picked from commit e245113660)
2021-05-16 21:56:05 +02:00
Treeston
34c7810fe5 Core: Combat/threat system rewrite (PR #19930)
- PvE combat is now always mutual. UNIT_FLAG_IN_COMBAT is backed by actual references to the units we're in combat with.
- PvP combat is now also tracked, and almost always mutual; spells like Vanish and Feign Death can break this rule. That means we can easily determine a list of players we're fighting.
- By extension, IsInCombatWith now has sensible behavior when invoked on nonplayers.
- Threat and combat systems are no longer the same.
  - They still have an enforced relationship (threat implies combat - clearing combat clears threat)...
  - ...but we can have combat without threat. A creature (with threat list) isn't considered to be engaged until it has an entry on its threat list...
  - ...which means we can now faithfully replicate retail engage behavior. Combat on projectile launch - engagement start on projectile impact. Yay for progress!
- AI method refactor, as already ported in 6113b9d - `JustEngagedWith`, `JustEnteredCombat` and `JustExitedCombat`.
- Vehicle threat is now properly pooled on the main vehicle body (fixes #16542).
- Various edge case bug fixes for threat redirects (Misdirection "cancelling" Vigilance and similar).
- Target re-selection is now significantly faster.
- Fixed a ton of other smaller edge case bugs, probably.

Closes #7951 and #19998.

(cherry picked from commit 532ab1c7f8)
2021-05-16 21:56:01 +02:00
Shauren
5158136ee8 Core/Players: Fixed last tick of power regeneration when reaching minimum or maximum value not being visible clientside and not triggering auras on power value change 2021-05-15 17:44:31 +02:00