Commit Graph
100 Commits
Author SHA1 Message Date
Shauren 96faf78409 Core/Movement: Use correct root check 2019-05-12 01:26:20 +02:00
Shauren e610b8440c Core/Movement: Prevent rooted units from falling
* Fixes a client freeze

Closes #23042
2019-05-12 01:26:00 +02:00
Shauren 28da58ea8b Core/Misc: Fixed -Wcast-function-type warning 2019-04-29 08:45:26 +02:00
Shauren 2fb644344d Core/Dep: Boost 1.70 compatibility
(cherry picked from commit bcda8dd7421cfa1950a3e47081f2f28d032d38ac)

# Conflicts:
#	src/server/authserver/Main.cpp
#	src/server/shared/Realm/RealmList.cpp
#	src/server/shared/Realm/RealmList.h
2019-04-14 12:18:33 +02:00
Shauren 56d236c9f9 Build fix2 2018-09-09 14:55:26 +02:00
Shauren cf0614dd2d Build fix 2018-09-09 14:55:15 +02:00
Shauren 4bfd1314ba Core/CrashHandler: Include assertion messages in crash reports 2018-08-30 00:03:18 +02:00
Shauren 5a7a83f520 Core/Commands: Fixed .damage command to work with spell schools caused by bad strtok usage
Closes #22280
2018-08-20 04:45:08 +02:00
Shauren 9c87764612 Core/Players: Fixed saving quest item progress 2018-07-13 17:14:14 +02:00
Shauren 3ecf82f1a0 Common: Replace ip2nation by ip2location. (#21957)
Replace ip2nation by ip2location.

Download: https://lite.ip2location.com/database/ip-country

Core/Misc: Improved ip2location code and set it to disabled by default
2018-06-23 21:45:51 +02:00
Shauren fa54e9ab0a Core/DBLayer: Escape even more keywords 2018-05-22 02:11:56 +02:00
Shauren 7489781860 Core/DBLayer: Escape new mysql 8 keywords 2018-05-20 20:02:31 +02:00
Shauren 9fd67b7044 Core/SAI: Fixed crashes when SAI targets pets that use sai if not tamed
Closes #21870
2018-04-25 00:22:02 +02:00
Shauren 3c066b1ed3 Core/Players: Greatly simplifiy fdb2b90685ebc3852740c424170101a196c29ebb 2018-04-13 17:32:07 +02:00
Shauren 1c83dcac98 Core/Players: Prevent creating characters with duplicate name by reserving name early in the process
Closes #21656
Closes #21809
2018-04-13 17:31:54 +02:00
Shauren 723c5cb856 Core/Chat: Fixed chat link exploit
Closes #21790
2018-04-07 03:34:32 +02:00
Shauren e02dbdb176 Core/Misc: Build fix for some compilers
Closes #21705
2018-03-27 20:51:07 +02:00
Shauren 97bd2e2f2f Core/Movement: Fixed transport teleports on the same map (and teleporting on transports too) 2018-03-19 00:30:38 +01:00
Shauren b7e29526a2 Core/CrashHandler: Fixed generating crash logs from CRT debug assertions
(cherry picked from commit abdf6479ddbf42c8b53cb943c54203211ceb0691)
2018-03-10 23:49:43 +01:00
Shauren dde0239200 Buildsystem: Fixed finding openssl 1.1 libs 2018-03-06 21:06:58 +01:00
Shauren 523a2dccdc Revert "Collision/MMap: Fix a memleak reported by valgrind"
This reverts commit 32e8b6506fc064fdba134d692dfe99298e43f055.
2018-03-06 00:02:33 +01:00
Shauren bf2d223cc3 Build fix 2018-02-10 11:51:45 +01:00
Shauren c385edb12d Core/Scripts: Fixed ENSURE_AI assertion failures when used in Reset()/InitializeAI() hooks with hotswap
Updates #20727
2018-02-10 11:51:34 +01:00
Shauren 92003135da Core/Networking: Activate single threaded optimization for io_service running in NetworkThread
(cherry picked from commit 9711dd3f706a30d23f57b259765837b71292d09e)
2018-01-06 13:23:45 +01:00
Shauren be694109d5 Travis/CI: Always start mysql service
(cherry picked from commit 38baf3800b0506f3ee28238e3ee87d43be63ca76)
2018-01-01 16:14:19 +01:00
Shauren 83bee6000b Build: Fixed warning about disabling warnings 2017-12-17 14:17:51 +01:00
Shauren f7fd109066 Buildsystem: Fixed windows pch build with ninja
(cherry picked from commit a6e46c1c2ef491cd4cce39be47445e9da194e84e)
2017-12-14 09:49:56 +01:00
Shauren b8ca6a9045 Core/Spells: Fixed accessing freed memory after reloading spell_area 2017-12-03 17:12:31 +01:00
Shauren 088d678a9f Core/Items: Fixed sending unlocked items by mail
Closes #20976
2017-11-27 00:57:25 +01:00
Shauren d979329be3 Scripts/Events: Fixed memory leak in npc_bountiful_table added in 75df296bb6f8d30a65f669dab6af3d1b2d6046f7 2017-11-25 22:44:00 +01:00
Shauren 41fa77a301 Dep/jemalloc: Fixed valgrind intergration 2017-11-19 20:18:19 +01:00
Shauren 2ce760af40 Scripts/Sethekk Halls: Added missing empty check before Trinity::Containers::SelectRandomContainerElement
Ref #20317
2017-11-16 20:41:44 +01:00
Shauren 64d1facd40 Core/Taxi: Fixed applying reputation discount to first taxi segment
Closes #20713

(cherry picked from commit d7e463dd9f7c61e1056148cf8956bcb0f8fd1fed)
2017-10-26 03:08:14 +02:00
Shauren 0792f890a3 Core/Misc: Revert back to using boost::regex, std::wregex doesn't work for name validation
Closes #20094
2017-08-03 00:19:24 +02:00
Shauren 3f5f58ec6a Build fix 2017-07-29 15:23:08 +02:00
Shauren f699891b37 Core/Misc: Util changes
* Move IteratorPair to its own header
* Add AsUnderlyingType function to cast enum value to its underlying type (avoids repeating std::underlying_type everywhere)
2017-07-29 14:41:26 +02:00
Shauren e830489294 Core/Auth: Fixed client getting stuck on login or realm change 2017-07-21 21:22:56 +02:00
Shauren fc7b5201a4 Core/Auth: Prevent queueing more than one realmlist query at the same time 2017-07-12 19:25:33 +02:00
Shauren 2a68b6a0db Buildsystem: Exclude ScriptPCH from all targets when building dynamic scripts (except MSVC)
(cherry picked from commit 550c57a0df954ade238f6cd0318cfc6890dd26f0)
2017-06-25 14:17:28 +02:00
Shauren 1808fdd7b2 Buildsystem: Minor PCH building changes
* *PCH.cpp are now only compiled with MSVC, other compilers use custom helper commands to generate the precompiled header
* Don't call the linker for pch helpertargets

(cherry picked from commit 137f5e78877ef1b81f4dca68dd43268e325aeeed)
2017-06-25 14:16:31 +02:00
Shauren 3bf8426942 Core/Maps: Fixed initializing instance free ids when compiled with WITH_COREDEBUG
Closes #19931
2017-06-25 14:16:04 +02:00
Shauren 39356deeb9 Core/Vmaps: Fixed getting map height near large gameobjects like LK platform
Updates #19865
2017-06-09 13:29:41 +02:00
Shauren 38d1fc9ab3 Core/Utils: Changed all Trinity::Containers utilities to work on all container types (including arrays where it makes sense)
* Added MapGetValuePtr to allow writing `if (Val* v = MapGetValuePtr(map, key))`
* Added utility IteratorPair class with begin/end methods and MapEqualRange for use in range for syntax with multimaps

(cherry picked from commit a1e3b54e076bf0361d23ace53703a4e501354d7c)
2017-06-07 09:14:37 +02:00
Shauren 900a2da03d Core/Instances: Fixed and optimized instance id reuse 2017-06-06 08:00:10 +02:00
Shauren 0a61a3ffb5 Core/Groups: Fixed calculating canReset attribute
Broken in d6df19cd99.
2017-06-02 00:23:00 +02:00
Shauren 080fd33e13 Revert "Core/Groups: fix wrong query for loading group instance data. canReset attribute was calculated in the wrong way"
This reverts commit 0c1dd398bd.

Closes #19745
2017-06-02 00:22:46 +02:00
Shauren d8b9d2a9da Core/Misc: Prefix all preprocessor defines from CompilerDefs with TRINITY_ to avoid conflicts (PLATFORM_WINDOWS is used/defined by CascLib)
(cherry picked from commit b8db320bf14e327bcd12279871b914d8635ef122)
2017-05-26 14:49:55 +02:00
Shauren aa864d57f7 Core/Hotswap: Replace #ifdef conditions with comparisons of values defined in CompilerDefs.h
(cherry picked from commit 43510a258c83215efcf5e70a253523e8a4199502)
2017-05-26 14:24:42 +02:00
Shauren bba87cfeee Core/Auras: Allow passive auras from items to stack
(cherry picked from commit 8453d7dae25823dd5d2ecf2b718a469c0553214c)
2017-05-04 04:27:59 +01:00
Shauren 1f96c1f268 Merge 1e1fcd6847619629f4b6642faaccb81c4cf3755e 2017-05-03 17:26:32 +01:00
Shauren a9d5fab271 Core/Spells: Calculate hitMask and store it in DamageInfo/HealInfo structures 2017-05-03 17:14:00 +01:00
Shauren fd19577d7d Core/Spells: Name a spell attribute
(cherry picked from commit e88a5e4d6d34a7d319cf8a18d3522017bc9101c0)
2017-04-16 11:46:00 +02:00
Shauren ed95f9249b Core/Random: Remove no longer needed hack for VS 2013
(cherry picked from commit 59fe9087447dc58c3f41fb6f647bc2b50a95b9b5)
2017-04-14 13:45:21 +02:00
Shauren 3f048ca5fa Core/Auth: Per SRP6a protocol, terminate connection of A % N == 0. This resolves another authentication bypass issue
(cherry picked from commit cmangos/mangos-wotlk@ea3e08a812)
2017-03-15 23:37:24 +01:00
Shauren bc2221cd19 Add missing sql to previous commit 2017-02-19 09:12:24 +01:00
Shauren c7d5c24bfe fix typo 2017-02-10 05:26:49 +01:00
Shauren 9d4a1ddc10 Core/Maps: Adjusted WorldObject::GetGridActivationRange() to never be less than map visibility distance for active objects to ensure equal ranges for activation/deactivation of grids
Updates #19072
2017-02-10 05:26:38 +01:00
Shauren fae31bf07d Core/Auras: Prevent infinite stacking of passive auras with the same id from the same caster on the same target
Closes #18475

(cherry picked from commit 88676120586df7581677eca8d5e2724579c69482)
2017-02-10 05:25:16 +01:00
Shauren 043b4de635 Fixed clang segmentation fault in nopch mode
(cherry picked from commit 787adc24b2d1a7a3c03ecfed57de27631359ef65)
2017-02-05 01:54:34 +01:00
Shauren b80a8dd9fa Core/DBLayer: Refine new query callback for chaining
(cherry picked from commit 73e61fa652d1233bfff1db91fa2bca8c317c8caf)
2017-02-01 01:21:10 +01:00
Shauren 7f91c34200 Core/DBLayer: Added new async query callback api
(cherry picked from commit fcabeed7544285f3244465ccfc5337c59e63c6b0)
2017-02-01 01:20:52 +01:00
Shauren dc2deb8602 Core/Vmaps: Changed error message when loading outdated vmaps
Closes #18431
Closes #18857
2017-01-23 00:17:17 +01:00
Shauren bbcd694155 Fix static analysis issues
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-23 00:15:36 +01:00
Shauren 5ac6ed25d1 Core/Player: Removed unneeded distance check from Player::ActivateTaxiPathTo, it is already checked by HandleActivateTaxi* methods (and taxis started serverside should not have such requirements)
Closes #15398
2017-01-21 14:36:46 +01:00
Shauren 9401fd3621 Tools/mmaps_generator: Mak percentage progress slightly more accurate
#18832
2017-01-15 06:23:30 +01:00
Shauren 5ddf50bdee Core/Auras: Fixed removing auras triggered by aurastates
Closes #17868

(cherry picked from commit f94e6cee38241e10daed711247a18b8706cb8924)
2016-11-15 05:43:30 +01:00
Shauren a618a6b121 Core/Transports: Fixed crash added in b88cecb656c62cd3bcc3ae2a171b173eb64a28c9 2016-11-02 03:47:20 +01:00
Shauren bf19fe3e26 Core/Transports: Added extra transport position update just when it stops moving
Closes #17952
2016-11-02 03:46:52 +01:00
Shauren 93fd8f2511 Core/GameObjects: Fixed Frozen Trap target selection
Closes #14238
Closes #17517
2016-11-02 03:23:23 +01:00
Shauren a3e5afc027 Core/Spells: Calculate hitMask and store it in DamageInfo/HealInfo structures 2016-10-05 08:01:38 +02:00
Shauren f5a980be9b Core/Units: Clear UNIT_NPC_EMOTESTATE on death (blizzlike)
Closes #15263
Closes #18027
2016-10-04 18:07:59 +02:00
Shauren b1f20ced7a Core/Creatures: Exclude despawned creatures from being found by "nearest entry" searchers
Updates #11418
Closes #17706
2016-08-22 21:11:14 +02:00
Shauren a3d4957150 Typo fix 2016-08-22 20:54:59 +02:00
Shauren 89a630b1e4 Dynamic linking build fix 2016-08-22 20:53:56 +02:00
Shauren a778c8033f Core/Spells: Fixed possible null pointer dereference
Coverity CID 1357406

(cherry picked from commit cc07a491f64fa958c8a27079bd2def84c577f816)
2016-08-20 15:54:14 +02:00
Shauren f1c84639b5 Core/Misc: Warning fixes (/W4)
(cherry picked from commit c9ba5ce591a8b4ef5dc0e73d0ce107b6acf5e969)
2016-08-10 06:41:59 +02:00
Shauren ea918e1b69 Core/Utils: Added additional argument to Tokenizer class to make it behave like strtok - not returning empty tokens in case of multiple consecutive separators in input string
(cherry picked from commit dd1533b315bda37e1d43ebe0fb8bde87381c6e66)
2016-08-07 21:28:29 +02:00
Shauren 3d991107e2 Core/Commands: Cooldown command should fall back to targeting self in case of no valid selection 2016-07-20 19:34:45 +02:00
Shauren 792f48b554 Core/Commands: Allow .cooldown command to work on player pets 2016-07-20 19:34:04 +02:00
Shauren 286e796a55 Core/Quests: Failing/abandoning a quest should not unconditionally remove required items, non-quest specific items such as crafting reagents should remain in inventory 2016-07-20 19:31:30 +02:00
Shauren 8a5e7eba70 Core/Units: Fixed autoattack range
Closes #17539
2016-07-20 19:12:44 +02:00
Shauren 00cc84a51d And another typo fix 2016-07-20 18:44:49 +02:00
Shauren 6e755d05d8 Typo fix 2016-07-20 18:44:38 +02:00
Shauren 684fb69d0d Core/Spells: Fixed spell dest range check failing on 0 distance max range requirement even if standing directly on top of destination 2016-07-20 18:38:18 +02:00
Shauren fa7026cee3 Core/Spells: Fixed spell range check
Closes #17060
2016-07-20 18:26:18 +02:00
Shauren 05f11a46ba build fix 2016-07-20 16:05:51 +02:00
Shauren 5942d4da0a Core/Scripts: build fix 2016-07-20 14:15:04 +02:00
Shauren e58f0e805c Core/Units: Renamed and documented UNIT_FLAG_DISABLE_MOVE to prevent people from trying to use this flag to root a creature leaving them wondering why it doesn't do anything 2016-07-20 13:56:16 +02:00
Shauren 85e2bf54eb Core/Loot: Fixed resaving looted items from containers
Closes #15299
2016-07-20 13:51:07 +02:00
Shauren 1aed8daf9a Core/Spells: Implemented SPELL_ATTR1_DISMISS_PET
Closes #7372
2016-07-20 13:50:29 +02:00
Shauren f11a9a31c2 Core/Containers: Warning fixes and RandomResizeList with predicate optimization 2016-07-20 13:28:41 +02:00
Shauren 0233ced55e Core/Auras: Implemented auras SPELL_AURA_PREVENT_DURABILITY_LOSS and SPELL_AURA_PREVENT_DURABILITY_LOSS_FROM_COMBAT
(cherry picked from commit 17118f4832d527f160dc300a52db7ba6c255bce2)
2016-07-20 13:21:47 +02:00
Shauren 5c6802d509 Core/Spells: Fixed flat SPELLMOD_DAMAGE_MULTIPLIER calculation
(cherry picked from commit 35ab476f1691870a67c8ede78e9c37618f6bd383)
2016-07-20 13:04:59 +02:00
Shauren 0bf6e30f44 Build fix 2016-07-20 10:30:36 +02:00
Shauren a4498c7cab Core/Auras: Renamed fields of SpellProcEntry structure and change types to more appropriate ones 2016-07-20 10:25:03 +02:00
Shauren 60817bca50 Core/Random: Removed ancient and unused MAP_BASED_RAND_GEN 2016-05-12 09:22:46 +02:00
Shauren 763c1548f1 Core/Auras: SPELL_AURA_PERIODIC_LEECH can now properly overkill 2016-05-12 09:21:30 +02:00
Shauren f6824d1207 Core/Auras: Implemented AURA_INTERRUPT_FLAG_LEAVE_COMBAT
(cherry picked from commit d621023192a6480aa0f338908a353002fc6accf1)
2016-05-12 09:19:01 +02:00
Shauren af17e23204 Core/Misc: Fixed -Wmisleading-indentation warnings
(cherry picked from commit 3ac33163db2786cbd18f2158fc81d6ea9fa66316)

# Conflicts:
#	src/server/game/Server/Protocol/PacketLog.cpp
2016-05-12 09:10:53 +02:00
Shauren ff4da3acaa Core/Misc: Fixed warnings found by GCC 6
(cherry picked from commit 67fd3ee726cbd509e6a15f81f4780e757a78a8b5)

# Conflicts:
#	src/server/game/Spells/Auras/SpellAuras.cpp
2016-05-12 09:09:30 +02:00