Commit Graph
100 Commits
Author SHA1 Message Date
jackpoz 8046d5a94f Scripts/Ulduar: Fix crash
Change an assert to a NULL check on Flame Leviathan vehicle kit, it can be NULL on map unload.
Close #16662

(cherry picked from commit 31cd082833926539c56569ff6faabc139f5f3223)
2016-04-08 20:38:09 +02:00
jackpoz 9e0491db48 Scripts/Deadmines: Fix issues reported by static analysis
Fix Coverity issue id 1022474

(cherry picked from commit d75469e31f03d45a72e3deff9ef97ffd5098e23b)
2016-04-02 15:32:10 +02:00
jackpoz f0bb02d8ee Scripts/Misc: Fix issues reported by static analysis
(cherry picked from commit 0e76d67e498fc659d25401f909ff1ebd5d45d529)
2016-04-02 14:38:29 +02:00
jackpoz f837fc875a Merge pull request #15977 from tkrokli/landmine_knockback_achievement
Scripts/Spells: Mine Sweeper achievement

(cherry picked from commit e59b4324b8123fa2123a990cd2b907c39db1a42e)
2016-03-21 23:35:57 +01:00
jackpoz 96ca739a0b Merge pull request #14896 from Ofinka/dupl
(cherry picked from commit 263f127d075d56be8fd19ef36871bf245bc4bdcc)
2016-03-21 19:04:39 +01:00
jackpoz 8f13fe9c3b Scripts/ICC: Fix static analysis issue
Fix an issue reported by static analysis

(cherry picked from commit 4191bb868a33288a18079494aff6b52df19dc5b4)
2016-01-20 22:01:17 +01:00
jackpoz 8f91df0465 Scripts/Commands: Modify ".setskill" command to target current Player by default
(cherry picked from commit e138e094a937139aef7a2f265fff2f64b17ffa7f)
2016-01-20 21:59:49 +01:00
jackpoz 0f157f1eac Merge pull request #16186 from ariel-/spellmodcharges
Core/Spells: Fix redundant mod charge drop and spell crit calc
(cherry picked from commit b39216eed31f587b1bcef88e69a714214304e896)
2016-01-20 21:58:38 +01:00
jackpoz 06fdcb9e18 Merge pull request #16193 from Goatform/3.3.5
Core/GameObjects: Fixed an issue where traps were not redirected to Grounding Totem
(cherry picked from commit 2a50ea5cf14e16ee0dda09f3c9090d5541b39b2d)
2016-01-20 21:55:50 +01:00
jackpoz ea2c2c9763 Merge pull request #16188 from Asterc/3.3.5
Core/Player: Fix profession specialization being re-learnt on login after unlearning it
(cherry picked from commit 1c89b4dcdfa0e25aee28245513b1cf464e3d9e7b)

Conflicts:
	src/server/game/Entities/Player/Player.cpp
2016-01-20 21:53:51 +01:00
jackpoz 36ed04bc6b Scripts/Commands: Fix ".help" command to show commands in alphabetical order
(cherry picked from commit 841ce54a0dbc4b76ab0068ff08732a068f39f570)
2016-01-20 21:29:21 +01:00
jackpoz e7f7ffa73f Scripts/Commands: Modify ".learn" command to target current Player by default
(cherry picked from commit f22b1938db5cddcb2a9988ff54dfa08d2fa1aecc)
2016-01-20 21:28:17 +01:00
jackpoz bb97e888ff Core/Player: Fix crash related to vehicles
Fix assertion triggered when entering a vehicle while channelling a shared vision spell.
Fix #15953

(cherry picked from commit 2cb54d5606109305194ed3cdb1b56ca62317b891)

# Conflicts:
#	src/server/game/Entities/Player/Player.cpp
2016-01-15 20:36:16 +01:00
jackpoz 1ab8f0b00e Core/Quest: Fix issues reported by static analysis
(cherry picked from commit 5b8b32dac7bd4071462aebdc94b2b3ae45e60b1e)
2016-01-15 20:35:24 +01:00
jackpoz 2f1bd93c9e Core/Unit: Add Unit::KillSelf() overload
Add Unit::KillSelf() function as overload of Unit::Kill(this) . Use KillSelf() whenever the killer and the victim are the same to clearly state the Unit is going to kill itself.

(cherry picked from commit 3267c90102068ed88c0bd7146ae747fe8ba44771)

