Commit Graph

34280 Commits

Author SHA1 Message Date
Matan Shukry
3b578fc6b9 Core/Chat: Load chat language data from db2 and implement serverside chat translations 2021-05-03 23:53:24 +02:00
Shauren
fb66575d38 Core/Grids: Move packet sending functionality out of MessageDistDeliverer and into separate, customizable class and unify LocalizedPacketDo, LocalizedPacketListDo as generic localizable action 2021-05-01 20:16:10 +02:00
Shauren
d6dfb6c54c Dynamic linking build fix 2021-04-30 11:51:44 +02:00
Shauren
3a37a2e0d7 Core/Grids: Allow customizing packets sent with MessageDistDeliverer and MessageDistDelivererToHostile depending on receiver
* Switch combat log sending to that implementation
2021-04-30 00:08:07 +02:00
Matan Shukry
cd8edc6895 Core/DataStores: Load LanguageWords.db2 and Languages.db2 for future use 2021-04-29 21:18:08 +02:00
Shauren
8e6821648b Core/Spells: Only interrupt spells with interrupt flag Combat when spell also has SPELL_ATTR0_CANT_USED_IN_COMBAT attribute 2021-04-29 18:51:56 +02:00
ariel-
b426e64c39 Core/Entities: fix crash
- m_currentSpells and spell would be different in case cancelation of a channeled spell would remove the aura, and aura scripted to cast another channeled spell on remove
- In the above situation, we would lose reference of currentSpell and remove reference from wrong one, this was fixed by clearing the pointer before spell cancelation.

Closes #20172

(cherry picked from commit 5e284d4b38)
2021-04-27 23:56:35 +02:00
Treeston
e0afca513a Core/AI: UnitAI.h trimming part two. WaypointX methods kicked upstairs to CreatureAI.h.
(cherry picked from commit 9c1e675590)
2021-04-27 23:51:40 +02:00
Treeston
0aed5a35ef Core/AI: Kick Gossip functions upstairs, from UnitAI to CreatureAI - they only make sense for Creatures anyway.
Also change a very ugly hack in GetDialogStatus. Ew.

