Commit Graph

32954 Commits

Author SHA1 Message Date
Aokromes
00a0c6e7ed Misc/Config: Update CharacterCreating.Disabled.RaceMask 2020-05-11 18:20:38 +02:00
Aokromes
78bc0c41e9 Misc/Config: Update CharacterCreating.Disabled.RaceMask and ClassMask 2020-05-11 17:54:15 +02:00
Shauren
4fb6ad5225 Fix dynamic build 2020-05-10 19:29:17 +02:00
Shauren
d889228259 Core/DataStores: Allow loading encrypted sections when key is known when reading from casc storage
Closes #24456
2020-05-10 15:29:47 +02:00
Shauren
16761e1d7c Tools/vmap assembler: Move TileAssembler from common to vmap4_assembler where it belongs 2020-05-10 15:24:43 +02:00
Shauren
fe7a0c9ad8 Tools/Extractors: Don't try extracting maps that have no wdt defined in Map.db2 2020-05-10 15:22:58 +02:00
Shauren
885d2a7213 Tools/Extractors: Refactor CascHandles into classes 2020-05-10 15:09:19 +02:00
Shauren
13053538f2 Core/Battlenet: Add club services 2020-05-09 01:09:07 +02:00
Shauren
4c85198ed6 Core/protobuf: Remove unneccessary methods from generated services 2020-05-08 00:12:36 +02:00
Shauren
1aaa3131d0 SQL: Fix reapplying 2020_05_02_02_world.sql by autoupdater 2020-05-07 15:31:22 +02:00
ahchxj2416
d40c302839 SQL: Fix 2020_05_02_02_world.sql for mariadb (#24561) 2020-05-07 15:28:33 +02:00
Shauren
ea812fec11 Dep/CascLib: Update to ladislav-zezula/CascLib@0a05c59eb8 2020-05-07 14:39:40 +02:00
DuelistRag3
dfdabdb97b Core/Spells: Fixed initializing spell power costs (#24579)
Closes #24315
2020-05-07 00:06:33 +02:00
Shauren
d1572327d2 Core/Misc: build fixes
Merges #24550
2020-05-03 14:53:18 +02:00
ariel-
e27d7049c3 Core/Misc: build fixes
(cherry picked from commit aa0b7dd152)
2020-05-03 03:06:37 +02:00
ariel-
6604849716 Core/Scripts: unified scripted gossip/quest api
- Changed self-accessor on GameObjectAI to "me", like UnitAI
- Moved all related functions to AI, now Unit and GameObject have the same function names with identical behaviour
- Remove "OnUpdate" from CreatureScript/GameObjectScript, was never used and we already have AI Update method
- Quest methods no longer return a bool, the return value was used to call the AI version if the ScriptMgr one returned false
- Implemented GameObjectAI::Destroyed hook (was never called), implemented Damaged method
- Rename OnStateChanged to OnLootStateChanged to reflect when it's really called, and created a new hook OnStateChanged that only gets called on GOState change
- Since the functions are now only getting called from AI, made GetAI methods full virtual. (CanSpawn method is anyways going to be used on creatures with AI)

(cherry picked from commit f913f3bb89)
2020-05-03 03:04:32 +02:00
Shauren
e3489c48ee Nopch fix 2020-05-02 23:34:07 +02:00
Shauren
82b4ca3b7c Core/Creatures: Fixed level 240 guards and updated scaling level calculation 2020-05-02 22:37:32 +02:00
funjoker
f5e20e8012 Core/Players: Store race base stat modifiers separately 2020-05-02 22:37:32 +02:00
funjoker
314a35f0cd Core/Creatures: Update creature scaling to use content tuning
Closes #22831
2020-05-02 22:37:28 +02:00
Golrag
d7623adf0e Core/Battlegrounds: Use the following fields from DB2/battleground_template data in the Battleground Class:
* isArena
* name
* queueId
* min & max players (per team)
* map id
* script id
* start max dist
* type id
* min & max level
* Save the WorldSafeLocsEntry* instead of the Position in the BattlegroundTemplate struct
2020-05-02 12:05:30 +02:00
Shauren
32950cec21 Core/Petitions: Updated petition error values to 8.3 2020-05-01 20:48:06 +02:00
Shauren
8c4026a063 Nopch fix 2020-05-01 20:38:52 +02:00
xinef1
48a40fae0a 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 a4aa95a5a3)
2020-05-01 19:32:11 +02:00
ariel-
c3811b26bc Core/Achievement: fix bad lookup of ACHIEVEMENT_CRITERIA_DATA_TYPE_S_EQUIPPED_ITEM item
Closes #19064

(cherry picked from commit 70c4a37544)
2020-05-01 17:35:11 +02:00
Xinef
38d3c5ed16 Core/Achievements: Greatly optimize achievement system by splitting large types by miscvalue
Closes #18633

(cherry picked from commit 9b44ed9cda)
2020-05-01 16:31:01 +02:00
Shauren
57a5969c26 Merge pull request #24500 from funjoker/cherry-picks 2020-05-01 15:41:32 +02:00
Shauren
fbd74eb5d8 Core: Updated allowed build to 8.3.0.34220 2020-04-30 00:41:52 +02:00
ariel-
05ba662d5d Core/Spell: implement pvp trinket immunity against Judgement of Justice
By Riztazz, closes #19484

(cherry picked from commit 25a449a90e)
2020-04-29 22:23:11 +02:00
Kittnz
230adbfc0e DB/Map: Add missing npcs and gameobjects on the old Champion's Hall & Hall of Legends instances.
Notes: this areas is not accessible for normal players.
(cherry picked from commit 21b2042840)
2020-04-29 22:07:16 +02:00
Keader
08635c740a Core/Spells: Fixed Chilled to the Bone
Closes #19417
thanks ariel-

(cherry picked from commit 164af391c9)
2020-04-29 21:11:17 +02:00
ariel-
4f6d38fe9d Core/Entities: moved PetAura handling to Player where it belongs
(cherry picked from commit 231ec8331b)
2020-04-29 01:36:47 +02:00
ariel-
1929ca3aa1 Core/Scripts: remove OnDummyEffect hook/sOnDummyEffect ai hook
- Duplicated logic never used, sometimes only ScriptMgr version was called, sometimes only AI
- They only encourage bad scripting practices
- You can still use OnSpellHit or a SpellScript

(cherry picked from commit b6b59f6c23)
2020-04-29 01:36:46 +02:00
ariel-
93c19c4194 Core/Misc: camelize GetFaction/SetFaction properly
(cherry picked from commit 4c4dca6d69)
2020-04-29 01:36:41 +02:00
Killyana
57b1d76ad5 DB/Creature: Add some missing spawns to Naxxanar area
(cherry picked from commit 5a3a9381e4)
2020-04-28 22:46:56 +02:00
ccrs
a46286a803 Core/Unit: revert 3ea46e57af
After discussion we realized, ariel and me, that Creature and Unit IsMovementPreventedByCasting() have not the same checks (order matters)

(cherry picked from commit 5a2f0ce29e)
2020-04-28 22:42:17 +02:00
Killyana
acdbc681cc DB: Some Pathing on Coldarra area
(cherry picked from commit 01d9df27d5)
2020-04-28 21:49:49 +02:00
ariel-
6a96addadd Core/Unit: 229444b74a follow-up
- IsFocusing is made virtual again, so there's no need to keep a duplicated function

This reverts commit 5043639c56.

(cherry picked from commit 3ea46e57af)
2020-04-28 17:51:57 +02:00
ccrs
104e745edf Core/Misc: cleanup SetInFront uses
Set in front modifies only the serverside orientation, use with care.
Also check for current focus to prevent things like incorrect damage on casting creatures (ie dragon breath direction change in your face because of some taunt missclick)

(cherry picked from commit 229444b74a)
2020-04-28 17:51:25 +02:00
ccrs
2d4549023a Core/Unit: 2170541a51 followup
use true as default value since pretty much all the script calls will expect that

(cherry picked from commit c7a57e2a09)
2020-04-28 17:42:26 +02:00
Keader
d1bdb8bdd3 Core/Scripts: Re-hack Boss Loken. Followup 3a0cb90ea9
Loken still need ClearUnitState Hack to DoMeleeAttackifReady work

(cherry picked from commit 4431a1149d)
2020-04-28 14:59:41 +02:00
ccrs
8c12f36915 Core/Spell: move creature focus
bellow the possible interruptions

(cherry picked from commit df96e053a5)
2020-04-28 14:59:05 +02:00
ccrs
5d411e0b21 Core/CreatureAI: b6b0353bff followup
(cherry picked from commit 5fc366d03b)
2020-04-28 14:55:44 +02:00
ccrs
9a57e95f10 Core/Misc: 522f537048 followup
(cherry picked from commit 5043639c56)
2020-04-28 14:54:44 +02:00
xinef1
9842ca3f4a Core/Spells: Corrected aura SPELL_AURA_MOD_CASTING_SPEED_NOT_STACK handling for auras with very high values (#19054)
(cherry picked from commit e30e11d4c7)
2020-04-28 14:49:14 +02:00
ariel-
3c2882c29d Core/Player: don't check quest requirements against RewardNextQuest
- This field is only used to propose a new quest to player after completion, shouldn't be used to condition current quest

Closes #19515

(cherry picked from commit a82a12b5ef)
2020-04-28 14:14:42 +02:00
ariel-
f3a49059ac Core/AI: some tweaks on boundary functionality:
- Moved SetBoundary to public scope to allow for greater flexibility (ie set from external script)
- Extended to allow checking inverted boundaries

(cherry picked from commit 6892404b27)
2020-04-28 14:07:43 +02:00
ariel-
bb3f2a11cf Core/AI: added a function to allow 0 damage attacks (sparring) depending on target
(cherry picked from commit 3a2ecaa05f)
2020-04-28 14:05:16 +02:00
jackpoz
49f25f6e33 Core/Misc: Fix static analysis issues
(cherry picked from commit 486b032343)
2020-04-28 13:47:58 +02:00
Keader
cc148ebc40 Core/Scripts: Added a missing break in Illidan Stormrage script
Thanks Jackpoz

(cherry picked from commit 3194d089cb)
2020-04-28 13:44:02 +02:00