Commit Graph

27396 Commits

Author SHA1 Message Date
jackpoz
7005089241 Core/Misc: Fix issues reported by static analysis
Coverity defect IDs: 1316687, 1316688

(cherry picked from commit 51a2a3fa93)
2015-09-24 22:36:37 +02:00
joschiwald
a3732aea48 Scripts/Ulduar: fixed hodir kill credit
Closes #15303

(cherry picked from commit 30fc4f9f63)
2015-09-24 22:35:33 +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 2f92a2f58e)

Conflicts:
	src/server/scripts/Northrend/Nexus/Nexus/boss_keristrasza.cpp
2015-09-24 22:34:18 +02:00
Laintime
1bf9b61ffa Core/Achievement: Fix Save The Day
Closes #15202
Closes #15211

(cherry picked from commit 79cd2f9bb9)
2015-09-24 22:14:15 +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 ea4d9c0d9e)

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 d243630acf)

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 5f0f152345)
2015-09-24 20:39:42 +02:00
Rochet2
c3c7ab6ec7 Core/RestState: Check area trigger radius instead of 1.0f distance
Closes #15016
Closes #15052

Signed-off-by: jackpoz <giacomopoz@gmail.com>
(cherry picked from commit 12931f4762)

Conflicts:
	src/server/game/Entities/Player/Player.h
	src/server/game/Handlers/MiscHandler.cpp
2015-09-24 20:29:55 +02:00
jackpoz
bfb373ef22 Merge pull request #15119 from robinsch/grounding
Core/Spells: Grounding totem fix

Fixes #15108
(cherry picked from commit 3f3ff8b36b)
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 a8ceb18cdf)

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 ca5a2785f7)
2015-09-24 19:54:22 +02:00
MrSmite
d9a3bdca61 Core/AHBot: Add missing AHBot quality price ratio to config
Signed-off-by: jackpoz <giacomopoz@gmail.com>
(cherry picked from commit fed67f5bc1)
2015-09-24 19:51:52 +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 143026ed19)
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 177b6319d1)

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 a328a11978 , clamp object size to [0,4] in case of very huge Creatures like Lord Marrowgar entry 36612