(cherry picked from commit eacfa9d89a)
2021-04-27 23:49:36 +02:00
funjoker
f4ef40d968 Core/Conversations: Fix conversation data handling (#26375) 2021-04-27 11:06:56 +02:00
Matan Shukry
8b0de23d0e Core/SAI: Don't clear stored pathid if it changed after processing waypoint events (#26334) 2021-04-26 21:39:22 +02:00
Shauren
e5ef649634 Tools/vmap_extractor: Unify version printed to console with shared vmap version definition 2021-04-25 12:33:33 +02:00
Shauren
db18228174 Tools/vmap_extractor: Fix MOVX implementation for "small" vmaps (-s or no command line argument) 2021-04-25 12:32:32 +02:00
Shauren
20aeb63026 Core/Vmaps: Extract more doodad sets 2021-04-25 00:11:42 +02:00
Shauren
d0ca535ab8 Core/Vmaps: Prepare vmaps for reading new WMO chunk - MOVX, replacement for MOVI using larger data type (currently unused in 9.0.5 client) 2021-04-25 00:11:42 +02:00
Shauren
e821693c16 Core/Vmaps: Reduce memory used by vmaps, part 2 2021-04-25 00:11:42 +02:00
Shauren
bb8f22ed20 Core/Vmaps: Reduce memory used by vmaps (and their size, slightly) 2021-04-25 00:11:36 +02:00
Shauren
4e00cb7c15 Core/Spells: Fix feed pet effect after wrong merge conflict resolution 2021-04-22 22:57:00 +02:00
Matan Shukry
c99f93d53d Scripts/Spells: Implemented monk stagger (#26295) 2021-04-22 22:45:26 +02:00
Matan Shukry
60df74933f Core/Spells: Removed extra health from feed pet (#26305) 2021-04-22 22:02:19 +02:00
Shauren
8a452c3d10 Scripts/Spells: Implemented discipline priest PvP talent Trinity 2021-04-21 23:14:02 +02:00
Matan Shukry
dbc082a2b2 Scripts/Spells: Implemented Atonement
* Also renamed spell_priest_spirit_of_redemption to spell_pri_spirit_of_redemption
2021-04-21 23:14:02 +02:00
Matan Shukry
2e2dc1afc9 Core/Spells: Added spell value duration to modify aura duration of a specific spell cast 2021-04-21 23:14:02 +02:00
Shauren
90a47188af Core/Items: Equipping rings/trinkets/weapons by right clicking them in bags will now swap the lower item level equipped one instead of first slot 2021-04-21 20:54:44 +02:00
Shauren
aa826993e2 Core/Items: Don't update average item level when obtaining/destroying non-equippable items 2021-04-21 19:49:55 +02:00
Matan Shukry
a8fa2a03be Core/Items: Calculating item level + organized iterating over items (#26276)
* Unified iterating player items into a single function

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-04-21 10:02:42 +02:00
MistiX
bf1c73dfc2 Core/Misc: Fix crash when loading playerchoice_response (#26454) 2021-04-20 20:34:45 +02:00
Shauren
7e78e25e34 Core/Misc: New function in GameTime allowing selecting std::chrono clock type by template argument 2021-04-20 10:26:04 +02:00
Matan Shukry
81eac82656 Core/Spells: Implement priest holy words + modify cooldown for a charge (#26270)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-04-19 23:54:13 +02:00
Shauren
854a55daab Core/PacketIO: Implemented SMSG_SPELL_ABSORB_LOG 2021-04-18 00:12:46 +02:00
Matan Shukry
530631e0a7 Core/Auras: Implemented SPELL_AURA_SCHOOL_ABSORB_OVERKILL (#26269) 2021-04-17 22:42:34 +02:00
jackpoz
5b4f61d915 Core/Crash reporting: Add support to char* arrays
Add support to char* array showing the string value instead of the pointer address

(cherry picked from commit 4c0c4ab271)
2021-04-16 21:03:23 +02:00
jackpoz
4f643e3f32 Core/Misc: Removed unneeded checks
(cherry picked from commit 513e153a13)
2021-04-16 20:53:41 +02:00
Treeston
bce43de7f3 Core/AI: Some more refactoring prep for #19930. CreatureAI::EnterCombat is now called CreatureAI::JustEngagedWith. There's also two new methods on UnitAI, though they're never invoked right now.
(cherry picked from commit 6113b9dec2)
2021-04-16 20:22:13 +02:00
Shauren
8eb3c61f1a Core/Misc: Fix cherry-pick errors 2021-04-16 15:23:04 +02:00
Treeston
9b141207d1 [3.3.5] CastSpell unclusterfucking (that's a word now) (#21123)
Core/Spell: The giant CastSpell unclusterfucking (that's a word now) of this generation.

- CastSpell now always takes three arguments - target, spellId, and a struct containing extra arguments
- This struct (CastSpellExtraArgs, see SpellDefines.h) serves as a conglomerate of every previous combination of the 20 billion different CastSpell overloads, all merged into one
  - It has some great utility constructors - check them out! All of these can be used to implicitly construct the ExtraArgs object.
- A gajillion refactors to make everything behave the way it always has

(cherry picked from commit d507a7e338)
2021-04-16 15:22:42 +02:00
xinef1
2ea8f5e6fc Move some packets processing to map context (#18638)
Core/Network: Allow some packets to be processied in map context

(cherry picked from commit 2286da2166)
2021-04-15 20:05:39 +02:00
ariel-
e84447ae2a Remove wrong MECHANIC_SLOW_ATTACK immunity from creatures
- Bosses need to be affected by tank debuffs (ie Thunder Clap, Judgements of the Just, Infected Wounds, Frost Fever)

Ref 8ecde2f96b

(cherry picked from commit 527ef19ae8)
2021-04-15 05:53:27 +02:00
ariel-
2c0d9e3301 Rename 2017_12_29_00_world.sql.sql to 2017_12_29_00_world.sql
(cherry picked from commit 4d2886196f)
2021-04-15 05:53:27 +02:00
Jeremy
446fc391f0 Core/Entities: Fix some weird movement due to los issues (#21125)
* Core/Entities: Fix some weird movement due to los issues
- Made LoS check use collisionHeight instead of midsection. Value was too low.
- Gnomes will now have a breath bar more quickly than for example a tauren.
- Changes have been made to checking for ground z as well, some tweeking might be needed but removed most of the scattered +2.0f/+0.5f/we
* Add 0.05f to isInAir check in Creature::UpdateMovementFlags

(cherry picked from commit e42903ec16)
2021-04-15 05:53:27 +02:00
ariel-
61585de8ae Core/Scripts: fix codestyle
(cherry picked from commit e2a97ba7e7)
2021-04-15 05:53:27 +02:00
Keader
6c2d0d709a Core/Scripts: Val'anyr Hammer of Ancient Kings should proc only with effective heal
(cherry picked from commit 502864e86c)
2021-04-15 05:53:27 +02:00
ariel-
313b2ff526 Core/Scripts: remove Quel'Delar from player inventory during "The Halls Of Reflection" quests (24480, 24561)
(cherry picked from commit d13999c8d6)
2021-04-15 05:53:27 +02:00
ariel-
09d883361d DB/Spawns: fix ICC Runeforge (missing spellfocus)
(cherry picked from commit 81dc41a4a5)
2021-04-15 05:53:27 +02:00
ariel-
d87723a055 DB/Loot: Vanquisher's Mark of Sanctification has a slightly higher drop chance than other marks
- This is to compensate the fact that it's shared by 4 classes instead of 3

(cherry picked from commit b12d515158)
2021-04-15 05:53:27 +02:00
ariel-
4b0cd29aef DB/Creature: set trigger flag to Imp in a Ball
(cherry picked from commit 4ff4c38ac6)
2021-04-15 05:53:27 +02:00
ariel-
cfa8474520 Core/Scripts: prevent Arthas in CoS losing his gossip flag and halting instance progress
(cherry picked from commit 720ba9e973)
2021-04-15 05:53:27 +02:00
ariel-
f8729f9aa0 Core/Scripts: fixed Festergut applying more than one stack of Inoculated at once
(cherry picked from commit c409ba8d9d)
2021-04-15 05:53:27 +02:00
ariel-
60465c01f2 Core/Vehicles: changed flags required to mark a seat as "usable"
Ref #3831

(cherry picked from commit 42ad5332e4)
2021-04-15 05:53:27 +02:00
ariel-
9baabd50b7 DB/Spell: Restrict Karazhan book buffs to that raid
Ref #16049

(cherry picked from commit fed9e87bb0)
2021-04-15 05:53:27 +02:00