Commit Graph
100 Commits
Author SHA1 Message Date
ariel- ce6df00019 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-03-03 01:25:52 +01:00
ariel- 1106eadac6 Core/Conditions: CONDITION_SOURCE_TYPE_QUEST_ACCEPT should not prevent completed question mark from showing (#18151 follow up)
Closes #19188
2017-03-03 01:24:23 +01:00
ariel- 823f96953f Core/Players: fix 2 Seal of Righteousness spells on paladins
Closes #14239
2017-03-03 01:24:09 +01:00
ariel- 12d7e6c3b6 DB/Spell: add some proc entries to spells that should proc on cast
Closes #19124
2017-03-03 01:23:18 +01:00
ariel- c6443aa2ca 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-03-03 01:22:53 +01:00
ariel- 5ad94a5529 DB/Spell: correct Deathfrost level restriction 2017-03-03 01:22:16 +01:00
ariel- f5220ee4c2 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-03-03 01:22:06 +01:00
ariel- 6cd253ff8f Core/Misc: moved WeaponAttackType definition to SharedDefines to avoid including Unit.h 2017-03-03 01:19:28 +01:00
ariel- 5ff56097c0 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-03-03 01:18:56 +01:00
ariel- 9aa3dd4881 Core/Scripts: fix dynamic build 2017-02-10 05:25:24 +01:00
ariel- 79e6325716 Core/SmartAI: Delay SMART_ACTION_FORCE_DESPAWN by at least one world tick
- Restore old despawn behavior of SmartAI despawning (without reintroducing the run time logs caused by IsSmart)
- Some SAIs relied on this to function (for example #1249)

Partial reverts commit 4fc4c81e89
2017-02-10 05:24:35 +01:00
ariel- 904bbf9f5a DB/Spell: fix interaction of mage armor spells with absorption effects
Closes #18680
2017-02-01 01:30:17 +01:00
ariel- 6ceb407273 Core/Scripts: fix penance procs with Unchained magic
Closes #19005
2017-02-01 01:29:50 +01:00
ariel- b5d32cd2b4 Core/Scripts: remove GMs from Sindragosa's Fury's targetlist
By Keader
Ref #18452
2017-02-01 01:27:13 +01:00
ariel- 2876fd015f DB/Spell: Recently Bandaged debuff shouldn't break stealth
Closes #18951
By Noryad
2017-02-01 01:18:48 +01:00
ariel- a2a3fd538f DB/Spell: added conditions for Argent Squire/Gruntling Pennant spells
- Should only target the pet, according to sniffs
2017-02-01 01:18:34 +01:00
ariel- 44426e76ea Core/SpellScript: Pass vector to ValidateSpellInfo by reference 2017-02-01 01:18:25 +01:00
ariel- f5822c589b Core/EscortAI: fix invalid iterator dereference 2017-02-01 01:18:17 +01:00
ariel- 2149957ecf DB/Spell: kill charge drop from Light's Grace
Cast time reduction should remain active

Closes #18927
By Eliminationzx
2017-02-01 01:09:49 +01:00
ariel- 191e277741 Core/Creature: revert turning state apply
partial revert of 6b55faba065cd5d0519fb6e3e070a4a41d305cca

Simply removing the unit state in Creature::ReleaseFocus causes #18549 again
2017-01-23 00:17:08 +01:00
ariel- 04df42ba78 Core/Creature: don't allow turning if spell would cancel due to turning to face target
Closes #18549
2017-01-23 00:16:58 +01:00
ariel- 247168b12f DB/Spell: Impact proc
Closes #18817
2017-01-23 00:16:38 +01:00
ariel- 4edbb2d633 Core/Collision: fix no-PCH build 2017-01-21 18:46:40 +01:00
ariel- 0c97c46361 Core/Spell: perform charmer check against player controlling unit. Fixes spellcasts while charmed 2017-01-18 14:19:11 +01:00
ariel- f2ffa22ac7 Core/Spell: fix typo
Closes #18248
2017-01-18 14:18:53 +01:00
ariel- fb44395dca Core/Script: PCH issues 2017-01-09 08:03:56 +01:00
ariel- e6b1b3d9f0 DB/Script: The Only Cure is More Green Glow
Closes #1723

SQL by Staleness89, corrections by Killyana
Script by Keader, corrections by sirikfoll and me
2017-01-09 08:03:40 +01:00
ariel- 17278b9b42 Core/Scripts: added command to move characters across accounts 2017-01-07 07:34:11 +01:00
ariel- 6586615d1f Core/Scripts: kill one ugly char buffer 2017-01-07 07:23:35 +01:00
ariel- 001e7f8212 Core/Player: Recast lost by death item obtain spells of any items held in the inventory when resurrecting
I HAS BUKKIT

Closes #5184
2017-01-01 13:35:15 +01:00
ariel- c5d9f07a2a Core/Vehicles: make vehicles immune to Cyclone
Closes #18489
2017-01-01 13:35:06 +01:00
ariel- e250236da3 DB/Spell: Glyph of Totem of Wrath proc
by Eliminationzx

Closes #18514
2017-01-01 13:34:26 +01:00
ariel- 37851d472c DB/Spell: Fix 2 procs (triggered flag)
- Hunting Party (Closes #18412)
- Inspiration (Closes #18413)
2016-12-30 01:16:49 +01:00
ariel- 38754b396e Core/Spell: do not proc auras on SPELL_AURA_OBS_MOD_HEALTH healing ticks
Closes #14726
2016-12-30 01:16:41 +01:00
ariel- 14ce77d18e DB/Spell: stop some auras from removing stealth
- They have damage class melee and proc PROC_FLAG_TAKEN_SPELL_MELEE_DMG_CLASS
- Sated/Exhaustion are negative auras, counts as negative spell flag, and stealth drops too

Closes #18421
Closes #18553
2016-12-30 01:16:15 +01:00
ariel- f32fe0cd0e Core/Player: prevent early aura removal when swapping weapons
Closes #18428
2016-12-16 19:28:06 +01:00
ariel- af85fd52da Core/Chat: fix RBAC_PERM_COMMANDS_NOTIFY_COMMAND_NOT_FOUND_ERROR for subcommands
Ref #18463
2016-12-16 19:27:57 +01:00
ariel- fb632b61fe Core/Unit: feral druid attacks should not be normalized
Closes #18460
2016-12-16 19:25:11 +01:00
ariel- 1d3fddfc6a Core/Entities: don't absolute compare positions on UpdatePosition
Closes #18415
2016-12-16 19:24:12 +01:00
ariel- eb3a90a4e8 Core/Spell: implemented dispel reflection
Closes #18323
2016-12-16 19:24:01 +01:00
ariel- 21583f1cb9 Core/Spell: do not downscale certain auras 2016-12-16 19:21:17 +01:00
ariel- 1066fe59c9 Core/Auras: calculate periodic bonuses before specific mods, fixes Imp. Devouring Plague damage 2016-12-06 11:10:30 +01:00
ariel- d9daebb4cf Core/Map: missing file change in last commit 2016-12-06 11:09:59 +01:00
ariel- bea6bbb321 Core/Maps: bumping Vmap version after 2402f476424531a175d9a016f433321f00608501
Re-extracting vmaps is required
2016-12-06 11:09:39 +01:00
ariel- 7aadd3f950 DB/Spell: added level restrictions to some spells
- Songflower Serenade
- Fengus' Ferocity
- Mol'dar's Moxie
- Rallying Cry of the Dragonslayer
- Slip'kik's Savvy
- Spirit of Zandalar

Ref: #4961
2016-12-06 11:07:32 +01:00
ariel- bb8068febb Core/Spells: fix a pretty edge case of creatures being put in combat by evaded spells
Closes #18369
2016-12-06 11:07:15 +01:00
ariel- c59f8c0693 Core/SAI: restore deleted line in 28050f338dfc66e0c40b6a3915bf96e38e0613e5
Field left uninitialized. Caused weird evade behaviour
2016-12-06 11:07:00 +01:00
ariel- 04efb16390 Scripts/BT: Fix noPCH build 2016-12-06 11:06:02 +01:00
ariel- 009adc4324 Revert "Core/Spell: add EquipedItemClass/EquippedItemSubClass check to passive spell casts"
This reverts commit f188ff1ce47905d7a81dff987a66b3d72152ae7c.

Was breaking Titan's Grip.
Spells are loaded before items, and they CAST the spell on the player.
When items are then loaded, Player::ApplyItemDependentAuras only has AddAura on it. Titan's Grip is an effect, no auras involved.

In turn reverting this commit will now allow Two-handed weapon specialization and similar from spells load. Which is the lesser of two evils.
2016-11-27 03:11:27 +01:00
ariel- 6283cce52f Core/Player: fix build 2016-11-27 03:10:07 +01:00
ariel- f348c015c0 Core/Spell: add EquipedItemClass/EquippedItemSubClass check to passive spell casts
- Was adding auras on login that didn't satisfy requirements (like Two-Handed Weapon Specialization)
2016-11-27 03:09:47 +01:00
ariel- bc25bbcd42 Core/Spell: register items received through SPELL_EFFECT_SUMMON_CHANGE_ITEM for quest credit
- Also sends proper SMSG_ITEM_PUSH_RESULT packet

Closes #3505
2016-11-27 01:42:18 +01:00
ariel- 331a88ef8f Core/Spell: Fixed Drain Soul incorrectly downscaling ranks when targetting lower level enemies 2016-11-27 01:41:58 +01:00
ariel- b1b31fd685 Core/Gameobject: fixed sometimes not found linked trap
Closes #18256
2016-11-27 01:39:22 +01:00
ariel- 227dc4d907 Core/Unit: fix build
Ctrl-S failure
2016-11-27 01:24:19 +01:00
ariel- de4aec3204 Core/Spell: fix a potential null dereference crash 2016-11-27 01:09:37 +01:00
ariel- 2f1910476e Core/Spell: fix warning 2016-11-19 07:40:32 +01:00
ariel- b7761ec52a DB/Spell: Vampiric Embrace proc
Closes #18250
2016-11-15 05:51:07 +01:00
ariel- 50d7befa86 DB/Creature: correct 2 npc walk/run speed
Closes #18207
2016-11-15 05:49:58 +01:00
ariel- b6f8ecbefc Core/GameObject: use a friendly trigger for positive spells.
Fixes an issue with Skadi Harpoons.

Note to self: should actually implement GameObject casting already :/
2016-11-15 05:48:22 +01:00
ariel- ad927acae4 Core/Spell: do not fail triggered Charge effects in case a root is present.
Fixes Master's call when pet is rooted
2016-11-15 05:47:59 +01:00
ariel- 66fb271921 Core/Spell: use SpellEntry to select implicit targets in case RadiusEntry wasn't set for the current effect.
Closes #15388
2016-11-15 05:46:42 +01:00
ariel- 1fcb8e0b4e Core/Unit: consider creatures with same faction to be on the same party/raid for the purposes of spell/aura targets
Ref #18233
2016-11-15 05:46:05 +01:00
ariel- 760bef2453 Core/SpellScript: allow optional parameters to be passed to FinishCast
followup of 50a3ce5703bdaa4fe16e2e773eabafa9a4818083
2016-11-15 05:45:56 +01:00
ariel- 0037363f3a Core/Battleground: Fix issue reported by static analysis 2016-11-15 05:45:08 +01:00
ariel- 03c3279395 Core/Gameobject: remove immune flags from trigger used to cast GO spells
Spells were failing flags check in Unit::_IsValidAttackTarget

Closes #18206
2016-11-10 23:42:29 +01:00
ariel- 9ba3f57cfd DB/Spell: Maelstrom Weapon charge drop on cast
Closes #7068 (Again :P)
2016-11-03 16:13:51 +01:00
ariel- 741ca97f6d DB/Spell: Savage Combat proc
Closes #16242
2016-11-03 16:12:47 +01:00
ariel- 1ec9685547 Core/Auras: fix elixir aura saving 2016-11-02 03:48:24 +01:00
ariel- 64ffbab2d2 Update characters_database.sql
Last one, I promise
2016-11-02 03:47:07 +01:00
ariel- c0ce4efa6c Update characters_database.sql
Missing line from previous commit
2016-11-02 03:35:28 +01:00
ariel- b70a713311 Core/SpellMgr: fix Abolish Disease/Poison targets
Spells were failing due to "out of range"
2016-11-02 03:18:07 +01:00
ariel- b6f3457458 Core/Auras: only apply shapeshift aura passives when changing forms
Closes #14845
Closes #17617
2016-11-02 03:12:38 +01:00
ariel- 4e61ff8c9c Core/Unit: consistency fix 2016-11-02 03:12:25 +01:00
ariel- 469870a141 Core/Player: cleanup single target auras on spec switch
Closes #806
2016-11-02 03:12:09 +01:00
ariel- 7a0647ec46 Core/Unit: fix warning reported by VS2015
C4146: unary minus operator applied to unsigned type, result still unsigned
2016-11-02 03:01:30 +01:00
ariel- c0ef2ba55c Core/Unit: fix logic error in DamageInfo::ModifyDamage.
Previous code did not protect against m_damage underflow, rather only allow up to duplicate damage.
It now should work as intended.

Closes #18154
2016-11-02 02:56:40 +01:00
ariel- 6cc84c45f2 DB/Creature: fix Prince Valanar (ICC) respawn health 2016-11-02 02:47:49 +01:00
ariel- 00b7cabd80 Core/Globals: abort server startup if there are wrong factions in DB
Closes #18127
2016-11-02 02:46:39 +01:00
ariel- 7d04331322 Core/Spell: do positivity spell checks only against actually hitted effects instead of the whole spell
Closes #18097
2016-10-24 14:03:08 +02:00
ariel- 162eaad0ee Core/Spell: clear auras of channeled spells if channeling is cancelled due to invalid targets (dead or w/e)
Closes #14859
Closes #15186
2016-10-24 13:59:54 +02:00
ariel- 657aea3d5b Core/Spells: mark Arcane Missiles aura as negative. Was downranking the spell when targetting low level mobs due to effect 1 flagged as possitive.
Closes #12152
2016-10-24 13:59:38 +02:00
ariel- d8f310e2a1 Core/AuctionHouseBot: ahbot characters subsystem shake-up
Bonus: fix moar static analysis issues
2016-10-24 13:57:56 +02:00
ariel- 6c25db28f2 indentation fixes in zone_wintergrasp.cpp 2016-10-24 13:57:26 +02:00
ariel- b4ceb798e0 Core/AI: initial support for monster sparring (#17673) 2016-10-24 13:30:22 +02:00
ariel- 9b74762644 Core/SmartScripts: fixup SMART_EVENT_FLAG_WHILE_CHARMED behaviour to only mean charmed creatures (#17738 follow-up)
Unit::IsControlledByPlayer is a expected value for TempSummons (like some triggers used in quests, summoned by spells).
Previous logic broke a lot of quests which use triggers to do stuff.

Allow JustSummoned and events linked from other events with flag set also in charmed (prevents breaking event chains)
Allow vehicles (needed for vehicles with SmartAI, eg Iron Rune Constructs and You: Rocket Jumping)
2016-10-24 13:18:45 +02:00
ariel- a2c88b2468 Core/AI: added container independent wrappers for WorldObject::GetxxxInGrid 2016-10-24 13:16:12 +02:00
ariel- a16983b5bd Core/Scripts: Fix runtime error 2016-10-24 13:03:47 +02:00
ariel- 171738b70e Core/Auras: don't ignore SPELL_ATTR3_ONLY_TARGET_PLAYERS in area auras.
Also, start abusing the arbitrary containers for searchers introduced in 8775f8b28a5ad4403371577787131ff81f14332b
2016-10-24 13:01:59 +02:00
ariel- 3944dc25b9 Core/Creature: Call SetSpawnHealth after JustReachedHome in HomeMovementGenerator
Fixes issues with quests that rely on this behaviour (eg Free your Mind)

Also updated SetSpawnHealth so it doesn't do anything in case spawn is manual (SetHealth(GetHealth()) does modify things depending on deathstate)
2016-10-24 11:10:41 +02:00
ariel- 947086fb54 Core/SmartAI: There's a function for that 2016-10-24 11:10:26 +02:00
ariel- 0edf0c5ff6 Core/Scripts: updated Lock and Load script with new hooks, DamageInfo might be null, so check for that too 2016-10-22 10:53:58 +02:00
ariel- 5fa490e3ed Core/Channels: remove unneeded default constructor 2016-10-22 10:32:50 +02:00
ariel- 3bc1f35614 Core/Auras: stop some compilers from complaining 2016-10-21 09:15:18 +02:00
ariel- 02ba07dee0 Core/Misc: fix interaction of spells like Shadowmeld with Threat reducing effects
- SPELL_AURA_MOD_TOTAL_THREAT should be temporary and not added/subtracted from total, only computed
- Cleanup of reference related code
- Kill getLast() and reverse iterator obsevers, LinkedList iterator can't be used as a standard reverse_iterator (ie with operator++). They weren't used anyways
2016-10-21 09:14:38 +02:00
ariel- 11dea2a874 Core/Scripts: add a workaround for Will of the Forsaken shared cooldown
Closes #7151
2016-10-21 08:26:35 +02:00
ariel- a96ab21ee2 Core/Scripts: kill whitespace 2016-10-05 07:59:43 +02:00
ariel- 16995799c9 Build: Added 1.62 Boost version to FindBoost 2016-10-03 14:58:55 +02:00
ariel- ac084e4ddc Core/Spells: Flag of Ownership shouldn't target creatures 2016-10-03 14:58:07 +02:00
ariel- 6ee820afe4 Core/Player: correct logic for IsUsingTwoHandedWeaponInOneHand
Fixes penalty not being applied when we are using a 2H in offhand, and a unarmed MH.
MH may do unarmed attacks in this case. (reciprocal of 2H MH, unarmed OH, only uses MH normally, OH doesn't unarmed attack)
2016-10-03 14:57:51 +02:00