Commit Graph

1797 Commits

Author SHA1 Message Date
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 2cb54d5606)

# Conflicts:
#	src/server/game/Entities/Player/Player.cpp
2016-01-15 20:36:16 +01:00
MitchesD 9f4e4b9546 Core/PacketIO: updated SMSG_CROSSED_INEBRIATION_THRESHOLD 2016-01-05 23:37:45 +01:00
Shauren 2a6f65fddc Core/Players: Split playerBytes fields in characters table 2016-01-05 00:03:18 +01:00
Vincent-Michael 478cc756eb Update copyright note for 2016
Happy new year (Again new year with idiots ...)
2016-01-01 00:34:25 +01:00
Shauren 2ebf3fc44b Core/PacketIO: Removed handler for another opcode that doesn't exist anymore 2015-12-21 23:20:00 +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 5f917e2286)
2015-12-12 03:08:45 +01:00
Shauren 094f505e40 Core/Items: Fixed a possible crash with soulbound tradable items
Closes #15700
2015-12-08 18:02:10 +01:00
Shocker e9a1db916e Core/Spells: Implement SPELL_AURA_MOD_SKILL_2 2015-11-29 19:27:29 +02:00
Shauren d03ca37f10 Core/Players: Use constant gender from PLAYER_BYTES_3 where appropriate. 2015-11-27 21:53:27 +01:00
Shauren d5fb18d3c3 Core/Spells: Implemented scaling spell value with item level 2015-11-24 00:16:42 +01:00
jackpoz 7e056e25c7 Core/Quest: Fix issues reported by static analysis
Coverity defect IDs: 1339309, 1339310

(cherry picked from commit fbaed38b5e)
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 63f2675076)

Conflicts:
	src/server/game/Entities/Player/Player.cpp
2015-11-23 10:11:54 +01:00
Carbenium 98dd4d732a Core/Player: Improve log messages 2015-11-16 01:45:53 +01:00
Carbenium b705ebeb7f Core/Player:
* sprinkle some consts
* replace some C-style casts by static_cast
* replace NULL by nullptr
2015-11-16 01:15:14 +01:00
Carbenium 4e76974ce5 Core/Player: Move KillRewarder to its own file 2015-11-14 03:01:02 +01:00
Carbenium 2d7d6f505c Core/Player: Move TradeData to its own file 2015-11-13 10:23:33 +01:00
Shauren 61c7161a10 Core/Units: Updated melee/spell hit chance calculation 2015-11-10 17:33:36 +01:00
Carbenium 7eb314fcd1 Core/Player: Improve a log message 2015-11-10 00:06:03 +01:00
Shauren 7c238cdefa Core/Items: Implemented new item bonus types 2015-11-08 15:10:18 +01:00
Carbenium 74d7627778 Merge pull request #15720 from Tonghost/3.3.5
Core/Items: Fix a trading spoof exploit.
(cherry picked from commit 12ae32a9b6)

Conflicts:
	src/server/game/Entities/Item/Item.cpp
2015-11-07 01:02:11 +01:00
blub bf7175ee83 Merge pull request #15731 from ShinDarth/toscri
Convert the Duel Cooldown Reset feature to scripts
(cherry picked from commit 5c449b50aa)
2015-11-07 00:38:05 +01:00
MitchesD 63f253e95c Merge pull request #15697 from ShinDarth/cd
Core/Player rewritten duel CD reset system
(cherry picked from commit 4204805d47)

Conflicts:
	src/server/game/Spells/SpellHistory.cpp
	src/server/game/Spells/SpellHistory.h
	src/server/game/World/World.h
2015-11-07 00:35:24 +01:00
Shauren 8ceffaef44 Merge pull request #15646 from ShinDarth/ticket
Core/Player: implement ResetCoolDownAfterDuel configurable feature
(cherry picked from commit 5b8f1469ca)

Conflicts:
	src/server/game/Spells/SpellHistory.cpp
	src/server/game/Spells/SpellHistory.h
	src/server/game/World/World.h
2015-11-07 00:15:00 +01:00
Shauren 710d9c0ecc Core/Players: Fixed saving players with incorrect gender
(cherry picked from commit 6c53f820ae)
2015-11-06 12:55:18 +01:00
MitchesD dd58e56f84 Core/Player: Fix not being able to do seasonal quests(if already done in the past)
(cherry picked from commit 1ef1d42d14)
(cherry picked from commit 56b27711a4)
2015-11-06 12:35:21 +01:00
joschiwald 92b08fc74b Scripts/VioletHold: rewrote the whole instance
thanks @MitchesD for help

