Commit Graph

21912 Commits

Author SHA1 Message Date
DDuarte
5299e25d25 Core/Items: Move Item::GetSkill to ItemTemplate::GetSkill
Also moved some methods of ItemPrototype to .cpp

Thanks to Yehonal for the original patch

Closes #16884

(cherry picked from commit 0257aa0528)

# Conflicts:
#	src/server/game/Entities/Item/Item.cpp
#	src/server/game/Entities/Item/ItemPrototype.h
2016-04-17 00:30:48 +01:00
Naios
bb7ac917fb Core/Scripting: Change the INFO logger of the hotswap system to enabled
(cherry picked from commit 1fe4e09d1f)
2016-04-17 01:19:32 +02:00
Naios
8fa52860ab Core/Scripting: Improve the error message when the script reloader fails to create a cache entry 2016-04-16 22:07:13 +02:00
Naios
5fa7127927 Core/Proto: Convert the proto project to a standalone shared library
* Fixes issues with dynamic linking on linux
* Closes #16981
2016-04-16 22:07:07 +02:00
tkrokli
d82a2cf471 Core/Scripts: zone_shattrath_city cleanup
- restore missing text lines for Sal'salabim and Raliq the Drunk
- replace hardcoded text with DB gossip ID enum sections
- move gossip ID, quest ID, spell ID (and so on) into enum
- remove core script for Ishanah, High Priestess of the Aldor

Closes #16684