# Conflicts:
#	src/server/game/AI/SmartScripts/SmartScript.cpp
2016-01-15 20:34:27 +01:00
jackpoz 3f0026d8e7 Core/Quest: Fix issues reported by static analysis
(cherry picked from commit 1ddf44caf3b0c9af2cc4169b608f1801c2f6f52a)

# Conflicts:
#	src/server/game/Quests/QuestDef.cpp
#	src/server/game/Server/WorldSession.cpp
2016-01-15 20:32:56 +01:00
jackpoz 0c81c1c184 Core/Quest: Fix issues reported by static analysis
(cherry picked from commit bffaa92633937d220ab19f565faa5906995530a2)

# Conflicts:
#	src/server/game/Entities/Pet/Pet.h
#	src/server/game/Texts/CreatureTextMgr.cpp
2016-01-15 20:29:43 +01:00
jackpoz 700899e0e5 Core/Quest: Fix issues reported by static analysis
(cherry picked from commit f1f4005ad8a17ea5fdd2b66f8ed3d0bd7c4c1efb)

# Conflicts:
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/game/Entities/Unit/Unit.h
#	src/server/game/Handlers/GroupHandler.cpp
2016-01-15 20:27:04 +01:00
jackpoz 880b08d3a9 Merge pull request #15960 from panaut0lordv/6.x
Core/Misc: Character escaping is not necessary in MOTD config
2015-12-12 15:41:35 +01:00
jackpoz b03d36d702 Merge pull request #15920 from Treeston/3.3.5-MCHotkeyPos
Unit/PossessBar: Fix spell ordering on possess bar
(cherry picked from commit c703e01471a3598f68051abb17e598e316b744ef)
2015-12-12 03:26:54 +01:00
jackpoz f6131af02b Merge pull request #15912 from Treeston/3.3.5-urandms
Core/Util: Add urandms(minMS, maxMS) helper
(cherry picked from commit c1b4cd21f3debc2eb5e462c5adce659b558c7dc9)
2015-12-12 03:26:31 +01:00
jackpoz 8ff2359b7d Merge pull request #15903 from tkrokli/remove_script_npc_anchorite_truuen
Core/Scripts: Remove deprecated script npc_anchorite_truuen

Remove deprecated script npc_anchorite_truuen replaced by SAI in 2cecc7b1f7b846d24f25e0f5acb957c4c4b4484d

(cherry picked from commit 9020790db22d96dca05e8f6581c9cf80727f14b4)
2015-12-12 03:09:21 +01:00
jackpoz 5077363f51 Core/Player: Always allow accounts with RBAC_PERM_COMMAND_GM to enter instances on login
Always allow accounts with RBAC_PERM_COMMAND_GM to enter instances on login even if player had .gm off .
Send an ingame message to notify the user about the avoided kick.

(cherry picked from commit 5f917e2286809d7aafa8871be38042ae7966c26b)
2015-12-12 03:08:45 +01:00
jackpoz baa52438e6 Scripts/EyeOfEternity: Fix crash
Fix crash happening when a player would kill a Melee npc on the disks during Malygos fight and mount it before it ended the waypoint path.
Close #15900

(cherry picked from commit 6e296ddaa20a51327f7666f6ddaac60e4216ee23)
2015-12-12 03:08:16 +01:00
jackpoz 7e056e25c7 Core/Quest: Fix issues reported by static analysis
Coverity defect IDs: 1339309, 1339310

(cherry picked from commit fbaed38b5ea605e3dbd65a99835db1778ac24391)
2015-11-23 10:11:55 +01:00
jackpoz 27e65ad33a Core/Player: Fix issue reported by static analysis
Coverity defect IDs: 1010154

(cherry picked from commit 63f2675076e96abe9dad04baf1f7310b429d9eae)

Conflicts:
	src/server/game/Entities/Player/Player.cpp
2015-11-23 10:11:54 +01:00
jackpoz ec3bba64f0 Core/Commands: Fix NULL dereference crash
Closes #15833

(cherry picked from commit abd4e2e0f1142b8a9edfe31e58bdbca1d4e87c42)
2015-11-10 21:27:50 +01:00
jackpoz ceed5e2d35 Core/Battleground: Fix "Call to Arms: Isle of Conquest!" not giving Holiday Weekend honor
(cherry picked from commit 562e82928f3a57c60bcace69ca73246afc0f1805)
2015-11-06 11:51:28 +01:00
jackpoz 5f5ac9630c Scripts/Naxxramax: Fix clang warning
(cherry picked from commit da0671f4fee1ee00a45dc15e4ddd94d3f9c82a18)
2015-11-06 10:56:27 +01:00
jackpoz 7b684e8813 Script/Commands: Add new "debug loadcells" command
Closes #15292