(cherry picked from commit 0a94382637)
2015-09-24 19:28:00 +02:00
jackpoz
cde1141fb4 Core/Config: Describe better Wintergrasp.Enable option in worldserver.conf
(cherry picked from commit 10620b4e11)
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 f07fe63e50)

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 a7ee951d9e)
2015-09-24 19:17:06 +02:00
Shauren
8c761b2877 Core/PacketIO: Verified and enabled a bunch of opcodes that already had their structures ported to packet classes 2015-09-24 18:47:33 +02:00
Shauren
91f2bef235 Core/PacketIO: Fixed creature teleports not working clientside 2015-09-23 00:05:18 +02:00
Shauren
a338aa408e Core/Misc: Fixed various possibly uninitialized value warnings
CID: 1324648, 1324649, 1324650, 1324651, 1324652
2015-09-22 00:07:05 +02:00
Shauren
e6e5f5c559 Partially revert "Core/Build: Added missing abort() calls on error handlers"
This reverts commit 8ea17647e6.
2015-09-21 17:18:55 +02:00
StormBytePP
8ea17647e6 Core/Build: Added missing abort() calls on error handlers 2015-09-21 15:52:34 +02:00
StormBytePP
958fd013e7 Core/Build: Add Trinity::Abort definition in header file 2015-09-21 15:31:49 +02:00
StormBytePP
c1817dff37 Fix a typo 2015-09-21 15:21:09 +02:00
StormBytePP
0bed9d56cb Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert 2015-09-21 15:17:05 +02:00
Shauren
32a2e58429 Core/Taxi: Implemented rebuilding taxi path for early landing and enabled CMSG_TAXI_REQUEST_EARLY_LANDING 2015-09-21 00:01:44 +02:00
joschiwald
d68e3325d5 Scripts/Ulduar/Algalon: fixed achievement "He Feeds On Your Tears"
Ref #6157
2015-09-20 16:03:48 +02:00
Duarte Duarte
cdbed0af4c Merge pull request #15550 from Keldo/6.x
Core/Opcode Changed for Bug Tickets
2015-09-20 07:02:45 -07:00
Keldo
3386d75e43 Core/Opcode Changed for Bug Tickets
CMSG_SUPPORT_TICKET_SUBMIT_BUG , STATUS_LOGGEDIN
2015-09-20 02:57:49 -07:00
Vincent-Michael
e5a2c5c026 DB/Hotfixes: Updated gameobjects table to 6.2.2.20490 2015-09-20 01:27:41 +02:00
Shauren
461feeccdf Core/PacketIO: Defined a new opcode 2015-09-20 00:44:31 +02:00
StormBytePP
b99d82443c Fix GCC warning about missing initializer for array 2015-09-19 19:30:37 +02:00
Shauren
89b902b4e0 Core/Misc: Added a few stl header includes to Common.h 2015-09-19 18:25:43 +02:00
Shauren
492bd23599 Warning fix 2015-09-19 17:55:45 +02:00
Shauren
3b52fcc769 Merge remote-tracking branch 'origin/6.x_implement_taxi' into 6.x 2015-09-19 17:41:24 +02:00
Shauren
f34bae89d3 Core/PacketIO: Disabled CMSG_TAXI_REQUEST_EARLY_LANDING 2015-09-19 17:39:01 +02:00
Shauren
f1b047b826 Core/Taxi: Further improvements
* Updated segment distance calculations - now selected path fully matches clientside preview
* Fixed building sOldContinentsNodesMask to also include any new taxi node added in future
* Implemented filtering possible hops when searching for shortest path by faction (and in future PlayerCondition)
* Changed ObjectMgr::GetNearestTaxiNode to filter faction nodes by flags instead of mount display
2015-09-19 16:44:33 +02:00
Shauren
2c7459da6d Core/Taxi: Further improvements
* Use dijkstra algorithm instead of astar to match client behavior
* Properly exclude special taxi nodes from the graph
* Corrected initial death knight nodes to only include destinations for their faction
2015-09-18 22:26:54 +02:00
Shauren
10b068ce5d Core/PacketIO: Fixed SMSG_ON_MONSTER_MOVE structure for uncompressed path 2015-09-18 16:22:08 +02:00
Shauren
68e89e4f7d Core/PacketIO: Corrected ActivateTaxiReply structure - fixes "There's no vendor nearby" message when starting flight 2015-09-17 23:33:29 +02:00
Shauren
1cc4badf06 Core/Players: Changed taxi speed to match spline durations seen in packets 2015-09-17 23:15:01 +02:00
MitchesD
93875c523c DB/Hotfixes: fixed data type of Modifier column in battle_pet_breed_quality 2015-09-16 22:31:07 +02:00
Shauren
225bbe7f72 Core/PacketIO: Implemented correct opcode for GameObject animkit changes and enabled all animkit related opcodes 2015-09-16 17:06:24 +02:00
Vincent-Michael
351e93078c DB/Auth: Updated to 6.2.2a.20490 2015-09-15 20:31:33 +02:00
Shauren
8998218eac Core/Unit: Fixed incorrect value sent in highest threat unit update 2015-09-15 16:58:09 +02:00
Shauren
66f47dc848 Core/Taxi: Fixed selecting paths that cross map boundaries (Light's Hope to Silvermoon for example) 2015-09-14 21:55:03 +02:00
MitchesD
64ec9299e5 Merge pull request #15510 from horn/6.x
Core/BattlePets: Added missing casts in packets and forgotten state from BattlePetSpeciesState.db2
2015-09-14 20:51:52 +02:00
horn
14e4c52c3b Core/BattlePets: Added missing casts in packets and forgotten state from BattlePetSpeciesState.db2 2015-09-14 20:37:27 +02:00
MitchesD
9e31bb0cbf Core/WorldSession: fix build warning 2015-09-14 17:55:21 +02:00