(cherry picked from commit acdfc36a4e)
2016-04-16 19:05:32 +01:00
DDuarte
eaaee4b7c0 Core/Players: Fix flight form & fall damage (#16955)
(cherry picked from commit fcbbc60b93)
2016-04-16 18:35:30 +01:00
DDuarte
4e0b0e76c9 Core/Quests Fix Quests Borrowed Technology, Volatility and The Solution Solution (#16968)
(cherry picked from commit d1a053e4f5)

Rename sql

(cherry picked from commit 41e776fe64)
2016-04-16 18:22:35 +01:00
DDuarte
e8179e107b Merge branch '3.3.5-gluth' into 3.3.5 (PR #14865)
(cherry picked from commit b115458001)
2016-04-16 18:21:22 +01:00
DDuarte
00da19ed9e Merge remote-tracking branch 'sirikfoll/geddon' into 3.3.5 (PR #16975)
(cherry picked from commit 75f7b5ae4b)
2016-04-16 18:20:11 +01:00
DDuarte
98a8f539b4 Merge remote-tracking branch 'sirikfoll/bossAhune' into 3.3.5 (PR #14884)
(cherry picked from commit 37067ad390)
2016-04-16 17:20:57 +01:00
r00ty-tc
bf85d8d07f Solve many of the creature falling through floor issues.
This seems entirely wrong to discount the returned map height if we're
already below it. In many cases this is exactly why we want the height!

(cherry picked from commit 10550fe8cf)
2016-04-16 16:49:56 +01:00
Lopfest
ff3e176eb1 Core/Spells: enabled SPELL_EFFECT_160 (#16987) 2016-04-16 15:24:57 +02:00
Vincent-Michael
3cd19d3b30 Core: Removed Whitespaces 2016-04-16 12:19:23 +02:00
Henry Gordon
a4b0088671 Core/Instances: If a boss kills itself, still save the group to the instance (#16978) 2016-04-16 12:02:47 +02:00
Chaouki Dhib
3cbbcdb51a Core/Movement: Clean up and improvements on Unit::SetSpeed (#16843)
- Clean up of Unit::SetSpeed (mostly cherry picks from the 6.x branch):
- the opcode sent depends on the unit. until now, MSG_MOVE_SET_* were sent for every units which isn't like retail behavior.
- Removed the unused method parameter "forced" from Unit::SetSpeed
- Renamed Unit::SetSpeed to SetSpeedRate
- Removed the unused method parameter "forced" from Unit::UpdateSpeed
- Added utility method Unit::SetSpeed which take the new flat value.
(cherry picked from commit dc3327f9c5)

# Conflicts:
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/game/Handlers/MovementHandler.cpp
#	src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp
#	src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp
#	src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp
#	src/server/scripts/Kalimdor/zone_azshara.cpp
#	src/server/scripts/Kalimdor/zone_durotar.cpp
#	src/server/scripts/Outland/zone_hellfire_peninsula.cpp
2016-04-16 02:26:24 +01:00
treeston
213c6b73c8 Entities/Unit: Fix aggression checks when testing player pets vs neutral creatures. Pets will no longer be able to attack unattackable creatures in some situations. Fixes and closes #16659.
(cherry picked from commit bf4d8ad310)

# Conflicts:
#	src/server/game/Entities/Unit/Unit.cpp
2016-04-16 01:54:40 +01:00
Aokromes
0f867ab6d7 Update worldserver.conf.dist
(cherry picked from commit afaa8e2c60)
2016-04-16 01:53:01 +01:00
Shauren
9a799d7563 Core/Auras: Fixed a visual issue with combat log appearing to deal negative damage with SPELL_AURA_PERIODIC_LEECH if the spell does more damage than target has health (before calculating resist) and any damage is resisted.
Closes #16495

(cherry picked from commit f9697cb86a)
2016-04-16 01:31:59 +01:00
Dustin Paul
38cc1b902d Core/LFG: Readd players to queue when proposal fails because someone else declined it (#16279)
(cherry picked from commit bdeeab13bd)
2016-04-16 01:31:36 +01:00
Chaouki Dhib
d26b0419c3 Core/Movement: Added a wrapper method in MotionMaster for a unit to move toward another unit and stop once it reaches the target at a certain distance. (#16806)
(cherry picked from commit 97b053d203)
2016-04-16 01:31:15 +01:00
Shauren
c8b3ee3dd6 Core/Bnet: Fixed LoginREST.* address selection 2016-04-16 00:20:20 +02:00
Shauren
bf8637cf9d Core/Toys: Warning fix 2016-04-15 00:07:10 +02:00
Naios
8f78b1ed87 Core/Scripting: Fix a typo in b970a684
(cherry picked from commit ea627589d6)
2016-04-14 22:17:54 +02:00
Naios
19bf0513bc Core/Scripting: Wait until the debugger is detached before rebuilding scripts.
* Thanks Shauren for the IsDebuggerPresent() hint.

(cherry picked from commit b970a68473)
2016-04-14 21:30:52 +02:00
Naios
2038c31100 Core/Scripting: Disallow the build directory to contain spaces
* I wasn't able to work arround a path which contains spaces,
  since it seems like a CMake specific issue.
* Closes #16947

(cherry picked from commit 42eeb28a8b)
2016-04-14 21:30:43 +02:00
Naios
48776d9ce9 Core/Worldserver: Correct the default comment of HotSwap.EnableReCompiler
* Thanks jackpoz for noticing

(cherry picked from commit 9e43e50fa7)
2016-04-14 21:30:36 +02:00
Naios
ea4ac00ac7 Core/Build: Provide an interface target for game
* Increases the build time because dependent projects can build
  without waiting for the game project.

(cherry picked from commit ff8a54ab92)
2016-04-14 21:30:27 +02:00
Shauren
6536a5ecf7 Core/DataStores: Renamed unknown dbc field 2016-04-14 17:13:51 +02:00
Razi Alexis
462842a303 Fixed typo in worldserver.conf.dist (#16958) 2016-04-13 20:44:03 +01:00
Lopfest
5478647185 Core/Spells: Implemented spell effects SPELL_EFFECT_UPDATE_PLAYER_PHASE and SPELL_EFFECT_UPDATE_ZONE_AURAS_AND_PHASES (#16957) 2016-04-13 20:24:51 +02:00
Vincent-Michael
1c7515524d Core/Pets: Fixed issues reported by static analysis 2016-04-13 19:29:36 +02:00
Shauren
d16314e600 Typo fix 2016-04-13 18:32:27 +02:00
Shauren
51e2d7f997 Core/Toys: Check whether player has the toy he is attempting to use and if that toy has the spell that player is trying to cast 2016-04-13 17:35:03 +02:00
Naios
f4a19fe795 Core/Scripting: Fix detection of source changes when using inotify.
* This fixes the source change detection in linux.
* Also simplifies the detection of observed modules
* Fixes the script rebuilding on linux
* Escape windows paths to (maybe) fix paths with spaces (#16947)

(cherry picked from commit 10bc41c91e)
2016-04-13 14:00:07 +02:00
Naios
a3936c143d Core/Scripting: Fix an assertion which was triggered at lazy unloading
* Also fixes 2 warnings

(cherry picked from commit e82a934387)
2016-04-12 16:54:11 +02:00
Naios
89a3fc2167 Core/Scripting: Fix loading of spell/aurascripts
* Broken since 9cc97f226d
* There is still a crash when using lazy unloading which I
  will fix in a later commit (this commit should fix at least
  the static build and normal usage of the dynamic build).
* Closes #16948

(cherry picked from commit 410cf0dd05)
2016-04-12 15:43:27 +02:00
Shauren
fa74fa1f4d Config: Extended description of LoginREST.*Address values 2016-04-12 00:13:30 +02:00
Naios
dac0773759 Core/Maps: Fix non PCH build
(cherry picked from commit 131ef5f2d6)
2016-04-11 23:18:51 +02:00
Naios
926dfd1b57 Core/Scripting: Fix another warning when building statically
(cherry picked from commit 498c1e22ca)
2016-04-11 22:37:28 +02:00
Shauren
03d50a8d46 Warning fix 2016-04-11 22:14:51 +02:00
Naios
b88074086b Core/Scripting: Fix a warning when building statically
(cherry picked from commit 1b909f9dac)
2016-04-11 21:59:37 +02:00
Naios
9cc97f226d Core/Game: Rewrote the ScriptMgr to support script reloading.
* Finally this commit enables dynamic script hotswapping
  and finished the PR #15671.
* Split the storage layout to use optimized storages
  for database bound and unbound scripts.
* Add several unload workers to reload scripts correctly
  -> Requires further investigation.
* Fixes memory leaks in ScriptMgr when dropping invalid scripts.
* Fixes VehicleScripts
* Makes OutdoorPvP scripts reloadable
* Makes InstanceMapScripts reloadable
* Makes CommandScripts reloadable
2016-04-11 21:14:00 +02:00
Naios
bc0f2b6e5a Core/Game: Add a dynamic script reloader which reloads scripts modules on changes.
* is responsible for registering plain modules.
* requires compilation with the `WITH_DYNAMIC_LINKING` flag.
* requires further support of the ScriptMgr.
2016-04-11 21:13:59 +02:00
Naios
848b8a4136 Core/Scripts: Split script subdirectories into independent modules
* Makes it possible to define the linkage for every module
* Move the ScriptPCH into the root directory
* Changes the SCRIPTS cmake variable to a string type:
  -> -DSCRIPTS=0 is -DSCRIPTS="minimal-static" now
     (builds commands and spells statically)
  -> -DSCRIPTS=1 is -DSCRIPTS="static" now
     (builds all modules statically)
  -> -DSCRIPTS="dynamic"
     (builds all modules dynamically)
  -> Also the default value which is provided by the SCRIPTS
     variable is overwriteable through the SCRIPTS_COMMANDS,
     SCRIPTS_SPELLS... variable.
2016-04-11 21:13:58 +02:00
Naios
4710b1c8fe Core/Scripts: Move the ragefire chasm scriptloader into the correct file
* This commit targets 3.3.5 and just reduces the diff to 3.3.5 on 6.x.
2016-04-11 21:13:24 +02:00
Naios
3497b4960b Core/Common: Capsule boost process into helper functions
* For easier usage, the processes output it routed
  correctly to the TC logger line by line now.
* Add support for asynchronous process execution
  and process termination.
2016-04-11 20:07:24 +02:00
Naios
59e3cf82ac Core/Game: Move scheduled map scripts counter methods into MapManager
* Since those have nothing to do with core scripts and are
  not wished inside the ScriptMgr
2016-04-11 20:07:24 +02:00
Naios
26dcde94b3 Core/Game: Move MapScripts to game/Maps
* Since this class implements methods of the Map class
2016-04-11 20:07:24 +02:00
Shauren
c1c0253560 Build fix 2016-04-11 18:36:16 +02:00
Andrew Letson
45ea01fe5c Core/AHBot: Improve AHBot seller math (#16123)
Eliminates edge cases with low values that would round to zero
due to using uint32 in the calculation of sell price and buyout price.
2016-04-11 18:30:40 +02:00