aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-01-28Few small optimizations here and there (#18684)xinef1
Changes list: - Added CharacterGuidByNameContainer which contains name -> guid unordered map (updated along CharacterInfo) - Extended CharacterInfo structure with GuildId - Extended CharacterInfo structure with ArenaTeamId[3], for all possible teams (2v2, 3v3, 5v5) - Removed CHAR_SEL_GUID_BY_NAME and CHAR_SEL_CHAR_GUID_BY_NAME synchronous queries, name -> guid can be now retrieved in World::GetCharacterGuidByName - Removed CHAR_SEL_GUID_RACE_ACC_BY_NAME synchronous query, guid can be retrieved by name and rest of the data can be retrieved by guid - Removed CHAR_SEL_CHAR_LEVEL synchronous query, level can be retrieved by guid - Changed CHAR_SEL_CHARACTER_ACTIONS_SPEC to asynchronous query, action bars are now loaded asynchronously - Removed CHAR_SEL_CHARACTER_NAME_CLASS synchronous query, guid can be retrieved by name and rest of the data can be retrieved by guid - Removed CHAR_SEL_PLAYER_ARENA_TEAMS and CHAR_SEL_ARENA_TEAM_ID_BY_PLAYER_GUID synchronous queries, arena teams are now stored in CharacterInfo - Replaced synchronous db calls with CharacterInfo lookups - Removed ObjectMgr::GetPlayerGUIDByName, as it used db query - Replaced some unnecessary UpdateObjectVisibility() calls because they were either duplicated (called few lines above in other function) or it is enough to call DestroyForNearbyPlayers because object is being removed or should be invisible and DestroyForNearbyPlayers is faster - Corrected typo in Player::DestroyForPlayer, only items in slots 0 to EQUIPMENT_SLOT_END are sent to other players - Renamed Player::GetGuildIdFromDB to Player::GetGuildIdFromCharacterInfo and changed the function to use CharacterInfo structure - Renamed Player::GetArenaTeamIdFromDB to Player::GetArenaTeamIdFromCharacterInfo and changed the function to use CharacterInfo structure - Renamed Player::GetLevelFromDB to Player::GetLevelFromCharacterInfo and changed the function to use CharacterInfo structure - Removed GameEventMgr::_questToEventLinks and associated functions, eventId is now stored in Quest class under _eventIdForQuest variable - Changed some functions checking quest status to use other functions for quest status check instead of duplicating code - Removed callback from add friend, because we can get the guid from appropriate storage, no need to make db query - Removed callback from add ignore, because we can get the guid from appropriate storage, no need to make db query - Added callback to unwrap wrapped items asynchronously - Removed synchronous select in tutorials to check if we have any entries in db, if any entry exists in db, m_TutorialsChanged variable will have TUTORIALS_FLAG_LOADED_FROM_DB flag added and it is no longer necessary to query database
2017-01-27Core/Scripts: Removed double check of CheckRequiredBosses in SindragosaKeader
2017-01-27Core/Entities: Implemented CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATE (#18980)Keader
2017-01-27Properly clear focused target on evade (#18992)xinef1
Closes #18095
2017-01-27Core/Spells: Added very little tolerance level to completed casts to ensure ↵xinef1
that spell cast at target standing at the max possible range is finished properly even if target moves a little (#18969)
2017-01-27Core/Spells: Properly send autorepeat cancel packet to self and fix some ↵xinef1
problems with autoshot (#18918) Closes #13595 Closes #14460
2017-01-26Core/Auth: Use QueryCallbackProcessor insted boost::optional. Fixes build ↵Tonghost
for boost 1.55.0
2017-01-26Fixed unstuck mechanics (#18968)xinef1
2017-01-25Removed debug leftoversShauren
(cherry picked from commit e8273b7b37c86afe42f962f17a5e523e70d97f7d)
2017-01-25Build fixShauren
(cherry picked from commit 0314abc26a8d17cb630c658634b5ad292ece8a88)
2017-01-25Core/DBLayer: Convert async queries to new query callbacks and remove old ↵Shauren
callback handling (cherry picked from commit 8e2634b2b49eb814b8cc425a060b2f160dbb49b7) Conflicts: src/server/bnetserver/Server/Session.cpp src/server/bnetserver/Server/Session.h src/server/database/Database/QueryCallback.cpp src/server/game/Handlers/CharacterHandler.cpp src/server/game/Handlers/SocialHandler.cpp src/server/game/Server/WorldSession.cpp src/server/game/Server/WorldSession.h src/server/game/Server/WorldSocket.cpp src/server/game/Server/WorldSocket.h src/server/game/World/World.cpp src/server/game/World/World.h
2017-01-25Core/DBLayer: Refine new query callback for chainingShauren
(cherry picked from commit 73e61fa652d1233bfff1db91fa2bca8c317c8caf)
2017-01-25Core/DBLayer: Added new async query callback apiShauren
(cherry picked from commit fcabeed7544285f3244465ccfc5337c59e63c6b0)
2017-01-25Core/Packets: updated some contactlist packetsjoschiwald
(cherry picked from commit e01bb918875f88ede211fc13ff3908e30249de33) Conflicts: src/server/game/Entities/Player/Player.cpp src/server/game/Entities/Player/Player.h src/server/game/Entities/Player/SocialMgr.cpp src/server/game/Entities/Player/SocialMgr.h src/server/game/Handlers/MiscHandler.cpp src/server/game/Server/Packets/MiscPackets.cpp src/server/game/Server/Protocol/Opcodes.cpp src/server/game/Server/Protocol/Opcodes.h src/server/game/Server/WorldSession.cpp src/server/game/Server/WorldSession.h src/server/shared/Database/Implementation/CharacterDatabase.cpp src/server/shared/Database/Implementation/CharacterDatabase.h
2017-01-26Core/Scripts Fix issue with Lady Deathwhisper's doorGustavo
2017-01-24Core/SpellScript: Pass vector to ValidateSpellInfo by referenceariel-
2017-01-24Core/EscortAI: fix invalid iterator dereferenceariel-
2017-01-23Core/Scripts: implemented Gnomish Harm Prevention Beltariel-
Updates #18542
2017-01-23Core/Spell: build fixariel-
2017-01-23Core/Spell: unified handling of SPELL_ATTR5_USABLE_WHILE_* attributesariel-
Allowed mechanic mask is calculated on startup and auras checked against those mechanics Closes #18798
2017-01-23Core/Util: avoid one useless copy when adding stuff into a HookListariel-
2017-01-23Core/Spell: modified HitMask for new default procsariel-
2017-01-23Core/Spell: add more aura types to default procsariel-
Ref #18542
2017-01-23Core/Scripts: implement lightwell aura removal at 30% damagedariel-
Ref #18542
2017-01-23Core/Spell: removed some startup errorsariel-
Ref #18542
2017-01-22Core/Vmaps: Changed error message when loading outdated vmapsShauren
Closes #18431 Closes #18857
2017-01-22Core/Creature: revert turning state applyariel-
partial revert of 6b55faba065cd5d0519fb6e3e070a4a41d305cca Simply removing the unit state in Creature::ReleaseFocus causes #18549 again
2017-01-22Core/Creature: don't allow turning if spell would cancel due to turning to ↵ariel-
face target Closes #18549
2017-01-21Core/Scripts: Fix Lock and Load proc with Frost trapariel-
2017-01-21Core/Spell: consider spells with no targets for the purpose of finish procsariel-
Closes #18799
2017-01-21Fix static analysis issuesShauren
CID 1291964 CID 1292775 (cherry picked from commit 6767bbc95f46df4b62c8131a39a132d3f9bb8a26) Conflicts: src/server/game/Entities/Player/Player.cpp src/server/game/Spells/SpellHistory.h src/server/game/Spells/SpellInfo.cpp
2017-01-21Game/AI: Implement ContactDistance for ACTION_MOVE_TO_POS (#18720)Rushor
2017-01-21Core/Collision: fix no-PCH buildariel-
2017-01-21Core/Achievements: Greatly optimize achievement system by splitting large ↵Xinef
types by miscvalue Closes #18633
2017-01-21Core/Scripts: Fixed Crok event not startingKeader
[*] Fixed Svalna entering in combat with people ouside of room Closes #8186
2017-01-21Core/Pets: Disable pet interface for charmed units while mounted (#18607)xinef1
2017-01-21Core/Auras: Prevent remove of auras interrupted by turning if the turn could ↵xinef1
be caused by float calculation error (#18595)
2017-01-21Core/Units: Drop hostile world references that are out of our sight (fixes ↵xinef1
combat bug) (#18591)
2017-01-21Core/Vmaps: Stop M2s from occluding for spellcast LoSHelloKitty
Closes #18528
2017-01-21Core/Player: Removed unneeded distance check from ↵Shauren
Player::ActivateTaxiPathTo, it is already checked by HandleActivateTaxi* methods (and taxis started serverside should not have such requirements) Closes #15398
2017-01-20Revert "[3.3.5][master] Core/Movement: Smooth movement #13467 (#18020)" (#18888)Rushor
This reverts commit 28050f338dfc66e0c40b6a3915bf96e38e0613e5. Conflicts: src/server/game/AI/SmartScripts/SmartAI.cpp src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
2017-01-20Core/Spell: remove duplicated SPELL_AURA_MOD_DEBUFF_RESISTANCE handling.ariel-
Each spell had two rolls in which it could be resisted, effectively adding to the resist chance. Closes #7406
2017-01-19Core/Spell: Fixed Val'kyr Target Search exploitKeader
Closes #16347 by ariel-
2017-01-19Core/Spell: Fixed range issues with some quest spellsKeader
Closes #17815
2017-01-19Core/Spell: add missing null caster checkariel-
01d272d6cb348c968c531620c341f760e50cb97b follow-up Closes #18875
2017-01-15Core/Updater: Better log for fresh installationsAokromes
2017-01-14Tools/mmaps_generator: Mak percentage progress slightly more accurateShauren
#18832
2017-01-13Core/Scripts: Removed unneeded check in Blood Prince CouncilKeader
2017-01-13Core/Scripting: Fixed hotswap calling evade mode for dead creaturessirikfoll
2017-01-13Core/Objects: Fixed trap visibility for enemies. (#18815)ForesterDev
Closes #18251