Commit Graph
37422 Commits
Author SHA1 Message Date
Ovahlord 33bc96fcce CMake: disable unscoped enum type warning C26812 for msvc compilers 2022-02-21 10:36:36 +01:00
Ovahlord 06f6987e2a Core/Spells: allow Rupture's damage to scale with combo points as well 2022-02-21 10:21:43 +01:00
Ovahlord f01012aac9 Core/Spells: corrected the finishing move spell attributes for Rupture and Expose Armor 2022-02-21 10:16:30 +01:00
Ovahlord d53fb14cbb Core/Creatures: no longer initialize CharmInfo for minions on creation. Unit::SetCharmed takes care of non-guardian initialization
closes #334
2022-02-21 09:42:41 +01:00
funjoker 429584e5b8 Tools/Patcher: no hardcoded jump 2022-02-20 23:34:01 +01:00
funjoker 10e7828dbc Tools/Patcher: Fix incorrect Mac64 pattern and patches 2022-02-20 22:06:22 +01:00
Shauren 93259bc282 Build: Never automatically link any boost library with a #pragma comment(linker) encountered in boost headers 2022-02-20 20:27:55 +01:00
Shauren 5ad23e61e4 Dep: Raise required boost versions to 1.73 on windows and 1.71 on linux and remove compatibility code for unsupported versions
# Conflicts:
#	dep/boost/CMakeLists.txt
2022-02-20 20:27:35 +01:00
Ovahlord bbcd74d671 Scripts/FL: disable Heart of Ragnaros spell cast on encounter completion until it is handled to avoid spawning hearts at the location of every npc in the raid 2022-02-20 20:21:30 +01:00
ccrs 3499ffa187 Core/Petition: add missing increment on RemovePetitionsByOwnerAndType iteration
(cherry picked from commit aa86dfddca8f1fcb6b77fc1a37f367978c593018)
2022-02-16 05:00:59 +01:00
xinef1 e5f3de026f Core/Misc: implemented petition manager (#19010)
- Implemented manager for petitions to perform all petition related tasks and synchronize data with database.
- This kills ugly synchronous querys on packet handlers

(cherry picked from commit a4aa95a5a39d75b9e38fe03aac57ceb7d9bba90f)
2022-02-16 04:59:12 +01:00
ariel- cb168a8e7e Core/Unit: fix crash on magic school autoattacks
Closes #19436

(cherry picked from commit 0b50ea072e504ac7d5bf87b08d564955785f7197)
2022-02-16 04:49:24 +01:00
jackpoz 8746d9f56a Core/Misc: Fix static analysis issues
(cherry picked from commit 486b03234304526d8f7d66ff0d99ea3de975745e)
2022-02-16 04:49:24 +01:00
ariel- 4c658cf2da Revert "Core/Spell: don't set scaleAura for some special spells"
This reverts commit 1ca8434b365687dbd12ca232a615d126234eba5e.

Closes #19472

(cherry picked from commit c296d255e25a2d0eb7155f64eea32cc36fed280a)
2022-02-16 04:49:24 +01:00
ariel- 5ad31dcf55 Core/Unit: fix SPELL_AURA_MOD_DAMAGE_DONE damage calculation on non-melee schools
for Keader :P

(cherry picked from commit 66ac1509ae925edc8848cdf6c370f8ed52c688ec)
2022-02-16 04:49:24 +01:00
ariel- d441e864c4 Core/Unit: cleanup and minor fixes of miss and resist calculations
- Removed Unit::GetUnitMeleeSkill as it was basically a copy of GetMaxSkillValueForLevel
- Removed static from GetEffectiveResistChance, as this was passed anyways, changed name to CalculateAverageResistReduction, which better reflects what it does
- Fix melee miss chances calculated from attacker maxskill instead of victim maxskill
- Do actual checks if spell can be resisted/missed in MagicSpellHitResult (ie chances > 0)
- Fixed SPELLMOD_RESIST_MISS_CHANCE calculation in MeleeSpellMissChance
- Minor codestyle and cleanup of diminishing returns calcs

(cherry picked from commit e565b34f6d24411e210151d0d03e524f94cdff85)
2022-02-16 04:49:24 +01:00
ariel- 0e8422c30a Core/Misc: fix static analysis issues
CID 1373466
CID 1373481
CID 1373482

(cherry picked from commit e478434146fd479fab955aaa80eb925c15e29809)
2022-02-16 04:49:24 +01:00
ariel- 58745ed8cc Core/AHBot: fixed assert check
(cherry picked from commit c36854677c4cef0c83a81afa23b45ba322d354cc)
2022-02-16 04:49:24 +01:00
ariel- 14a95ff976 Core/Spell: don't set scaleAura for some special spells
Closes #14541

(cherry picked from commit 1ca8434b365687dbd12ca232a615d126234eba5e)
2022-02-16 04:49:24 +01:00
ariel- 4a3c6b3ae5 Core/AHBot: fix a typo
(cherry picked from commit e594c2d096c101a5b722793612febb6276b3b48e)
2022-02-16 04:49:24 +01:00
ariel- df00319c1b Core/AHBot: Refactor of AuctionHouseBotSeller:
- Use AuctionHouseBot.Class.* for what they really are, priorities, factor them when calculating item amount per class, changed enums to CONFIG_AHBOT_CLASS_*_PRIORITY to reflect this change
- Don't factor in the priority calc empty item lists:
  * Let's say you had AuctionHouseBot.Class.Glyph set to 10, sum of AuctionHouseBot.Class.* is 20, and AuctionHouseBot.Items.Amount.White is 5000
  * If there were no glyphs on the item list, you automatically lost 50% of the total item amount, meaning only 2500 of original 5000 were alloted to fill
- Fixed AuctionHouseBot.AH.Price.Ratio to be an actual percentage factor

- Separated containers in SellerConfiguration, each one better reflects what kind of data is stored there, now we won't use magic index 0 from _ItemInfo :P
- General cleanup, removal of bad voodoo and magical numbers
- Use unordered_sets for loading item lists, as they were only used to check for item presence

(cherry picked from commit 7f8bfe68d0f660643c8bd4c63d2129d220c2184c)
2022-02-16 04:49:24 +01:00
Chaouki Dhib 17c4d8f6d9 Core/Spells: fix wrong distance calculations in AoE spells [Needs testing] (#16290)
Core/Spells: Fix wrong distance calculations in AoE spells.
Pull request #16290 by chaodhib.
God bless, finally.

(cherry picked from commit a1f2f30c145f6ad9c4baeffeff32618e71ff537c)
2022-02-16 04:49:24 +01:00
ariel- 4ad1d377fe Core/Entities: virtualize CheckAttackFitToAuraRequirement
- Should've been like this to begin with

(cherry picked from commit 21d95a1d767c95910d4508e0e83f34b4f89f587a)
2022-02-16 04:49:24 +01:00
ariel- 70ecdd1511 Core/Aura: fix SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE unapply case for dead players
Closes #19276

(cherry picked from commit e1083794cde600205c45a016e6d077d1ffa4dea9)
2022-02-16 04:49:24 +01:00
ariel- 827fcb652a Core/Entities: Fix null-dereference crash
Closes #19191

(cherry picked from commit d61e0f79c40681ce7675e878e0ec0bdc2294527f)
2022-02-16 04:49:24 +01:00
ariel- b8d1bab8de Core/Spells: refactor spell_enchant_proc_data table
- Renamed fields to mimic those in spell_proc
- Added Enchant proc attributes for controlling specific enchant features

Ref #7789

(cherry picked from commit f609e7a08b3b4d2d9642e5ec252e1eedad836f0f)
2022-02-16 04:49:24 +01:00
ariel- 5e57ad6fa8 Core/Scripts: fix Nightfall proc chance and reduce it for victims with level above 60
Closes #15734

missing code
(cherry picked from commit eac9c1f0b992fd3622fd7dd864b2acc2781ec778)
2022-02-16 04:49:24 +01:00
xinef1 a627ea354a Properly stop attacking after player leaves ffa area (like Gurubashi Arena) (#18952)
(cherry picked from commit 4eae29d421e1d7a28aaa50d401cbbf09c50bd476)
2022-02-16 04:49:24 +01:00
xinef1 716487fefc Corrected points per level calculation for some spells (#19105)
(cherry picked from commit 9142c778dd861eda188ba868433af05038c4e13c)
2022-02-16 04:49:24 +01:00
xinef1 df9738aaa9 Core/Misc: Fixed player corpse looting, added player corpse loot and some more (#19122)
* Fixed corpse looting in wintergrasp
Added corpse loot for wintergrasp quests and To the Looter Go the Spoils (1166) achievement
Don't generate money for loot if no loot mode is available
Simplified few things

(cherry picked from commit 2412886ef69d305df1bd6e6422ca3134c0ab1449)
2022-02-16 04:49:24 +01:00
xinef1 f431459063 Core/Creatures: Various fixes for creatures, regarding combat conditions, despawning, and few others (#18998)
* Made some changes to kiting mechanics, simplified code and made taunt auras prolong combat no matter the distance from the spawn
Unified some creature despawning code, removed some brutal direct calls in scripts
Don't play death anim on forced despawn
Removed some redundant visibility changes on creature despawn
Fixed possible problem with pet initializing template info from difficulty greater than normal
Properly keep UNIT_FLAG_IN_COMBAT on UpdateEntry call
Moved RegenerateMana function to general Regenerate(Power) function
Fixed increased health regeneration from polymorph for pets
Implemented CREATURE_TYPE_FLAG_GHOST_VISIBLE, those creatures will be properly seen when player is dead also
Removed hackfix from Gaeriyan and Franclorn Forgewright, fixed properly
Simplified ForcedRespawnTime code in ForcedDespawn
Do not allow to assist unit while evading or when enemy is evading
Do not allow to attack other units when evading or when the unit is evading
Corrected distance checking code before creature is allowed to evade, should fix some common problems
Properly return summon position for summoned creatures as their respawn position
Properly stop all moving units on gossip hello, no matter their npc flags

(cherry picked from commit e1f14215d86fc9f0cd041f0e87bf0a689c086329)
2022-02-16 04:49:24 +01:00
Ovahlord 5a2cdf2d68 DB/Creatures: corrected the base armor value for Cataclysm raid bosses 2022-02-12 20:26:35 +01:00
Ovahlord 0d5a854b49 Core/Spells: corrected the spell range entry for Furious Attack's triggered healing reduction debuff 2022-02-07 16:08:02 +01:00
Ovahlord bea6e6dcea fixed build 2022-02-05 07:22:16 +01:00
Ovahlord f2d651f6a9 Core/Units: no longer normalize melee basic attacks of feral druids 2022-02-05 00:00:55 +01:00
Ovahlord 07eb4454be Core/Packets: enabled and added packet class for SMSG_UPDATE_DUNGEON_ENCOUNTER_FOR_LOOT 2022-02-03 01:44:22 +01:00
Ovahlord e5666d81bc Scripts/DS: documented map object event data for Spine of Deathwing and Warmaster Blackhorn 2022-02-03 01:29:20 +01:00
Ovahlord b12ae523cd Core/Packets: enable and added packet structure for SMSG_MAP_OBJ_EVENTS 2022-02-03 01:12:41 +01:00
Ovahlord 4db2d16f2e Core/Packets: corrected initial bytebuffer size for loot response packet 2022-02-03 00:43:12 +01:00
Ovahlord ca35e20c55 Core/Packets: enabled and added packet structure for SMSG_LOOT_CONTENTS 2022-02-03 00:37:59 +01:00
Ovahlord 2087c0521e Scripts/Firelands: ensure that Ragnaros' orientation is up to date before casting Splitting Blow as the facing spline takes one tick to finalize 2022-02-02 17:59:25 +01:00
Ovahlord 2157ab4510 fixed build 2022-02-02 17:49:14 +01:00
Shauren 73bae7c5e5 Core/Spells: Correct implementation of SPELL_ATTR2_TRIGGERED_CAN_TRIGGER_PROC, SPELL_ATTR3_TRIGGERED_CAN_TRIGGER_PROC_2, SPELL_ATTR3_CAN_PROC_WITH_TRIGGERED and rename them (SPELL_ATTR2_ACTIVE_THREAT, SPELL_ATTR3_NOT_A_PROC, SPELL_ATTR3_CAN_PROC_FROM_PROCS) 2022-02-02 17:45:23 +01:00
Gildor ffb22996b1 Revert "Core/Spells: Force Invisibility (mage) to leave combat." (#27701)
This reverts commit 4b0acb7432.

Co-authored-by: kaelima <kaelima@live.se>
# Conflicts:
#	src/server/game/Spells/Auras/SpellAuras.cpp
2022-02-02 17:42:52 +01:00
Ovahlord f63d798ed7 Scripts/Firelands: implement Ragnaros encounter 2022-02-02 17:40:54 +01:00
Ovah 135e8833d7 Core/Objects: added a missing member initialization which sometimes resulted in objects being invisible clientside
How did CI not notice that?
2022-02-02 17:33:07 +01:00
Ovahlord f1acf8d5e8 Scripts/Gilneas: applied modern scripting standards on chapter 1 scripts 2022-02-02 16:24:42 +01:00
Shauren f2b4f2208e Core/Objects: ported master branch handling for properly destroying objects via out of range and destroy object opcode
# Conflicts:
#	src/server/game/Entities/Creature/Creature.cpp
2022-02-02 16:24:42 +01:00
funjoker 284b2a23eb Core/Misc: Format fix 2022-01-28 22:32:59 +01:00
funjoker e7eac8823f Fix AdditionalRequirement item checkup 2022-01-28 22:32:59 +01:00