Commit Graph

10335 Commits

Author SHA1 Message Date
Shauren
3c41584bbb Core/Misc: Use correct field type for guids in prepared statements 2016-04-05 00:16:36 +02:00
Shauren
70412e7e25 Core/Misc: MSVC warning fixes 2016-04-05 00:15:56 +02:00
Shocker
e3acb2ecc7 Core/Mail: Fix integer size for Player::_SaveMail() fields 2016-04-04 11:56:52 +03:00
Vincent-Michael
2a0582c3f2 Core/PacketIO: Updated SMSG_ACCOUNT_HEIRLOOM_UPDATE opcode 2016-04-03 17:12:57 +02:00
Incorrect
f8d5031fca Core/Creature: Do not load equipment with id = 1 when creature.equipment_id is 0
Closes #16416

(cherry picked from commit cc3ae640a4)
2016-04-02 19:32:03 +02:00
sirikfoll
7031090dc3 Fix Achievement Defense of the Ancients
The spell that trigger the achievement check, needs to be cast before setting up the variables used for the second round, otherwise the achievement will be granted to the wrong team.
Also, SPELL_END_OF_ROUND needs to be casted on the end of the second round too, this was confirmed in retail.

(cherry picked from commit 5cf794b379)
2016-04-02 19:30:57 +02:00
Rushor
92a80979dd Game/Creature: Implement CREATURE_FLAG_EXTRA_IMMUNITY_KNOCKBACK
* updates #16423

(cherry picked from commit 110e0fd092)
2016-04-02 19:24:13 +02:00
Shauren
e6e3e799d0 Build fixes 2016-04-02 19:22:30 +02:00
treeston
9873800207 Item/Misc: Implement Toy Train Set and Wind-Up Train Wrecker.
(cherry picked from commit 8c7cd03d08)
2016-04-02 19:20:17 +02:00
pete318
2fe84d7471 Prevent duplicate spawns for same spawn ID
If there is an alive instance of the creature upon creature spawn, skip
spawn entirely. If there are only dead instances, despawn them. A new dead
corpse in the creatures home position will be respawned.

Closes: #16462
(cherry picked from commit fe2a0fda44)
2016-04-02 17:51:03 +02:00
Keader
0a8bab885a Fix cooldown check talent Rapture (Priest)
(cherry picked from commit 7093c0c769)
2016-04-02 17:50:17 +02:00
treeston
02c9a66b88 fix crash
(cherry picked from commit bf31f26e8c)
2016-04-02 17:49:38 +02:00
Trisjdc
a51ec98044 Core/Creatures: Reset unit flags/dynamic flags on Creature::SetDeathState(JUST_RESPAWNED)
(cherry picked from commit 132be2d25a)
2016-04-02 17:49:20 +02:00
treeston
870a76ad10 DB/Creature: Add a new extra_flag CREATURE_FLAG_EXTRA_NO_PLAYER_DAMAGE_REQ (0x00200000) that awards players credit for killing the creature even if less than 50% of damage was dealt by players.
This can be used to fix quests such as "Heated Battle" or "If Valgarde Falls..." that are currently very hard to complete at the appropriate level due to "friendly" NPCs killing off the required targets too quickly for players to get 50% of damage in.

(cherry picked from commit d240ccb38c)
2016-04-02 17:33:31 +02:00
Killyana
31dbb6150d Spell/Script: Safirdrang's Chill
Updates #4841

(cherry picked from commit 789470ccf1)
2016-04-02 16:25:23 +02:00
treeston
9f237e745a Fix warning.
(cherry picked from commit f0b9ee157b)
2016-04-02 15:37:10 +02:00
treeston
76d15c906e Player/Quest: Credit group for gameobject activation if they are in proximity.
(cherry picked from commit cd625a12e2)
2016-04-02 15:31:00 +02:00
P-Kito
cd435b1385 Unit/CalcAbsorbResist: Sanctified Wrath should pierce absorb effects
by P-Kito; retrieved from #15027

The paladin talent Sanctified Wrath should pierce absorb effects.