(cherry picked from commit 5e1722c2f497ac7df8fed5ebe01e352965884584)
2015-11-01 12:30:45 +01:00
jackpoz ee5eb215e9 Scripts/Commands: Change few commands to target current Player by default
(cherry picked from commit d1efb90ae88bfb30ad13c48eef5d6c19ce5739e2)
2015-11-01 12:00:48 +01:00
jackpoz e0ccbede07 Core/NetworkIO: Adjust more packet throttling values
Adjust more packet throttling values by increasing some limits, this might fix some random kicks.
Close #14659

(cherry picked from commit 5bd7c295c0b0f2cb78345ed02dd37531a67348f5)
2015-11-01 10:52:17 +01:00
jackpoz f2ca107fc8 Scripts/Ulduar: Fix issue reported by static analysis
Coverity defect ID: 1316690

(cherry picked from commit 4cdab0cdcb7081d3b99736a189f7e8a9280fda59)
2015-09-25 00:06:30 +02:00
jackpoz 7893ac6baf Core/Spells: Fix crash happening when using items to cast spells
Fix a crash happening when using items casting spells like Item ID 37198
Fix #14900

(cherry picked from commit 166e66cc06d418b94e14abb30dea6a76ba9edce2)
2015-09-24 23:58:26 +02:00
jackpoz 97f9a3f816 Core/Dungeon Finder: Fix groups queuing broken by 1e71aba2ee656a8407dec63a69d0879e16a070e2
Fix queuing in LFG with 5-men groups leaving the party in queue forever, caused by group GUID being added to list of party members.

(cherry picked from commit 42a71133fa32a1414dc52241c99430178b24422e)

Conflicts:
	src/server/game/DungeonFinding/LFGQueue.cpp
2015-09-24 23:53:20 +02:00
jackpoz 2f0079410d Core/Dungeon Finder: Improve ".lfg queue debug" command
Log roles of every combinations in ".lfg queue debug" output

(cherry picked from commit 16e9882aa86186d85bb2cb9d2b8fbb6165c2fe96)
2015-09-24 23:43:01 +02:00
jackpoz ee7039e845 Core/Chat: Allow to sanitize | characters when sending messages to clients
Add an optional parameter "escapeCharacters" to ChatHandler::SendSysMessage() to properly escape | character, otherwise it might freeze the client.

(cherry picked from commit 7c91984a64c2f78ad17153018a42926dfcf0ae59)
2015-09-24 23:42:23 +02:00
jackpoz adf6d968ed Core/Dungeon Finder: Remove disconnected players from LFG queue
Fix LFG queue issues by removing disconnected players from LFG queue and their party with them.

(cherry picked from commit b7f9836d223925802115f45ad2c2c7eeb9bb00a4)
2015-09-24 23:40:15 +02:00
jackpoz f570a0064c Core/Dungeon Finder: Add LFG roles of group members in LFG logs
This changes logs like "(1|18)" to "(1 Healer, Dps|18 Tank, Healer, Dps)"

(cherry picked from commit 1e71aba2ee656a8407dec63a69d0879e16a070e2)
2015-09-24 23:39:23 +02:00
jackpoz d0ce95fca5 Core/Battleground: Fix issue reported by static analysis
Coverity defect IDs: 1193415

(cherry picked from commit c67118f909fee1ed489e3125cb85f3a8179c1a43)
2015-09-24 23:25:28 +02:00
jackpoz 7005089241 Core/Misc: Fix issues reported by static analysis
Coverity defect IDs: 1316687, 1316688

(cherry picked from commit 51a2a3fa93702f289cda1e64323f55aba02f1026)
2015-09-24 22:36:37 +02:00
jackpoz 0fad953852 Scripts/Misc: Replace some unsafe WorldObject* class members in scripts with ObjectGuid
Replace some unsafe WorldObject* class members and derived types in scripts with ObjectGuid.
Code cleanup.

(cherry picked from commit 2f92a2f58e171bbfa6dc06d3b2663cbf384a7d38)

Conflicts:
	src/server/scripts/Northrend/Nexus/Nexus/boss_keristrasza.cpp
