Commit Graph

25049 Commits

Author SHA1 Message Date
Shauren 0e3666bfbc Core/Spells: Fixed calculation spell optional power cost when any modifiers are applied 2021-03-02 23:14:50 +01:00
Shauren 624881bef5 Core/Spells: Refactor Player::ApplySpellMod to take SpellInfo argument instead of just spell id 2021-03-02 21:32:48 +01:00
Shauren 49532eda5f Core/Spells: Refactor getting spell mod values to separate function 2021-03-02 21:12:08 +01:00
Shauren 55eef73c48 Core/PacketIO: Increase max allowed incoming packet size for CMSG_HOTFIX_REQUEST 2021-03-02 01:06:28 +01:00
Shauren ab9b18d3fb Core/Criteria: Always fail CRITERIA_ADDITIONAL_CONDITION_USED_LEVEL_BOOST_LESS_THAN_HOURS_AGO
Closes #26186
2021-03-01 00:52:15 +01:00
Shauren ad479e8fa0 Core/Spells: Implemented spell effect 202 SPELL_EFFECT_APPLY_AREA_AURA_SUMMONS 2021-02-28 22:08:58 +01:00
Shauren 68bdf1c830 Core/PacketIO: Use hotfix status enum instead of magic numbers in SMSG_DB_REPLY 2021-02-28 20:58:03 +01:00
Jeremy 2380fc32dd Spells/Auras: Dont save SPELL_AURA_BATTLEGROUND_PLAYER_POSITION auras (#26076) 2021-02-28 18:50:41 +01:00
Robingad 995fb23bc1 Core/Scripts: Add SpellInfo argument to ScriptMgr::ModifySpellDamageTaken (#26141) 2021-02-28 18:42:36 +01:00
Robingad 5e78494e54 Core/Spells: Add nullptr itemTarget check in Spell::EffectEnchantItemTmp (#26172) 2021-02-28 18:10:27 +01:00
Shauren c86cffe5ef Core/DataStores: Support all new hotfix status values 2021-02-28 01:14:33 +01:00
Shauren 3e3b93b509 Core/Scenes: Add support for encrypted scenes 2021-02-27 21:49:35 +01:00
Ovah ee2ebfe87d Core/Auras: implemented SPELL_AURA_MOD_HEALING_DONE_PCT_VERSUS_TARGET_HEALTH (#26176) 2021-02-27 20:55:59 +01:00
Matan Shukry e972f84e7b Scripts/Spells: Removed unused warrior spell scripts (#26160) 2021-02-27 20:40:38 +01:00
Matan Shukry 8665323876 Scripts/Spells: Removed unused dk spell scripts (#26154) 2021-02-27 20:23:37 +01:00
Matan Shukry 1fa33b1dc8 Scripts/Spells: Removed unused warlock spell scripts (#26159) 2021-02-27 13:56:41 +01:00
Matan Shukry 18a82d9801 Scripts/Spells: Removed unused shaman spell scripts (#26158) 2021-02-27 13:51:37 +01:00
Matan Shukry 6b9ff7442e Scripts/Spells: Removed unused rogue spell scriptss (#26157) 2021-02-27 13:50:05 +01:00
Matan Shukry a681309d58 Scripts/Spells: Removed unused hunter spell scripts (#26155) 2021-02-27 13:28:42 +01:00
Matan Shukry b8f76334fe Scripts/Spells: Removed unused priest spell scripts (#26153) 2021-02-27 12:55:39 +01:00
Shauren afae75841b Core/SAI: Rename SMART_ACTION_TALK_CONVERSATION to SMART_ACTION_CREATE_CONVERSATION 2021-02-27 11:42:44 +01:00
Matan Shukry 0996d60944 Core/SAI: Add SAI action to create a conversation (#26169) 2021-02-27 11:22:55 +01:00
Shauren 87ec98dd21 Fix nopch build 2021-02-27 10:36:57 +01:00
Shauren ec9f5be6a6 Core/Phasing: Implemented setting personal guid on PhaseShift 2021-02-27 01:44:44 +01:00
Shauren c9344c145a Core/Auras: Implemented SPELL_AURA_PHASE_ALWAYS_VISIBLE 2021-02-26 22:10:34 +01:00
Shauren f269f60d8a Scripts/Quests: Implemented new quest scripting hook, OnQuestAcknowledgeAutoAccept, used when player closes quest frame after viewing details of autoaccept quests 2021-02-26 20:42:29 +01:00
Shauren dcca884605 Core/Misc: Really fixed nopch MSVC build
(cherry picked from commit e19bb7a1a5)
2021-02-25 20:29:22 +01:00
ccrs 045b26fe9f Core/Movement: correction on header use on some generators
(cherry picked from commit daef1493f2)
2021-02-25 20:20:29 +01:00
Shauren 34cd11860d Core/Misc: Fixed nopch MSVC build
(cherry picked from commit e977bb4c4d)
2021-02-25 19:59:07 +01:00
ccrs 82b7f47d53 Core/AI: reorder methods in ScriptedEscortAI
plus ninja rename

(cherry picked from commit 0db5516a1a)
2021-02-25 18:50:55 +01:00
Ovah b77c9d7a8c Core/Spells: Gathering no longer fails after patch 3.1.0 (#21039)
* Core/Skills: gathering items with orange skill level will no longer fail as it has been removed with patch 3.1.0

Closes #21038

(cherry picked from commit 51bcd1a918)
2021-02-25 18:50:55 +01:00
jackpoz a01d397c3d Core/Misc: Fix static analysis issues
Fix static analysis issues reported by 3rd party tools

(cherry picked from commit 24e82fe83d)
2021-02-25 18:50:55 +01:00
jackpoz 668a3ad643 Core/Misc: Fix static analysis issues
Fix coverity id 1382860

(cherry picked from commit 19e99478a7)
2021-02-25 18:50:55 +01:00
Ovah 2a51edc5bc Core/Creatures: Implemented extra flag to use offhand attacks (#21008)
* Fixed initial offhand attack timer so the main and offhand attacks will now act blizzlike instead of getting executed at the same time

Note: since some creature equipment items cannot be identified as weapon since they are only visual items there is no way to detect this automaticly
(cherry picked from commit 869affa893)
2021-02-25 18:50:55 +01:00
Keader 2630a5288a Core/Scripts: Fixed Enervating Brand in Baltharus encounter
Closes #21027
By Mihapro

(cherry picked from commit 6598c5d2f3)
2021-02-25 18:50:55 +01:00
Shauren c1ad297a72 Core/Spells: Fixed accessing freed memory after reloading spell_area
(cherry picked from commit d011097ab0)
2021-02-25 18:50:55 +01:00
jackpoz 246871e3d5 Shared/Metric: Stop metrics on shutdown
Properly stop metric information gathering and sending on shutdown.
Issue reported by AddressSanitizer.

(cherry picked from commit e9c475d45f)
2021-02-25 18:50:55 +01:00
jackpoz 96406e3408 Core/Crash reporting: Fix buffer overflow
(cherry picked from commit c7043b25f6)
2021-02-25 18:50:55 +01:00
jackpoz 7cb6c17df4 Core/CreatureAI: Disable TotemAI from database
Disable TotemAI set in creature_template, triggering an assert when spawning the creature

(cherry picked from commit 072c884ed8)
2021-02-25 18:50:55 +01:00
Treeston 03ab9bc6fa woops (ref 76a4c7d)
(cherry picked from commit b4df977ca6)
2021-02-25 18:50:55 +01:00
Treeston 2c0b94a000 Some misc streamlining/cleanup:
- std::chrono overloads for SummonCreature
- Removed misleading const qualifier from SummonCreature (it wasn't being honored)
- Rename parameters of SummonCreature to follow convention
- EventProcessor has a new method (AddEventAtOffset) that adds an event...at an offset. Genius.

PS: Hi there Keader.
(cherry picked from commit 76a4c7d974)
2021-02-25 18:50:55 +01:00
jackpoz f1388f37b6 Core/WorldSession: Fix idle WorldSessions getting kicked twice as fast as supposed
Fix SocketTimeOutTime and SocketTimeOutTimeActive settings being effectively halved by reducing the timeout time twice every update instead of just once, causing much faster kicks (i.e. after 30 seconds with 60 seconds set in the configs).

(cherry picked from commit 032194099e)
2021-02-25 18:50:55 +01:00
Killyana 29aae591bc DB/Creature: Scourging Crystal
And fix spell script spell_q11396_11399_scourging_crystal_controller
Closes #17596

(cherry picked from commit 00e3023b32)
2021-02-25 18:50:55 +01:00
Ovah 9ff4aea416 Fix build 2021-02-24 23:03:00 +01:00
Ovah c2632999ee Core/PacketIO: Fixed building SMSG_PARTY_MEMBER_FULL_STATE for multiple receivers 2021-02-24 23:00:35 +01:00
Matan Shukry 37db083589 Scripts/Spells: Changed palading spell scripts to use RegisterSpellScript and RegisterAuraScript (#26149) 2021-02-24 22:30:22 +01:00
Matan Shukry ed2a0b610a Scripts/Spells: Remove old paladin spell scripts (#26148) 2021-02-24 22:13:52 +01:00
Shauren 8740c2f85f Core/Auras: Improve PROC_ATTR_USE_STACKS_FOR_CHARGES implementation to give stacks priority over charges if both are present in spell data
Closes #26146
2021-02-24 22:08:21 +01:00
Matan Shukry 9e948ff4bd Core/Spells: Corrected the spell id source used in the learn spells map when loading SpellLearnSpell.db2 data (#26140) 2021-02-24 20:20:14 +01:00
Matan Shukry 428fbcb133 Core/Players: Always clear old action bars on specialization change, even if new specialization doesn't have anything on its bars (#26134) 2021-02-23 20:08:21 +01:00