Commit Graph

16635 Commits

Author SHA1 Message Date
ariel-
19eeca684f Core/Unit: don't clear low health aura states on death
- Confirmed with sniffs, healthless states aren't cleared
- Prevents some procs from happening

Closes #19754

(cherry picked from commit 05b42eef7e)
2020-06-14 22:47:27 +02:00
xinef1
9e954295c5 Core/Quests: Display quest objective explore completion message
- Game client should show an on-screen message for explored quest objectives
  (AreaExploredOrEventHappens) when the objective has been completed.

Closes #19543

(cherry picked from commit 538f60a880)
2020-06-14 20:14:41 +02:00
ariel-
3698f3a262 Core/Entities: allow guardian pets to inherit spellmods
(cherry picked from commit 97e608b053)
2020-06-14 20:09:45 +02:00
Chazy Chaz
e21e7cd2e2 Scripts/Commands: Update reload commands names
(cherry picked from commit 4843544c21)
2020-06-14 20:09:40 +02:00
Chaouki Dhib
419689b485 Core/Spells: change to the way the spell effect SPELL_EFFECT_JUMP work
(cherry picked from commit d625c0f619)
2020-06-14 20:04:17 +02:00
ccrs
55576d20d8 Core/Creature: drop method SetPosition
eeeevil, use UpdatePosition. It was there just for old scripts compatibility.

(cherry picked from commit 17579f8d91)
2020-06-14 20:04:17 +02:00
ccrs
a90f60f7d3 Core/Transport: fix logic error
justStopped was always set true, but when transports spawn and remain stationary timer, _currentFrame->ArriveTime and _currentFrame->DepartureTime are set to 0, making justStopped always remain true and triggering incorrect calls.

(cherry picked from commit dd2151cc7a)
2020-06-14 20:04:17 +02:00
ccrs
08f13f83af Core/Creature: IsMovementPreventedByCasting followup
Handle correctly move allowed channels: IsChannelActive checks if channel phase has started (after cast if any)
Must skip the other checks since all channels focus target.

ref #19532

(cherry picked from commit b74264aef4)
2020-06-14 20:04:16 +02:00
Shauren
d53a2dea5f Core/Misc: Add .Size() to TypeUnorderedMapContainer for stats/debugging 2020-06-14 15:09:33 +02:00
Carbenium
1258800add Core/Entities: Add a missing include 2020-06-14 14:08:24 +02:00
Shauren
6533de3100 Core/Items: Implemented corruption and corruption resistance stats 2020-06-13 00:30:32 +02:00
funjoker
2493d88a72 Core/DataStores: Fix loading hotfixes deleting records for db2s not loaded by worldserver (#24783)
* Also load WorldStateExpression.db2
2020-06-12 11:07:11 +02:00
Shauren
c7306439e7 Core/Spells: Implement using different difficulty data from all spell related db2s, not just SpellEffect and SpellPower 2020-06-12 01:29:18 +02:00
Shauren
1cdd1d0249 Core/Auras: Defined unknown aura type 2020-06-09 11:56:22 +02:00
Shauren
5fce3604fc Core/PacketIO: Fixed receiving and sending db2 hotfix packets 2020-06-08 00:08:37 +02:00
Shauren
e5a6552abc Core/Items: Fixed generating default bonuses based on context 2020-06-07 12:38:38 +02:00
Shauren
b47c19d506 Core/DataStores: Allow custom hotfixes (VerifiedBuild <= 0, has loading priority) to coexist with sniffed data (VerifiedBuild > 0) 2020-06-06 23:40:53 +02:00
Shauren
63fba47511 Core/Items: Implemented new bonus type (extra ItemEffect) 2020-06-05 00:27:40 +02:00
Shauren
df0a027444 Core/Misc: Ensure that query used for .reload creature_template command always matches the one used for loading during startup 2020-06-04 00:13:05 +02:00
Shauren
3f5dbf1f88 Fix GCC build 2020-06-03 00:40:44 +02:00
Shauren
db7126de46 Core/DataStores: Fixed loading hotfixes crash when compiled with strict database type checking
Closes #24716
2020-06-01 00:15:33 +02:00
Shauren
41c3675bb9 Fix warnings 2020-05-31 17:18:18 +02:00
Shauren
bf8714b870 Core/Battlegrounds: Queue updates
* Fixed battleground queues for battlegrounds with id higher than 255
* Fixed queue display ingame after entering bg
* Fixed ingame display after leaving bg queue
* Fixed bg scoreboard
2020-05-31 16:49:18 +02:00
Shauren
d435d5d5ba Core/PacketIO: Fixed BattlefieldStatusHeader structure and QueueID values for other battleground types 2020-05-27 00:29:13 +02:00
Shauren
eba31dea27 Core/Maps: Improvements to terrain swap handling
* Fixed memory leak when unloading grids
* Handle child maps being entered
* Allow chaining more child maps (Draenor -> Tanaan Jungle -> Tanaan Jungle - No Hubs Phase)
2020-05-24 22:34:25 +02:00
Shauren
4d69cc1c56 Core/Misc: GCC build and warning fixes 2020-05-21 22:15:58 +02:00
Shauren
aedab76a11 Core/Misc: Add extra ByteBuffer and WorldPacket constructors allowing to set size immediately 2020-05-20 17:28:38 +02:00
Shauren
4acae3992b Core/Players: Only restore spells learned as quest rewards if they have the right AcquireMethod in SkillLineAbility.db2
Closes #24645
2020-05-19 00:04:23 +02:00
Shauren
7a68001452 Core/Spells: Revert b711f0bcae, not valid since cata 2020-05-19 00:02:46 +02:00
Shauren
3e83373907 Core/Achievements: Minor fixes
* Corrected criteria and modifier tree logic after implementing their operators
* Account wide achievements will now show progress ingame (even if we still treat them as per-character)
* Fixed more cases of achievements being granted automatically without satisfying modifier trees
2020-05-18 16:57:59 +02:00
funjoker
4055434ba6 Core/Misc: Unify handling CharacterCreating.Disabled.RaceMask with other racemask fields (#24604) 2020-05-17 23:39:17 +02:00
Shauren
7038c74f43 Core/Items: Fixed sending child items by mail if loading from db fails 2020-05-16 17:15:11 +02:00
Shauren
e047d14a2f Core/PacketIO: Send item flags in auction items 2020-05-15 09:36:52 +02:00
jackpoz
d3782c2d09 Core/Misc: Add console option to update databases only
Add "--update-databases-only" console argument to stop worldserver execution after having updated all databases (if specified in config file)

(cherry picked from commit 92bf5b1ba7)
2020-05-13 21:06:33 +02:00
Shauren
7e18255ee2 Core/AuctionHouse: Don't overflow mail attachments, send max 16 items per mail 2020-05-13 00:08:27 +02:00
Shauren
340fd1ce6a Core/Mail: Allow server created mails to contain up to 16 items 2020-05-12 22:54:03 +02:00
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
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
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