Commit Graph
28009 Commits
Author SHA1 Message Date
DanVS 3b1ed434ae Core/Scripts: Move some spells to scripts (#22332)
(cherry picked from commit 8051ff13dfcf3819b58adfcec1608c08dcbcd080)
2021-11-18 22:41:57 +01:00
PolarCookie 19646a8363 That's Abominable for the 3 other quests, and knockbacks for all. (#22127)
(cherry picked from commit fb19f7be1f103b6d647e6d7d2aeabdfaadbc0631)
2021-11-18 22:41:57 +01:00
Keader 748e8463c7 Core/Spells: Malleable Goo need be negative
Closes #22757

(cherry picked from commit 9ecce3319216ca2156441e661a0d7a3a120f4ab9)
2021-11-18 22:41:57 +01:00
Ghaster f4d029b952 Core/Creature: Profession trainer fixes (PR #22904)
Closes #22903

(cherry picked from commit 19791a35df11e2c5c42ee437bfc13466c708ea43)
2021-11-18 22:41:57 +01:00
Keader c4eed6561c Scripts/The Steamvault: Fixed Chambers Access Panel and Main Chambers Door
Closes #21067
Ty Kittnz, killerwife, Aokromes (sniffs)

(cherry picked from commit b283565d8adb394862ea2affd2af497bac6cdbcb)
2021-11-18 22:41:55 +01:00
jackpoz 0b556d8a91 Core/Handlers: fix ".whisper on" with opposite faction/low level
Closes #22283

(cherry picked from commit f11117584d0b787bbf36ae61dad2b46e559b0953)
2021-11-18 15:59:31 +01:00
Giacomo Pozzoni ff2cd4a032 Scripts/Commands: Fix crash caused by .set npc model (#22877)
* Scripts/Commands: Fix crash caused by .set npc model

Fix crash caused by .set npc model with invalid model id

(cherry picked from commit 20ea24bf5ccf165ce19139d1f7ec7c650719eb68)
2021-11-18 15:57:20 +01:00
Shauren ce794f3978 Core/Spells: Fixed ErrorCube spell missiles
(cherry picked from commit 3b5014fdae1b57add7fd204a9f9f10f3c2092b83)
2021-11-18 01:10:19 +01:00
PolarCookie fa07f74db2 Spell/Script: Scourge Disguise and Haunting Phantoms (#22727)
(cherry picked from commit 66720e5fd94015e9884060bb66c3093484855880)
2021-11-16 22:00:58 +01:00
Shauren 3ba2547ec0 Core/Trainers: Remove unused define 2021-11-16 21:37:53 +01:00
Shauren f8dc4da282 Core/Players: Partial port of baebb2d602ca2f10159ea0039ec3a6d03155c3bd (just packet sending function)
(cherry picked from commit baebb2d602ca2f10159ea0039ec3a6d03155c3bd)
2021-11-16 21:35:11 +01:00
Treeston 549d5fea31 Core/Utils: some code style adjustments, 6d6077e follow-up
(cherry picked from commit 4c3af3b636d5e9279fb694c9d9a5a4422ad773d0)
2021-11-16 21:05:35 +01:00
Treeston 4f8fd56903 Core/Utils: Fix Unicode handling
(cherry picked from commit 6d6077e36fe9c5cb8ea8e4f981d637e72ee87037)
2021-11-16 21:04:53 +01:00
Giacomo Pozzoni 4177030dcf Scripts/Nagrand: Fix crash added in PR #22806 (#22878)
Fix crash added in PR #22806 happening in quest "Ruthless Cunning and Returning the Favor"

(cherry picked from commit cb136387218bc7a5473cf1ca6707ec1ba3b8c1c0)
2021-11-16 21:04:05 +01:00
Shauren 9be92e218c Core/PacketIO: Fixed SMSG_BATTLE_PET_ERROR structure 2021-11-16 20:54:15 +01:00
Shauren f3c1b27c26 Core/Units: Fixed crash happening when charm was removed by its own charmed AI during update
(cherry picked from commit c7445669e8577884fd512fe009f7d3da4cf0429a)
2021-11-16 20:40:05 +01:00
jackpoz 9dcbccce26 Core/Misc: Fix vsnprintf usage in ASSERT()
Fix vsnprintf to follow standard definition and not some old VC++ behavior, not requiring to include the '\0' character in the count parameter

(cherry picked from commit eee1f2cadf8174caca4849c22ba1fb8f12fc9e08)
2021-11-16 20:37:27 +01:00
Giacomo Pozzoni d5c41d23e6 Core/Misc: Log more information in asserts (#22783)
* Core/Misc: Log more information in asserts

Add a new function GetDebugInfos() to types that could trigger an ASSERT() to easily include more useful information in crashlogs.
This is an initial commit that requires many more commits to implement the new GetDebugInfos() function in all required types.
If the type doesn't have the function, the global default one is picked which doesn't log anything.

* Core/Misc: Fix dynamic build

Add missing attribute for dynamic build

* Core/Misc: Fix gcc/clang build

* Core/Misc: Rename GetDebugInfos() to GetDebugInfo()

* Core/Misc: Fix FormatAssertionMessage() adding an extra '\0'

* Core/Misc: Add GetDebugInfo support to Unit

* Core/Misc: Add GetDebugInfo support to Creature

* Core/Misc: Add more info to GetDebugInfo for Creature

* Core/Misc: Add GetDebugInfo support to GameObject

* Core/Misc: Add GetDebugInfo support to Player

* Core/Misc: Add more GetDebugInfo info

* Core/Misc: Add GetDebugInfo support to Item

* Core/Misc: Add GetDebugInfo support to Bag

* Core/Misc: Add GetDebugInfo support to Transport

* Core/Misc: Add GetDebugInfo support to TempSummon, Minion, Guardian, Pet

* Core/Misc: Add GetDebugInfo support to Map, InstanceMap

* Core/Misc: Add GetDebugInfo support to Spell

* Core/Misc: Fix build warning

* Core/Misc: Add GetDebugInfo support to Aura

* Core/Misc: Add GetDebugInfo support to UnitAI

(cherry picked from commit 9a924fb9d557434c5a2e4020c80db6e6bfe466ad)
2021-11-16 20:36:58 +01:00
Treeston 5b45253f57 Core/Misc: Explicit typing for SpellAttrN enums, add nicer text to UNKs, and restore some relevant info from old comments. Final one of these.
(cherry picked from commit 3acba6dded14afdf84f2ab51ca3b6cec92bdb092)
2021-11-16 19:52:57 +01:00
Shauren b981606575 Core/PacketIO: Fixed SMSG_LEVEL_UP_INFO structure 2021-11-16 15:53:40 +01:00
Meji a832435b97 Core/Spells: Implemented SummonPropertiesFlags: UseSummonerFaction & IgnoreSummonerPhase (#27273) 2021-11-16 11:51:05 +01:00
Aokromes 8967f9ccf2 Update zone_borean_tundra.cpp
(cherry picked from commit 6851ba638d35c31ebe232c30a4a57f5755104cce)
2021-11-16 00:52:24 +01:00
PolarCookie f377dc23f3 Quest: Ruthless Cunning and Returning the Favor (#22806)
* Ruthless Cunning and Returning the Favor

* no more magic numbers

* now with scripted ai and condition

* travis

* more travis

* jackpoz

* now with no banner spellscripts

* typo

* Rename 9999_99_99_99_world.sql to 2018_12_03_00_word.sql

(cherry picked from commit 9d93504f34b112eb2403381e61deff1559771cd3)
2021-11-16 00:51:51 +01:00
Aokromes c44650502c Core/GameEvent: weekend xp rate (#17782)
* Core/GameEvent: weekend xp rate
by kline

* Update to recent code

* compile fix try
things of copy and paste 4 years old code xd

* more code update

* forgot to change this

* Update worldserver.conf.dist

* Added function to calculate weekend event xp rates

By greenbagels

* Cleaning using scripts

* Implement daymask and rename variables etc.

* Rename script file weekend -> boosted

* Update src/server/game/World/World.cpp

Co-Authored-By: Aokromes <[email protected]>

* Fix xp multiplier not applying to quest rewards

* Disable xp boost script when no boosted days selected

(cherry picked from commit 538c5b86873a4c57e1eb37f0c81c2a7b4552ebc1)
2021-11-16 00:50:23 +01:00
Shauren a0de41af69 Core/Misc: Update description text for SpellAttr8-14 2021-11-16 00:38:33 +01:00
Treeston 65dc3d18e0 Core/Misc: Update description text for SpellAttr6 and SpellAttr7
(cherry picked from commit cd7b0364851b928b07dfc091fd4defb75fed59f8)
2021-11-16 00:22:08 +01:00
Treeston b76daf0bc7 Core/Misc: Update description text for SpellAttr5 (I'm back, baby!)
(cherry picked from commit 9309988a05bca305e794e58bdcdb213747004370)
2021-11-16 00:13:07 +01:00
Gildor 4a775c01e9 Core/Scripts - The Eye: Fix Kael'thas Sunstrider Mind Control, limit MaxAffectedTargets to 3 (#22828)
Closes: #22826
(cherry picked from commit 0ee8a77dce32a5bc057bd4c8caa309be6963e7bf)
2021-11-16 00:07:15 +01:00
Ovah 234a680d3a Core/Objects: properly use UPDATETYPE_CREATE_OBJECT2 when creating brand new objects in all cases. Closes #22419 (#22816)
(cherry picked from commit fb1d568fbaedb2198ee6a39aac669533d8924c82)
2021-11-15 23:42:22 +01:00
Treeston 058f0edd86 Core/Misc: Update description text for SpellAttr4
(cherry picked from commit 8836fc3903d55b85dc451ba928cea490659d8a5d)
2021-11-15 23:39:29 +01:00
Treeston 8464079ab8 Core/Misc: Update description text for SpellAttr3
(cherry picked from commit 50f78e686c258ec2b84e76d13e1c24025eada388)
2021-11-15 23:33:18 +01:00
Treeston da68d7a191 Core/Misc: Update description text for SpellAttr2
(cherry picked from commit 9b4feaacfab77dd5739154c9121ba35bf73e2a90)
2021-11-15 23:24:02 +01:00
Treeston 43d3d5bbb3 Core/Misc: Update description text for SpellAttr1
(cherry picked from commit 8cac5feb58a93d498ce4ec341c66ff41a7b7077f)
2021-11-15 23:20:38 +01:00
Treeston fe9ca742a3 Core/Misc: Update description text for SpellAttr0 to match actual behavior
(cherry picked from commit b69ee07d502f25dc7d9279665440749009414c6d)
2021-11-15 23:08:46 +01:00
Treeston d43f14ab0c DB/Strings: remove some now-unused language entries
(cherry picked from commit 0068813ef92bf93db2642d6a1eaf7c082eaa5d2d)
2021-11-15 22:57:55 +01:00
Keader b37023891e Scripts/Utgarde Keep: Fixed Ingvar evade in phase 2 (one more time)
Closes #21264
ScheduleEvents need happens after remove ImmuneToPc, or it will cause evade.

(cherry picked from commit f1a1acdc89a6521fddca98cc8ef8d6e7ed0b9495)
2021-11-15 22:37:04 +01:00
Keader 77ed0f2399 Scripts/ToC: Fixed Twin Valkyr stucking in progress and added hover
Closes: #22755
Update: #20961
(cherry picked from commit 4c6f0eaa8d2b680c98ba125b5c90748f31928eda)
2021-11-15 22:36:16 +01:00
Treeston 1015f30704 Core/AI: Add some checks to catch if the AI changes mid-update for players. Tag #22731 #22629.
(cherry picked from commit d8fee3c46b70fed660aec905a496e56d6a327aaf)
2021-11-15 22:20:17 +01:00
PolarCookie 1232f1d06e Core/Creatures: Changed creatures to become tagged by player doing any action that causes creature aggro (apart from distance) (#22759)
* This was introduced in patch 3.0.8

(cherry picked from commit f2df802c500e3878ba431d1be0a57ce293983121)
2021-11-15 22:16:04 +01:00
PolarCookie 87486cecff Core/Spells: fix issues with delayed spells and auras (#22382)
* Core/Spells: fix issues with delayed spells and auras

* Make Travis Happy

(cherry picked from commit a0999744ef02bf1494233411d873552d3d564d8a)
2021-11-15 22:13:17 +01:00
DanVS 0585032c90 Core/Entities: Handle partial state change for pets (#22014)
* handle partial state change

* range-based for loop

* fixes

* readability

* break

(cherry picked from commit ae22fd6d7489e11d5bd208e90c1a5b6d27b81e4d)
2021-11-15 22:10:18 +01:00
Rochet2 afac2b1742 Add rotation to .gob info (#22723)
* Add rotation to .gob info

- Add rotation (yaw, pitch, roll) to .gob info command
- Replace LANG_SPAWNINFO_DISTANCEFROMPLAYER with LANG_SPAWNINFO_ROTATION
- Fix description of .distance to describe the command arguments (the more you know..)
- Fix .gob info guid targetting nearest gameobject instead of finding with given guid
- Reorder the info data slightly
- Print location and rotation data regardless of object found in world
- Add error messages for when object is not found by guid or entry

(cherry picked from commit 257ae44a20ed40469dd821845de8e27c0af838c7)
2021-11-15 21:49:37 +01:00
Warpten 1d4efe2986 Fix invalid arguments to string format in Trinity::Fatal
Isn't whatever is used nowadays to make this stuff safe supposed to prevent this sort of stuff?

(cherry picked from commit 9bf69b3849a9d78f3e8d174ed6367a259aaf876f)
2021-11-15 21:34:44 +01:00
Treeston c977087d58 Core/Misc: Partial merge of 3.3.5-dbedit:
- Added SmartEnum.h for enum iteration, stringification, and more, courtesy of krabicezpapundeklu/smart_enum
- Moved a bunch of enums in SharedDefines.h to the new system
- Miscellaneous utility methods ported

Core/Util: Redesign SmartEnum to properly work for large
 enums (>64 entries) and play nice with IDEs (PR #22768)

(cherry picked from commit 338e8ba0fea8b4b15120c96fff15a6c4b1a52593)
(cherry picked from commit f7ca0877a3736000a6e3b4ed09ac5f08b4d8e3f0)
(cherry picked from commit 207093475a177e9fd29696e80fdd06a11324782d)
(cherry picked from commit ee68cf33921944fd3f8c188044906998cf10ff2a)
(cherry picked from commit c16d461e16f0704bb11040faff30953d33ba2188)
(cherry picked from commit f6b0d99e2c0bc22b44d6f3cfdae50cbba7d51de8)
(cherry picked from commit bc1f456125c1b6c90617a514152d69c40ce64886)
2021-11-15 21:34:03 +01:00
ccrs df2f6ad219 Core/Shared: add BattlefieldBattleId definitions
Also rename BG_TEAMS_COUNT and BattlegroundTeamId

(cherry picked from commit 7417cbc655bf9c519b11c4821d8f0619851ea9f7)
2021-11-15 18:52:02 +01:00
Keader fea450d9de Scripts/Ulduar: Fixed Sanctum Sentry accumulating events after wipes
(cherry picked from commit 266a9c3d41d238f5176942ffdfc5c4adfe7e564a)
2021-11-15 18:29:20 +01:00
Aokromes a560800f9d Script/Misc: Change some placeholders to proper texts
(cherry picked from commit 3ea3ed348aca3f5aad1509575a0b73a84ad1ea10)
2021-11-15 17:51:05 +01:00
Aokromes c84d9f5aa9 Core/Spells: Hallowed Wand - Bat custome must be positive
closes #22684

(cherry picked from commit d6d2c4efb911f7b91dd0818e8ae8e8068edfdf37)
2021-11-15 14:41:50 +01:00
Killyana a0bac8c53a DB/GameObject: Sacred Fire of Life
(cherry picked from commit 2dc28bc3a7c673707dee23ebbe725cc32d6a163d)
2021-11-15 14:17:57 +01:00
ccrs 248101b458 Core/Movement: remove undefined method
(cherry picked from commit c8836b6eb4b9e89cc30c1829dd0de2e0fbd89a35)
2021-11-15 14:15:14 +01:00