Commit Graph

27573 Commits

Author SHA1 Message Date
ariel-
ad6ecbf09b DB/Conditions: fix Sablemane's Sleeping Powder exploit 2017-03-04 12:22:21 -03:00
joschiwald
431a57fbec Update README.md
(cherry picked from commit 61829e269e)
2017-03-04 16:01:44 +01:00
Killyana
f22fd77c58 DB/SAI: Fix some DB errors
Ref #18542
2017-03-04 13:21:47 +01:00
ariel-
15a207fcac Core/Creature: redo some logical checks in _IsTargetAcceptable
- Check against current creature victim, don't check potential victim attacking list.
- Neutral creatures with aggressive reactstate were triggered to attack from MoveInLineOfSight because of this check
- Prevents attack from a distance after right clicking an npc

Closes #19235
2017-03-04 04:18:55 -03:00
ariel-
25cbf0a8a6 DB/Spell: fix stack rules for some groups
- Haste % (Improved Moonkin Aura, Swift Retribution)
- Damage % (Arcane Empowerment, Sanctified Retribution, Ferocious Inspiration)
- Healing % (Tree of Life, Improved Devotion Aura)

Closes #16331
Closes #17175
2017-03-03 23:50:14 -03:00
ariel-
ebba8dcba8 Core/Spells: fix some db errors 2017-03-03 21:36:56 -03:00
ariel-
32c5d4f53f Core/Scripts: implement Hammer of the Righteous stacking Seal of Vengeance/Corruption
- Patch 3.2.0 Notes: Only auto-attacks and Hammer of the Righteous can place the debuff on the paladin's current target(s).