2015-09-24 22:34:18 +02:00
jackpoz 4700b24263 Core/Misc: Remove unneeded ToCreature() casts
Remove some ToCreature() casts not needed anymore after 1ee90e1022 changes that moved IsPet(), IsTotem(), IsSummon(), IsGuardian(), IsHunterPet() and IsVehicle() from Creature to Unit

(cherry picked from commit ea4d9c0d9e3339c96b94f13bbbfc1318bb6b03f9)

Conflicts:
	src/server/game/Entities/Player/Player.cpp
	src/server/game/Entities/Unit/Unit.cpp
	src/server/scripts/Spells/spell_pet.cpp
2015-09-24 22:06:05 +02:00
jackpoz cacf184822 Core/Misc: Remove unneeded ToCreature() casts
Remove some ToCreature() casts not needed anymore after 1ee90e1022 changes that moved IsPet() from Creature to Unit

(cherry picked from commit d243630acff017f5e50bf0c833a0bbac35ba6c5a)

Conflicts:
	src/server/game/Entities/Player/Player.cpp
	src/server/game/Spells/Spell.cpp
	src/server/game/Spells/SpellEffects.cpp
2015-09-24 21:04:46 +02:00
jackpoz 6193b8a28d Scripts/Misc: Fix possible crash
Fix possible NULL-dereference exception happening in PlayerOrPet checks used in Ulduar and Temple Of Ahn Qiraj

(cherry picked from commit 5f0f152345ec7e9cc6195ba8f59f316a1cad90f7)
2015-09-24 20:39:42 +02:00
jackpoz bfb373ef22 Merge pull request #15119 from robinsch/grounding
Core/Spells: Grounding totem fix

Fixes #15108
(cherry picked from commit 3f3ff8b36b0537d07bf8222226ab88346c689e4b)
2015-09-24 19:59:09 +02:00
jackpoz 175b0bcfb5 Core/Gameobjects: Move a log from FATAL to DEBUG
The log is triggered when a mage creates a portal to another map, uses it and then the portal despawns.

(cherry picked from commit a8ceb18cdfe850fbb84ddd3d917565f2a100ebb7)

Conflicts:
	src/server/game/Entities/GameObject/GameObject.cpp
2015-09-24 19:57:31 +02:00
jackpoz 4ee081f7bc Core/Battlegrounds: Move a log from ERROR to DEBUG
The "error" is a false positive happening every time a player in a Battleground logs out because WorldSession::LogoutPlayer() notifies the bg twice

(cherry picked from commit ca5a2785f760a90ceb0c3d321da208ee07552f87)
2015-09-24 19:54:22 +02:00
jackpoz 57328c69aa Core/Spells: Fix damage done by SPELL_EFFECT_NORMALIZED_WEAPON_DMG
Fix a rare case that would cause SPELL_EFFECT_NORMALIZED_WEAPON_DMG to do 4 billions damage or to trigger an assertion in Unit::CalculateDamage() depending by Unit base damage.
To reproduce the issue cast spell 25816 on a level 1-14 warrior, then make the warrior cast spell 694 on a Creature.