(cherry picked from commit df21162fe4)
(cherry picked from commit 3a4f54197c)
(cherry picked from commit f50df72820)
(cherry picked from commit 95bae7143f)
(cherry picked from commit 5406f82044)
2015-11-01 13:09:30 +01:00
Shauren bd16520ecc Core/Corpses: Fixed leaking bones
Ref #15765
2015-10-28 21:43:44 +01:00
Shauren b09e63e9de Core/Conditions: Optimizations part 3 removed copying condition containers all over the place 2015-10-25 13:20:28 +01:00
Shauren 5e0cee85dd Core/Conditions: Type renaming 2015-10-25 10:59:58 +01:00
Shauren a3814d4937 Core/Player: Removed currency precision flag value manipulations, this is all handled clientside 2015-10-20 17:03:37 +02:00
Shauren d03ff1433f Core/PacketIO: Updated and enabled item refund opcodes 2015-10-19 21:18:48 +02:00
MitchesD 9fe29de260 Core/Player: implemented Heirloom Collection
* implemented all things related to that collection
* you can create heirloom by click on item in collection
* also you can upgrade heirlooms by using specific kits
* old heirlooms are converted to new ones
2015-10-16 23:09:42 +02:00
ShinDarth e9a4e4cfa4 Core/Misc split Rate.XP.Kill and Rate.XP.BattlegroundKill settings
(cherry picked from commit 2185165e84)
2015-10-16 11:32:06 +02:00
Shauren 45994a177c Core/Players: Check if player can enter the instance during login before trying to add him to map
* Fixes name displaying as "Unknown"
2015-10-15 23:29:19 +02:00
joschiwald cf1e80e3d0 Core/Misc: removed some useless map checks 2015-10-04 14:53:05 +02:00
Shauren 3fceabfa11 Core/Players: Fixed automatic learning skills gained from learning spells when leveling
Closes #15391
2015-09-29 00:11:26 +02:00
Shauren cd27fd38b9 Core/Maps: Moved corpse management to map level 2015-09-28 17:20:27 +02:00
Shauren 3bc3b67a8f Core/Player: Changed ranged weapons to be equipped in main hand slot instead of no longer used ranged slot
Closes #14675
Closes #15296
2015-09-27 00:06:08 +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 166e66cc06)
2015-09-24 23:58:26 +02:00
Trisjdc 93e77bfc7b Core/Players: Improve rest state handling, allow several rest states to be active
Fixes https://github.com/TrinityCore/TrinityCore/issues/15325

(cherry picked from commit c14b66c24c)

Conflicts:
	src/server/game/Entities/Player/Player.cpp
	src/server/game/Handlers/MiscHandler.cpp
2015-09-24 23:24:13 +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
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
Shauren 91f2bef235 Core/PacketIO: Fixed creature teleports not working clientside 2015-09-23 00:05:18 +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 3b52fcc769 Merge remote-tracking branch 'origin/6.x_implement_taxi' into 6.x 2015-09-19 17:41:24 +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
MitchesD 5a895f7759 Core/Player: moved player collections to separate class
* the idea is to have all collections (toybox, heirlooms, mount and later even battle pets) in one class to make it easier and don't increase size of already big Player and WorldSession class
2015-09-14 11:29:16 +02:00
StormBytePP 196f935cd8 Core/Taxi: Implemented taxi routes, thanks to @MitchesD patch for initial work, and @Shauren for IDA help
Conflicts:
	src/server/game/Entities/Player/Player.cpp
	src/server/game/Entities/Player/Player.h
	src/server/game/Handlers/TaxiHandler.cpp
2015-09-14 01:51:38 +02:00
Shauren 04de58c8d3 Core/Players: Changed multi-segment taxi paths to fly nearby
flight masters along the way, not directly through them

* Taxi cost on multi-segment paths is now charged per segment when it is started

Cherry-picked from commit 2056961aae (+fixes)
2015-09-13 17:23:37 +02:00
Shauren 1efb3f08e2 Core/Spells: Improved spell category cooldown handling
* Category cooldown is stored with the spell that started the cooldown (and only resetting cooldown on that spell will clear cooldowns on entire category - this fully mirrors client behavior)
* This significantly reduces the amount of data saved to database for cooldowns
* Spell casts from items that have a different category specified than on spell will now check for cooldown during the cast

Closes #15349
2015-09-10 19:39:30 +02:00