Closes #19239
2017-03-03 20:09:23 -03:00
Killyana
63236f97af DB/Creature: Fix a type on creature text related to Lord Thorval
Ref 80a0c3cfc7
2017-03-03 14:54:11 +01:00
ariel-
2a6fe27cad Core/Game: fix dynamic linking 2017-03-02 22:26:12 -03:00
ariel-
f612b1cb48 Core/Misc: remove unneeded semicolon 2017-03-02 01:22:55 -03:00
ariel-
4596c17dae Core/Achievements: port realm first achievement handling from master
veeeery partial cherry-pick of c75fcbe20b
2017-03-02 01:07:05 -03:00
ariel-
7072bf8c02 Core/Spell: disable proc for magnet auras, they're handled differently
Closes #19208
2017-03-02 00:18:00 -03:00
ariel-
b902f0c1b0 Core/Game: fix non-pch include 2017-03-01 22:27:52 -03:00
xinef1
3fe03392d7 Make ObjectMgrs _mailId and _hiPetNumber atomic (#19129)
- They can be accessed from multiple threads simultaneously
2017-03-01 22:23:18 -03:00
ariel-
affee140c6 Core/Database: Prepared statement parameter preallocation (#18999)
- Pass prepared statement size to the helper class to prevent runtime resizing.
- Rename CheckValidIndex -> AssertValidIndex
- Cached prepared size on the worker pool as it's shared among all connections
- Cached query data only for each connection, done lookup in map instead of possibly creating a new element
- Kill the prepared statement map, and store raw sql string on the MySQLPreparedStatement class
(This info is only used for logging, and there is no need of keeping a second container just for it)
2017-03-01 22:20:53 -03:00
xinef1
7567cafec8 Ensure that all actions are compared to fixed point in time (ie. world update start) (#18910)
- Actions will not be dependent on processing moment
- Increased GameObjects cooldown resolution to milliseconds, fixes arming time of traps to be exactly one second and not something from range (1000, 1999)
- Created GameTime namespace and UpdateTime class and moved there some code out of world
2017-03-01 22:19:25 -03:00
xinef1
7011aabb56 Core/GameObject: regenerate GO loot if respawn time passed since last loot generation time and not all items were taken (#19101) 2017-03-01 20:19:28 -03:00
xinef1
ce1108b8a2 Corrected calculation for SPELL_AURA_PERIODIC_DAMAGE_PERCENT (#19060) 2017-03-01 20:12:57 -03:00
xinef1
fb2aebe46b Core/Misc: Always reward all necessary reputations on creature kill (#19106) 2017-03-01 20:10:15 -03:00
xinef1
9b284ab329 Remove auras interrupted by falling when we fall to the ground or water (#19115) 2017-03-01 20:08:12 -03:00
ariel-
12c680f9b1 Core/Scripts: Change null-check to assert
- ToPlayer() should never be null in this context
2017-03-01 19:35:39 -03:00
Keader
ecfb346d1a Core/Scripts: Fixed crash in Sindragosa
Closes #19227
2017-03-01 18:58:47 -03:00
ariel-
bb553743af Core/Misc: always output client cache version on loading 2017-03-01 12:47:43 -03:00
ariel-
e08e36ab8f DB/Misc: populated version table with missing data from TDB file
Closes #18274
2017-03-01 12:41:16 -03:00
ariel-
ff43a74822 Core/Entities: spawned movementtype should override template movementtype
Core/SmartAI: pass the CreatureData pointer (if any) on updating template

Closes #19223
2017-02-28 16:39:59 -03:00
ariel-
2e68736afc Core/Movement: Corrected all speed checks after 23b6991273
Ref issue #19210
2017-02-28 15:18:09 -03:00
ariel-
f302b3d68d Core/Scripts: implement Moss Covered Feet
Closes #19022
2017-02-28 14:09:25 -03:00
Naios
01168775ca Revert "Build: Create static libraries for each static script project."
This reverts commit bb46bfb864.

* Closes #19224
2017-02-28 15:16:32 +01:00
Naios
3da60f8400 Dep: Use the anonymous namespace free definition of boost::none.
* Fixes MSVC linking errors after the recent changes:

    "class boost::none_t const & const boost::`anonymous namespace'
    ::none" (?none@?A0x518851d0@boost@@3AEBVnone_t@2@EB)
    already defined in scripts_commands.lib...

* Sets the required version of boost on windows to 1.59
  according to the wiki.
2017-02-27 22:52:48 +01:00
Naios
bb46bfb864 Build: Create static libraries for each static script project.
* Add some more comments and cleanup the build  script.
* Closes #18671
2017-02-27 22:52:48 +01:00
Naios
22fede3774 Dep: Update efsw to version 1.0.0 2017-02-27 22:52:48 +01:00
ariel-
7de5befbc3 Core/Auras: fix more unused parameter warnings 2017-02-27 14:38:00 -03:00
ariel-
9047d8bd6f Core/Auras: fix comparison of integers of different signs warning 2017-02-27 14:34:23 -03:00
ariel-
40489b8d57 Core/Auras: fix unused parameter warning 2017-02-27 14:31:28 -03:00
ariel-
c69a7d1223 Core/Auras: reworked multiplicative AuraEffects calculation
- Splitted containers for flat modifiers and pct modifiers, as they now have different handling
- Amount is now multiplied only on apply; on unapply, iterate through auras and reset the counter
- Fixes many cases of rounding error due to applying/unapplying of small factors
- Allows amounts to be zeroed (ie with an AuraEffect of amount -100)
- Do a partial revert of 6dc37a9add, auras should update amounts only for items allowed (ie no more giving crit to a sword while having an axe in the other hand and being Poleaxe spec'd)
- SPELL_AURA_MOD_SCALE now scales additively, rather than multiplicatively (checked in sniffs)

Closes #18687
2017-02-27 14:24:20 -03:00
jackpoz
8f2bcd79da Core/Misc: Fix static analysis issues 2017-02-25 17:07:22 +01:00
jackpoz
bb6b1e794f Core/Misc: Fix static analysis issues 2017-02-25 16:15:42 +01:00
jackpoz
6940071994 Core/Misc: Fix static analysis issues 2017-02-25 15:54:11 +01:00
jackpoz
b375bab225 Core/Misc: Fix static analysis issues 2017-02-25 13:33:51 +01:00
Aokromes
d5ccd17175 Update extractor.bat 2017-02-25 10:37:39 +01:00
ariel-
ace2a75197 Core/Scripts: kill a warning 2017-02-25 05:17:33 -03:00
ariel-
01f5befcec Core/Scripts: Thrusting Hodir's Spear
- Everything is sniffed, enjoy this hell of a quest!

Closes #12808
2017-02-25 04:46:02 -03:00
Gustavo
4224259d83 Core/Unit: Correct speed calculus when affected by SPELL_AURA_MOD_MINIMUM_SPEED (#18136) 2017-02-24 12:20:20 +01:00
ariel-
d939018371 Core/Dep: update zlib to 1.2.11
Changelog:

Changes in 1.2.11 (15 Jan 2017)
- Fix deflate stored bug when pulling last block from window
- Permit immediate deflateParams changes before any deflate input

Changes in 1.2.10 (2 Jan 2017)
- Avoid warnings on snprintf() return value
- Fix bug in deflate_stored() for zero-length input
- Fix bug in gzwrite.c that produced corrupt gzip files
- Remove files to be installed before copying them in Makefile.in
- Add warnings when compiling with assembler code

Changes in 1.2.9 (31 Dec 2016)
- Fix contrib/minizip to permit unzipping with desktop API [Zouzou]
- Improve contrib/blast to return unused bytes
- Assure that gzoffset() is correct when appending
- Improve compress() and uncompress() to support large lengths
- Fix bug in test/example.c where error code not saved
- Remedy Coverity warning [Randers-Pehrson]
- Improve speed of gzprintf() in transparent mode
- Fix inflateInit2() bug when windowBits is 16 or 32
- Change DEBUG macro to ZLIB_DEBUG
- Avoid uninitialized access by gzclose_w()
- Allow building zlib outside of the source directory
- Fix bug that accepted invalid zlib header when windowBits is zero
- Fix gzseek() problem on MinGW due to buggy _lseeki64 there
- Loop on write() calls in gzwrite.c in case of non-blocking I/O
- Add --warn (-w) option to ./configure for more compiler warnings
- Reject a window size of 256 bytes if not using the zlib wrapper
- Fix bug when level 0 used with Z_HUFFMAN or Z_RLE
- Add --debug (-d) option to ./configure to define ZLIB_DEBUG
- Fix bugs in creating a very large gzip header
- Add uncompress2() function, which returns the input size used
- Assure that deflateParams() will not switch functions mid-block
- Dramatically speed up deflation for level 0 (storing)
- Add gzfread(), duplicating the interface of fread()
- Add gzfwrite(), duplicating the interface of fwrite()
- Add deflateGetDictionary() function
- Use snprintf() for later versions of Microsoft C
- Fix *Init macros to use z_ prefix when requested
- Replace as400 with os400 for OS/400 support [Monnerat]
- Add crc32_z() and adler32_z() functions with size_t lengths
- Update Visual Studio project files [AraHaan]
2017-02-23 11:46:45 -03:00
ariel-
9934a43e09 Core/Scripts: kill a warning 2017-02-23 11:33:40 -03:00
ariel-
32e2207ab9 Core/Scripts: Victory Rush and Rune Strike proc correction
(d0f760420a follow up)
Closes #19192
2017-02-23 11:30:25 -03:00
Killyana
e62f4002f6 DB/Quest: The Missing Diplomat
Closes #19142
2017-02-23 11:04:08 +01:00
ariel-
6c9bda6093 Core/Conditions: CONDITION_SOURCE_TYPE_QUEST_ACCEPT should not prevent completed question mark from showing (#18151 follow up)
Closes #19188
2017-02-23 03:29:29 -03:00
ariel-
08fdac340c Core/Players: fix 2 Seal of Righteousness spells on paladins
Closes #14239
2017-02-23 02:51:31 -03:00
ariel-
d61e0f79c4 Core/Entities: Fix null-dereference crash
Closes #19191
2017-02-23 02:09:44 -03:00