Commit Graph

27544 Commits

Author SHA1 Message Date
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
ariel-
d0f760420a Core/Scripts: remove no longer needed scripts, use db attribute for disabling procs
(e7ccd8ea3f followup)

- Fix some broken procs after c0cb823a91

Closes #19068
2017-02-22 17:54:12 -03:00
ariel-
0c372abac7 DB/Spell: add some proc entries to spells that should proc on cast
Closes #19124
2017-02-22 17:31:19 -03:00
ariel-
f948ae80fc Core/Spell: fix Glyph of Devastate interaction with Glyph of Sunder Armor
- Killed existing ModStackAmount hack, spell is always casted in sniffs (twice with Glyph of Devastate)

Closes #14633
2017-02-22 16:50:05 -03:00
ariel-
a21cda6ad6 DB/Spell: fix armor reduction (and spell hit debuff) stack rules
- All auras will now properly show but only the strongest one will be active

Refs #19187
2017-02-22 13:37:49 -03:00
Keader
bb3c964e7c Core/Scripts: Fixed Illidan epic sounds again (#19184) 2017-02-22 13:13:22 -03:00
Killyana
e662902979 DB/Spell: Sunder Armor stack rules
Closes #19187
By Jildor
2017-02-22 10:39:07 +01:00
ariel-
691d52daa9 DB/Spell: correct Deathfrost level restriction 2017-02-22 02:02:27 -03:00
ariel-
e0376d5644 DB/Spell: fix some enchants proc chances and reduced effects for levels > 60
- Deathfrost:  Slow effect should not work on targets 73 or higher.
- Icy Weapon: proc chance reduced, made to a %-per-hit, should only proc on white hits
- Unholy Weapon: proc chance increased to 3 PPM (based on comments data)
- Battlemaster: should only proc on white hits
- Crusader: effect reduced for players above 60

Closes #7789
2017-02-22 01:50:23 -03:00
ariel-
f609e7a08b Core/Spells: refactor spell_enchant_proc_data table
- Renamed fields to mimic those in spell_proc
- Added Enchant proc attributes for controlling specific enchant features

Ref #7789
2017-02-22 00:11:49 -03:00
ariel-
eac9c1f0b9 Core/Scripts: fix Nightfall proc chance and reduce it for victims with level above 60
Closes #15734
2017-02-21 22:38:30 -03:00
treeston
b3b4054eb4 Core/Creature: Fix SetSpawnHealth so it cooperates with the colossal hack that is Battleground::AddCreature. *puke* 2017-02-22 02:31:32 +01:00
ariel-
f4ae639961 Core/Spells: fix Hand of Justice proc chance and reduce it past level 60.
Ref #7789
2017-02-21 21:20:33 -03:00
ariel-
b4b031bcd4 Kill whitespace 2017-02-21 19:38:45 -03:00
ariel-
f96f1cebd4 Core/Packets: readd incorrectly removed line
Closes #19180
2017-02-21 17:14:11 -03:00
Gustavo
3a67c8e361 Core/Misc Remove Tabs and Whitespaces (#19179) 2017-02-21 18:37:34 +01:00
ariel-
2559874e8d Core/ItemTemplate: remove excedent #includes 2017-02-21 03:10:20 -03:00
ariel-
dd1aa64563 Core/Packet: convert query packets into new system.
- Extra c++11-ification of existing code
- Refs #18637
2017-02-21 03:03:58 -03:00
ariel-
c274ea8a98 Core/Misc: changed WorldPacket pointers to const
- Packet update sync with master
2017-02-20 16:43:16 -03:00
xinef1
ae9d01a324 Store cached static data queries, instead of building them in every query opcode (#18637)
- Added config option to enable / disable cache
- Reinitialize data on reload command use
- Always send WDB fields in item query
2017-02-20 16:27:08 -03:00
xinef1
4eae29d421 Properly stop attacking after player leaves ffa area (like Gurubashi Arena) (#18952) 2017-02-20 15:03:11 -03:00
ariel-
6d991e9361 Core/Misc: moved WeaponAttackType definition to SharedDefines to avoid including Unit.h 2017-02-20 14:22:49 -03:00
ariel-
0d3e1606a9 Core/Stats: cache all item attack power (includes given by equip spells)
- Used for Predatory Strikes calc, it will now properly use all weapon attack power
2017-02-20 14:14:48 -03:00
ariel-
e9d527b70f DB/Loot: remove some incorrect drops of three quest reward items
- Items reward of the Hakkari Urn, it must always contain the 3 items (previous had a very little chance of being less than 3)
- Hakkari Urn is the reward from "Secret of the Circle (3447)"
2017-02-20 13:27:20 -03:00
Keader
50973e9d6f Core/Scripts: Fixed epic sounds on Illidan Fight (#19172)
Thanks Kittnz for notice <3
2017-02-20 08:38:30 -03:00
Killyana
674eb55e63 DB: Fix some DB errors 2017-02-20 10:34:30 +01:00
Killyana
0666740086 DB/Creature: Fix respawn time for some npcs added in a previous commit 2017-02-20 00:50:00 +01:00
Dr-J
d535b98b05 DB/SAI: Zangen Stonehoof
Remove part of script which rings bell at start of nights event when his nightly script activates as this should no longer be needed.
2017-02-19 20:45:55 +00:00
Kittnz
495339a2c7 Script/GO: Alliance Bell, Horde Bell and Karazhan Bell will now send a bell sound on the start of each hour. (#19145)
* Script/GO: Alliance Bell, Horde Bell and Karazhan Bell will now send a bell sound on the start of each hour.

How many times it rings depence on the hour.

* fix little things from pr comments

* Added OnGameEvent

* Fix braces

* almost finished

* fix enum

* Add gameobjects to the game event

Fix override for InitializeAI

* enum squash

* remove braces

* Rename 9999_99_99_99_world.sql to 2017_02_19_01_world.sql
2017-02-19 20:47:40 +01:00
treeston
1beb2e5fd6 DB/Creature: The instance_encounters extra flag (CREATURE_FLAG_EXTRA_DUNGEON_BOSS) now properly propagates to all difficulty entries (not just difficulty 0).
This lets us simplify IsDungeonBoss() on Creature (and move it to header).

Closes #18824.
2017-02-19 19:26:44 +01:00