(cherry picked from commit 143026ed19455f5a908ef508d1bf5ce43c092a21)
2015-09-24 19:51:05 +02:00
jackpoz cf67b7d375 Core/AHBot: Adjust AHBot bid and buyout chances
Apply an exponential formula to define the chance to bid/buyout an auction depending on auction price and item price ratio. The formula can be adjusted changing the new AuctionHouseBot.Buyer.ChanceFactor config parameter
Chance = 100 ^ (1 + (1 - (auction_price / item_price) / k)
k is the config parameter AuctionHouseBot.Buyer.ChanceFactor, the higher the number the higher chance to buy overpriced auctions.

(cherry picked from commit 177b6319d1ad49a38fbd06f37671da1e3d1ae4e6)

Conflicts:
	src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp
2015-09-24 19:48:31 +02:00
jackpoz 8a5d92726a Core/Spells: Fix Charge "no path" error with even bigger targets
Addition to a328a119784252c6d514436f4ceffa693ac65453 , clamp object size to [0,4] in case of very huge Creatures like Lord Marrowgar entry 36612

(cherry picked from commit 0a94382637ba9212a23e224b4ac2df114acb4ca7)
2015-09-24 19:28:00 +02:00
jackpoz cde1141fb4 Core/Config: Describe better Wintergrasp.Enable option in worldserver.conf
(cherry picked from commit 10620b4e114b86940fb72fcae507ef155d6d234e)
2015-09-24 19:25:01 +02:00
jackpoz 16da2c8d95 Core/Threading: Handle CMSG_BATTLEFIELD_MGR_ENTRY_INVITE_RESPONSE only in WorldSession update because it removes the Player from his Group which is not thread-safe
(cherry picked from commit f07fe63e50062941dd99ce719f27f6d09ecfbd7d)

Conflicts:
	src/server/game/Server/Protocol/Opcodes.cpp
2015-09-24 19:24:02 +02:00
jackpoz cd72a243af Merge pull request #15168 from jameyboor/3.3.5
Core/Creature: Fix Creature::UpdateMovementFlags() ignoring DynamicTree height

Fix Creature::UpdateMovementFlags() checking only maps/vmaps height and skipping GameObject height stored in DynamicTree
(cherry picked from commit a7ee951d9efcfb0a0a5b9ed1ec3a732c06d8877f)
2015-09-24 19:17:06 +02:00
jackpoz 4617d65131 Merge pull request #15297 from StormBytePP/3.3.5_rename_Revision.h
Core/Build: Renamed Revision.h to GitRevision.h to avoid compile failure when old revision.h file is present
(cherry picked from commit 360cc93357d1b51258986e547ac29dddac20159c)

Conflicts:
	src/server/authserver/Main.cpp
	src/server/database/Updater/DBUpdater.cpp
	src/server/game/Entities/Player/Player.cpp
	src/server/game/World/World.cpp
	src/server/shared/PrecompiledHeaders/sharedPCH.h
	src/server/worldserver/Main.cpp
2015-08-16 22:45:18 +01:00
jackpoz e70290d558 Buildsystem: Fix Boost not found targeting VS2015 with pre-built binaries
Fix Boost libraries not being found by CMake when targeting Visual Studio 2015 with Boost installed using the binaries.
Fixes #15277

(cherry picked from commit ca940548bfbeff585983aa537da036f75d3f0f7b)
2015-08-15 17:46:19 +01:00
jackpoz 44673b89d5 Core/Misc: Update helgrind suppressions
(cherry picked from commit e008ae752012d78aa3b1f40e6bf1f5bea6e64145)
2015-07-25 23:42:19 +01:00
jackpoz d41f87e62a Core/Collision: Fix race conditions in mmaps
Fix a race condition in MMapManager happening whenever a map was unloaded. GridUnload enabled was required to trigger the race condition.

(cherry picked from commit aa042e94c2f76e5735a8f745c3fcb7dd54cf6c0b)

Conflicts:
	src/server/collision/Management/MMapManager.cpp
	src/server/collision/Management/MMapManager.h
2015-07-21 19:01:44 +01:00
jackpoz 87a5ba09e5 Core/Collision: Fix race conditions in vmaps
Fix a race condition in VMapManager2 happening whenever a map was unloaded. GridUnload enabled was required to trigger the race condition.

(cherry picked from commit ca7f31c6cdceb7e2921d5d83e1ae22ccb247988d)
2015-07-20 01:11:55 +01:00
jackpoz 31f1169f8a Scripts/VioletHold: Fix build warnings
(cherry picked from commit a22fd7dca5458719ea03612a7a14aa870b6e9199)
2015-07-20 01:11:37 +01:00
jackpoz 1915a4ad49 Core/Instances: Fix some Instance Lock chat messages
Always send a Welcome type Instance Lock chat message when entering an instance instead of changing type based on remaining time.
Fix scheduled warning message to always send "Your instance lock for ... will expire in 0 minutes." even if there are hours left, issue added in 4193806dba , closes #11519 .
Update warning messages based on remaining time so that the most meaning is always used (6 hours left, 59 minutes left, etc).

(cherry picked from commit fae826958915673338868d0b3b273860630638fb)

Conflicts:
	src/server/game/Handlers/MovementHandler.cpp
	src/server/game/Maps/Map.cpp
2015-07-12 12:47:43 +01:00
jackpoz 4479cbf170 Scripts/Ulduar: Fix Flame Leviathan instance lock
Fix Flame Leviathan instance lock not being granted to players because they were ejected from the vehicles as soon as boss died.
Players are now ejected some seconds later.
Close https://github.com/TrinityCore/TrinityCore/issues/15005

(cherry picked from commit b574c99549bb8cf1d95bd4bc0c319548a678799a)
2015-07-12 12:45:49 +01:00
jackpoz 0c09d6311a Core/Spells: Normalize Z for last point in a charge path
Normalize the new point that 124398feef adds to a charge path.

(cherry picked from commit e5258f92c8057d453b890976eb18e98e6de96d07)
2015-07-12 12:45:36 +01:00
jackpoz 0fd0529ed1 Scripts/Commands: ".mmap path line" now uses raycast pathfinding
Add "line" optional parameter to ".mmap path" command to use raycast implementation of recast, useful to simulate charge paths.

(cherry picked from commit 37b157746e075294fd14abef5cc8e611b7bf2c76)
2015-07-12 12:43:31 +01:00
jackpoz 7cabfc7420 Core/Spells: Fix Charge "no path" error with huge targets
Fix Charge returning "no path found" error when targeting targets with Object Size of 8 like Festergut by changing how the target Z coordinate is set, using only half object size.
It is unclear why the CalculatePath() call in Charge handler is using target object size, maybe for corner cases where the target is slightly below the ground.

(cherry picked from commit a328a119784252c6d514436f4ceffa693ac65453)
2015-07-12 12:43:21 +01:00
jackpoz dbf51eee46 Scripts/EyeOfEternity: Fix crash added in d1853f693b
Close https://github.com/TrinityCore/TrinityCore/issues/14984#issuecomment-118044904

(cherry picked from commit 275bb9303438a3e6e21e90de514723fd4aba7b05)
2015-07-03 01:16:58 +01:00
jackpoz e98b8fa7c5 Dep/G3D: Backport fix from G3D10
(cherry picked from commit b9d5b194df2719bda956ea4f8794916ceb4bdd58)
2015-07-03 01:16:51 +01:00
jackpoz 08f11ed515 CI/Travis: Report travis build as broken if new build warnings get added to the sources
(cherry picked from commit 2b6ddce59b2e1f7bff83f904813ef86acecf243d)
2015-07-03 01:16:44 +01:00
jackpoz 2dba70c655 Dep/gsoap: Turn off build warnings
Disable -Wunused-parameter warnings in gsoap library to have a 0-warning build till the library gets updated

(cherry picked from commit 77f7f562683753a15bd2d3f80e65385f88383566)
2015-07-03 01:14:41 +01:00
jackpoz 6b30fbc238 Buildsystem/Clang: Suppress warning
Suppress -Wmismatched-tags warnings on clang to avoid false positive warnings reported using gcc 4.8

(cherry picked from commit 879af88d2180ca0655fda87072308f6eb76e70ca)
2015-07-03 01:08:10 +01:00
jackpoz 0b745370dc Core/Texts: Fix race conditions in CreatureTextMgr repeat group
Fix race conditions in CreatureTextMgr repeat group happening with MapThreads > 1 reported by helgrind by moving Creature-GUID-base data from CreatureTextMgr to Creature.
Issues added in bbf86641a1

(cherry picked from commit d123c811623fcedcf125f56101b6aea773f460e0)

Conflicts:
	src/server/game/Texts/CreatureTextMgr.cpp
2015-07-03 01:05:22 +01:00
jackpoz 622ff39f49 Core/Dependencies: Fix some warnings in G3D
(cherry picked from commit c86cf03dcefad845ca52b1bb1c9b1baa89105462)
2015-06-29 15:54:00 +01:00
jackpoz a48f8f4de9 Core/Dependencies: Update recast
Update recast to https://github.com/memononen/recastnavigation/commit/1dd5cf1883d61e723fef3d4957cf758c50e7a52b
Fix 2 warnings.

These changes have no effect on MMAPs and it's not needed to re-extact them.

(cherry picked from commit dfa556aaa2fd60f881845d381f71294b945396f6)

Conflicts:
	dep/PackageList.txt
2015-06-29 15:52:57 +01:00
jackpoz 9292217ccc Core/Instances: Make achievements and loot rolls instance-wide
Make achievements, loot rolls, master loot at money loot instance-wide, removing the previous limit for 74.f yards

(cherry picked from commit cb4d1574e05b0d50368da03c42edeac46590d14f)
2015-06-26 03:32:40 +01:00
jackpoz 647cdfb425 Core/Misc: Update helgrind suppressions
(cherry picked from commit 6a303caffd6930bf20e15668229a45a77d38f348)
2015-06-26 03:30:37 +01:00
jackpoz c0f56fbfd8 Core/Misc: Add valgrind support for jemalloc
Set CMake option VALGRIND to add valgrind support to jemalloc. Set CMake parameter VALGRIND_INCLUDE_DIR to the valgrind include directory.

(cherry picked from commit 60a29f761467c0ac76129f2f761ca0de9e7d237d)
2015-06-26 03:30:11 +01:00
jackpoz a3faa57f3b Scripts/Commands: Fix memory leak in ".reload command"
Free commandTableCache object before assigning it the result of malloc()

(cherry picked from commit c6c09423fd226a970b0b39cdd2586e9ae3a07f6b)
2015-06-26 03:29:47 +01:00
jackpoz a5d5f98c38 Core/Players: Fix converting quests on faction change
Fix quests not being converted on faction change due to table world.player_factionchange_quests not loaded on startup

(cherry picked from commit c544e88437106fb79dba14bbf8469deadb679e8a)
2015-06-26 03:28:47 +01:00
jackpoz 5254a1e164 Core/Spells: Fix Charge pathing
Fix charge allowing to run to unreachable places
Close #13847

(cherry picked from commit 91c399cad239b20dac68629587e7c8b4ec612be3)
2015-06-26 03:28:39 +01:00
jackpoz d9133adbb7 Core/ChatCommands: Allow to use "tele" command inside of a battleground
Allow GameMasters with ".gm on" tag to use ".tele" command inside of a battleground to tele around.

(cherry picked from commit 0b9cd22a6b5a0cca6e3c07dd5ae077ddbdfc3992)
2015-06-26 03:28:20 +01:00
jackpoz e4e903ba95 Merge pull request #14728 from kelno/fixes
Core/SAI: Fixed a math error overflow in SmartScript::DecPhase(int32)
(cherry picked from commit 6d7339e7a3daf302d6bed1c8c0a4584a69a9316b)
2015-06-26 03:27:54 +01:00
jackpoz d7258abb0e Merge pull request #14250 from xjose93/SPELL_AURA_USE_NORMAL_MOVEMENT_SPEED
Core/Unit: Fix snare/daze immunities versus SPELL_AURA_USE_NORMAL_MOVEMENT_SPEED

Fix SPELL_AURA_USE_NORMAL_MOVEMENT_SPEED modifying speeds of bosses that are immune to changes of speeds.
(cherry picked from commit 81cec13a586c1d7e84d0936b4a385934f5f91ef1)
2015-06-26 03:25:51 +01:00
jackpoz 3c7eee915b Core/Misc: Update helgrind suppressions
(cherry picked from commit abda6840e1ac3c8140af59c619bef934761db5ee)
2015-06-26 03:23:48 +01:00
jackpoz a8e7bfe05b Core/Misc: Disable G3D buffer pools if jemalloc is enabled
(cherry picked from commit d78eae1eafc2319144a28f8447578e6ebdfca39e)
2015-06-26 03:23:21 +01:00
jackpoz b2a987267d Core/Player: Don't allow to join bg/lfg when frozen by a GM
(cherry picked from commit 239f0b4ad0e83da9d31c8031aa2e50c294bfc913)
2015-06-26 03:21:30 +01:00
jackpoz e4c5a210fe Scripts/Auchindoun: Fix distance check in boss Shirrak
Issue added in 88137c07b9

(cherry picked from commit a7847728a59a9a6925a75cb01d789d9f778163cd)
2015-06-26 03:21:08 +01:00
jackpoz 9382678b2b Core/Player: Fix resurrection exploit
Fix an exploit that allowed to resurrect even if corpse was not in range (teleport hack was required too)

(cherry picked from commit 83cf1e6aec0594f7d92bdebf52239867c3fd3abc)

Conflicts:
	src/server/game/Entities/Player/Player.h
2015-06-26 03:18:38 +01:00
jackpoz edc2476e84 Core/CrashHandler: Make crashhandler tread-safe
Handle only 1 exception in the whole process lifetime and create only 1 crash report.

(cherry picked from commit 1a5051a9c3b8246e92543962c04c3883c4d03f5f)
2015-06-26 02:59:27 +01:00
jackpoz d423747037 Scripts/ToC: Fix doors opening/closing during Dreadscale fight
Fix doors opening/closing during Dreadscale fight by sending a CloseDoor command instead of toggling the door state when Dreadscale resets its movement.
Note that bounding the door state to boss movement makes poor sense and should be changed. Other bosses in ToC have this logic and should be updated if they show the same bug.

(cherry picked from commit b5cc8c5b17c96f281728ee08576acfff507d8039)
2015-06-26 02:56:40 +01:00
jackpoz 6df2d03f72 Merge pull request #14641 from tkrokli/Fix_cast_on_fear_while_rooted
Core/Spells: Fix being able to cast while feared and rooted at same time

Disallow to cast if feared and rooted at same time
(cherry picked from commit 1161295f4f933661ea9738e0c57049a1e38ec8f2)

Conflicts:
	src/server/game/Entities/Unit/Unit.cpp
2015-06-26 02:56:20 +01:00
jackpoz 133d6cd85f Scripts/VioletHold: Fix crash
Fix crash in Violet Hold happening when crystals were activated without killing trash mobs.
Crash added in cba6515acb and f4531c5a58 .
Closes #14629

(cherry picked from commit 09aed2565966c96d403afe44a0cce423c59cb4ec)
2015-06-26 02:51:08 +01:00
jackpoz a323ee5e62 Core/Misc: Fix issues reported by static analysis
Coverity defect IDs: 1023115

(cherry picked from commit 391c81d86cd890801dd74d41685be52f205bc44c)

Conflicts:
	src/server/scripts/Commands/cs_npc.cpp
2015-06-01 01:04:43 +01:00
jackpoz 986deaa977 Core/Misc: Fix issues reported by static analysis
Coverity defect IDs: 1022861, 1022862, 1022863, 1302435, 1302439, 1302440

(cherry picked from commit 25881ca95fd3c8e6c8aecb93739d1642c7a4d9c8)

Conflicts:
	src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/shattered_halls.cpp
	src/server/scripts/Outland/zone_hellfire_peninsula.cpp
2015-06-01 00:57:41 +01:00
jackpoz 8cbdb7aa36 Core/CrashHandler: Log STACK_OVERFLOW crashes
Try to log STACK_OVERFLOW crashes by allocating log buffer on the heap which should still be in a valid state with a stack overflow exception.
This will probably still not produce a complete crash report with details about all stackframes.

(cherry picked from commit ec4b08e3cf79cfb5fe99a542bd53bac9560e0d92)
2015-06-01 00:53:21 +01:00
jackpoz b7eb415049 Core/Misc: Fix issues reported by static analysis
Coverity defect IDs: 1292769, 1292768, 1292765, 1292763, 1267939

(cherry picked from commit 2dc97e3f3db69bf7799341db5bcc7604558c90b8)

Conflicts:
	src/server/game/DataStores/DBCStructure.h
	src/server/scripts/Kalimdor/zone_bloodmyst_isle.cpp
2015-04-14 01:01:46 +01:00
jackpoz 5bfc59b69b Core/Dungeon Finder: Add additional logs for SMSG_LFG_QUEUE_STATUS
Log the current LfgState of the target player when sending SMSG_LFG_QUEUE_STATUS packet.

(cherry picked from commit c38d4f57b318573f4ccd4404c733d658298c3f0b)
2015-04-14 01:01:45 +01:00
jackpoz 1126ed97bb Core/Dungeon Finder: Allow to execute "lfg" commands from console
(cherry picked from commit de1cbf716db6a389f95cf5b9c790ec956d24aab0)
2015-04-14 01:01:06 +01:00
jackpoz 0f251d4d51 Core/Dungeon Finder: Restore ".lfg queue debug" logging additional information
Restore ".lfg queue" behavior to print additional debug informations when an additional argument is passed (any character/word will work).

(cherry picked from commit be9294dc098029c62003d3e19e0c2a29a7c738f7)
2015-04-14 01:01:04 +01:00
jackpoz 9ba60b52c5 Core/Misc: Revert a static analysis "fix"
Revert assertion check added in 5dfd07fa4f , the issue reported by Coverity is a false positive.
2015-03-29 14:28:59 +02:00
jackpoz 3799d454b3 Scripts/Ulduar: Fix some Flame Leviathan issues
Fix some Flame Leviathan issues:
- Fix boss evading all the time due to bad Doors check
- Opened "Lightning Door" to other bosses only after boss dies
- Eject players from the vehicles when boss dies, make them untargetable and despawn them after 5 minutes (adjust the time to the blizzlike time of choice)

(cherry picked from commit d888e4c7ad5ce48eb1f550b3e142dad16c026d0c)
2015-03-21 23:44:12 +00:00