(cherry picked from commit b8762d8a9f)
2016-04-02 15:30:09 +02:00
treeston
3211f639e8 Looting/Group: Do not display looter in tooltip when FFA loot is enabled.
(cherry picked from commit 10482419b7)
2016-04-02 15:00:59 +02:00
DDuarte
75ff256cc4 Core/SAI: Typo fix of 77087db793
There's no %b, silly

(cherry picked from commit 7a252fc648)
2016-04-02 14:52:27 +02:00
DDuarte
252220ed6e Core/SAI: Code improvements to SMART_ACTION_RANDOM_SOUND
Warning fixes and extra sanity checks

Ref #16376

(cherry picked from commit 77087db793)
2016-04-02 14:52:15 +02:00
Lopfest
c457de1e80 Core/SAI: added SMART_ACTION_RANDOM_SOUND
Closes #16376

(cherry picked from commit e4af2baa7e)
2016-04-02 14:51:13 +02:00
Shauren
974703671e Core/Items: Fixed enchant visuals
Closes #16776
2016-04-01 22:43:18 +02:00
r00ty-tc
6cd7b58065 Adjustments to spell facing - Adjusted HaveAtClient to accept Object* (still accepts all subordinates) - Use grid searcher to find players in visibility range for unit - Use client cache instead of "See or Detect" to decide who to send updates to - Adjusted SendUpdateToPlayer to send createobject packet only if not known to client
(cherry picked from commit c0693a6ee52d31840ab2ee878c4881884b857638)
2016-04-01 12:43:10 +01:00
Aokromes
8ea8de42ea Core/Misc: Fix log 2016-04-01 04:37:20 +02:00
treeston
d9c99acebb Spell facing follow-up: Fix an issue with creatures' channeled spells not cancelling properly in certain conditions
(cherry picked from commit 17f924a031)
2016-03-29 20:08:01 +02:00
treeston
009cabb4b9 Merge branch '3.3.5-spellfacing' into 3.3.5-base (PR #15641)
(cherry picked from commit 233297c5c8)
2016-03-29 19:36:05 +02:00
DDuarte
7f8cd123c4 Core/PacketIO: Properly send normalized realm names
Ref #14949
2016-03-28 23:10:44 +01:00
Shauren
4a679ba1be Core/Commands: Prevent creating accounts containing '@' character with .account create command 2016-03-28 19:40:15 +02:00
Shauren
335a1e495c Clang build fixes 2016-03-28 19:32:33 +02:00
Shauren
dde620c402 Core: Updated to 6.2.4
* Rewrite bnetserver for new authentication protocol
2016-03-28 17:12:57 +02:00
Shauren
619669c620 Core/PacketIO: Updated remaining packet structures and enums appearing in packets 2016-03-28 15:23:41 +02:00
DDuarte
13db756f9d Core/Config: Remove references to Arena.QueueAnnouncer.PlayerOnly which hasn't been used since 3dd6fdedf7
Ref #16859

(cherry picked from commit 5f3262ff19)

# Conflicts:
#	src/server/game/World/World.cpp
2016-03-28 03:18:42 +01:00
DDuarte
423bded9a6 Core/Network: Change SocketMgr.StartNetwork to take the thread count by arg instead of config
AuthSocketMgr doesn't need "Network.Threads" config

Fixes "Missing name Network.Threads in config file authserver.conf"

Ref #16859

(cherry picked from commit 980f28d2ce)

# Conflicts:
#	src/server/authserver/Server/AuthSocketMgr.h
#	src/server/game/Server/WorldSocketMgr.cpp
2016-03-28 02:36:58 +01:00
Shauren
1cb76db4c2 Core/PacketIO: Corrected severeal movement opcode values 2016-03-27 22:53:18 +02:00
Rochet2
183d027e13 Add missing GAME_API exports
(cherry picked from commit 2348613f7b)
2016-03-27 16:31:15 +02:00
MitchesD
98fb5dc9bc Merge pull request #16750 from Lopfest/Spell
[6.x] Core/Spell: changed target of spell 102445 Summon Master Li Fei
2016-03-25 21:56:07 +01:00
Shauren
9ad79934d3 Core/PacketIO: Updated packet structures to 6.2.4.21355 2016-03-25 21:33:55 +01:00
Shauren
45c857a6bf Core/Networking: Updated packet headers for 6.2.4 2016-03-24 21:15:02 +01:00
Shauren
6de7a0b879 Core/PacketIO: Updated opcode values to 6.2.4.21348 and disabled packets that had their structures changed 2016-03-24 19:28:16 +01:00
Nertx
363731aac8 Core/Game: Fix Tremor Totem in LoS
* Closes #15012

Signed-off-by: Naios <naios-dev@live.de>

(cherry picked from commit c9751eb1f8)
2016-03-24 15:12:06 +01:00
sirikfoll
5ba2e2dd8e Core/AI Remove Reset() call from JustRespawned() hook
* Not needed, and causes trouble when using _DespawnAtEvade()
* Closes #16786

(cherry picked from commit acf6681353)
2016-03-24 15:04:03 +01:00
Naios
46daaf7689 Dep: Add efsw (entropia file system watcher)
* Uses system API's which reduces the overhead
  instead of checking periodically for changes.
* Will be used in the hotswap system to reload
  shared libraries on changes.
2016-03-24 13:53:10 +01:00
Naios
0cfdac70c4 Core/Game: Fix the no PCH build
* Ref cd777f97a1
2016-03-24 02:50:56 +01:00
Naios
cd777f97a1 Core/Game: Fix the clang build when building shared libraries
* Hackfix to solve an unresolved issue in clang that the visibility
  flag is ignored in some explicit template specializations.
* See https://llvm.org/bugs/show_bug.cgi?id=24815
* See https://llvm.org/bugs/show_bug.cgi?id=23667
2016-03-24 02:33:04 +01:00
Naios
bf33159a70 Core/Game: Converted the game library to a shared library.
* There is still the possibility to static link against game.
2016-03-24 01:31:51 +01:00
Kittnz
18e6b2574f Core/Weather: Fix small weather system bug
https://github.com/cmangos/mangos-wotlk/commit/5ef2f17
(cherry picked from commit 2df2f56f8c)
2016-03-23 19:16:52 +00:00
DDuarte
0d643fdff2 Build fix 2016-03-23 00:34:47 +00:00
pete318
28f51306d4 Improved Auction house deposit handling.
Including the weird quirks.

Changes:
* Deposit caculated according to same rule as client. (detailed below). Should always match client deposit now
* Deposit for multiple auctions now only collected once. Deferred calculation of deposit until all auctions listed.

Deposit calculation is as follows:

Base deposit calculation = MSV x 15/75% (depending on AH). However this is not rounded. Case to int is used (so always round down)
The remainder is held in a float.
The base is then multiplied by number of items, and the time multiplier (x2 for 24 hour, x4 for 48 hour)
The nearest (no of items or lower) no of items when multiplied by the remainder that creates a whole number is then multiplied by the time multiplier (x1/x2/x4) and then added to deposit.

Example:

Item sell price 1s25. Deposit 18.75c (15% of 1s25). So base deposit = 18, remainder 0.75. Time 24h (x2) Item count 1 = 36c. Remainder = 0.75 (n) Min = 1s. Deposit 1s
Item sell price 1s25. Deposit 18.75c (15% of 1s25). So base deposit = 18, remainder 0.75. Time 24h (x2) Item count 2 = 72c. Remainder = 1.50 (n)  Min = 1s. Deposit 1s
Item sell price 1s25. Deposit 18.75c (15% of 1s25). So base deposit = 18, remainder 0.75. Time 24h (x2) Item count 3 = 108c. Remainder = 2.25 (n) Min = 1s. Deposit 1s08c
Item sell price 1s25. Deposit 18.75c (15% of 1s25). So base deposit = 18, remainder 0.75. Time 24h (x2) Item count 4 = 144c. Remainder = 3.00 (n) Min = 1s. Deposit 1s50c (144c + (3c * 2))

Horrible kludge, to re-create a very weird deposit method.

Closes #15674 (PR)
Closes #15643 (Issue)

(cherry picked from commit 0ac442f19f)

# Conflicts:
#	src/server/game/AuctionHouse/AuctionHouseMgr.h
2016-03-23 00:28:03 +00:00
DDuarte
9660848385 Scripts: Add override to CheckInRoom() definitions
Fixes -Winconsistent-missing-override

(cherry picked from commit ac727ab208)
2016-03-22 23:42:16 +01:00