Commit Graph

9779 Commits

Author SHA1 Message Date
Naios
80d77dfb46 Core/EventProcessor: Wait for non deletable events to get deletable.
* Immediate deletion caused issues with the SpellEvent,
  so we delete it at one of the next update ticks now.
* Only affects the unforced cancellation of events.
* Ref #16675
2016-08-10 09:04:55 +02:00
Naios
4065ba87c6 Core/Scripting: Don't force event cancellation when swapping creatures.
* EventProcessor::KillAllEvents(force = false) should only be used
  by the EventProcessor.
2016-08-10 09:04:38 +02:00
Aokromes
9264bfaf86 Core/Game: Remove some unnecessary export macros 2016-08-10 09:03:10 +02:00
Naios
a682a01270 Core/Common: Move the query callback header to the database project
* Also renames the header to it's correct name QueryCallback
2016-08-10 08:59:35 +02:00
Naios
c4e7dcc04d Core/Scripting: Kill pending unit events when swapping AI's 2016-08-10 08:58:56 +02:00
Naios
2ec212fdd1 Core/Scripting: Use the systems temporary path for caching shared libs
* Disables the shared library caching on platforms completely which
  never block files on usage (like linux).
2016-08-10 08:57:12 +02:00
Naios
8289ed64d6 Core/Scripting: Add the info how much time the system took to reload 2016-08-10 08:56:11 +02:00
Naios
b7ca3ad47d Core/Scripting: Improve the error message when the script reloader fails to create a cache entry
(cherry picked from commit 8fa52860ab)
2016-08-10 08:55:12 +02:00
Naios
d1e5084c27 Core/Scripting: Fix a typo in b970a684 2016-08-10 08:54:52 +02:00
Naios
65feb528e5 Core/Scripting: Wait until the debugger is detached before rebuilding scripts.
* Thanks Shauren for the IsDebuggerPresent() hint.
2016-08-10 08:54:26 +02:00
Naios
9eab8427cc 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)
2016-08-10 08:53:38 +02:00
Naios
273ee4f87f Core/Scripting: Fix an assertion which was triggered at lazy unloading
* Also fixes 2 warnings
2016-08-10 08:53:09 +02:00
Naios
785c17381c 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
2016-08-10 08:52:30 +02:00
Naios
293d51c8b0 Core/Scripting: Fix another warning when building statically 2016-08-10 08:43:32 +02:00
Naios
e23d063f5a 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-08-10 08:40:44 +02:00
Naios
3957fbf176 Core/Scripting: Fix a warning when building statically 2016-08-10 08:25:28 +02:00
Aokromes
0a40d49839 Delete file copied instead moved. 2016-08-10 08:00:21 +02:00
Shauren
f1c84639b5 Core/Misc: Warning fixes (/W4)
(cherry picked from commit c9ba5ce591)
2016-08-10 06:41:59 +02:00
Aokromes
436cdfd7c9 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-08-10 06:40:03 +02:00
Aokromes
e8e164e28f 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-08-10 03:29:20 +02:00
Aokromes
e27a5b7816 Core/Build: Provide an interface target for game
* Increases the build time because dependent projects can build
  without waiting for the game project.
2016-08-10 01:22:56 +02:00
Aokromes
7ef9b246b5 CMake: Use inherited dependencies in scripts
* Removes the circular dependency between game <-> scripts
2016-08-10 00:33:48 +02:00
Aokromes
fee20bf1d9 typo fix 2016-08-08 22:01:10 +02:00
Naios
dc4ff7a9f2 Dep: Add efsw (entropia file system watcher)
* Uses system API's which reduces the overhead
  instead of checking periodically for changes.
* Will be used in the hotswap system to reload
  shared libraries on changes.
2016-08-08 21:51:31 +02:00
Aokromes
8e95859a41 missing change 2016-08-08 21:08:58 +02:00
Aokromes
5302d9112b Core/Game: Converted the game library to a shared library.
* There is still the possibility to static link against game.
2016-08-08 20:11:29 +02:00
Aokromes
b2348b8915 CMake: Use inherited dependencies in database, shared and game 2016-08-08 18:07:57 +02:00
Aokromes
1c4054cde7 Add missing code 2016-08-07 23:49:43 +02:00
Aokromes
1de270f4e2 compile fix. 2016-08-07 23:46:26 +02:00
ariel-
879992e502 Update ObjectMgr.cpp 2016-08-07 21:52:26 +02:00
Aokromes
b10e5d5408 Core/Logs: Fine tune more logs
And move others to more logical appenders
2016-08-07 21:50:22 +02:00
Aokromes
20895a8631 Core/Logs: Fine tune another log 2016-08-07 21:50:05 +02:00
Aokromes
4231b2ba66 Core/Conditions: Add new CONDITION_PET_TYPE (45). Matches target player's pet against specified (value1) bitmask. 2016-08-07 21:49:25 +02:00
Aokromes
4d2527e05c Core/Conditions: Add new CONDITION_CHARMED (44). Does what it says on the tin. 2016-08-07 21:46:41 +02:00
Aokromes
a5a60286fa Scripts/Commands: Some adjustments to make shutdown commands more user-friendly.
- New error message if a shutdown is delayed due to force threshold.
- New status message indicating that a server shutdown was successfully cancelled.
2016-08-07 21:41:10 +02:00
Aokromes
340b0227bf Core/Logs: Fine tunning some logs 2016-08-07 21:28:07 +02:00
treeston
f8862f19f5 Scripts/SmartAI: Some clean-up work:
- NULL -> nullptr
- Rename "AssistPlayerInCombat(who)" to "AssistPlayerInCombatAgainst(who)" to reflect what the method actually does
- Code style

No functionality was changed.
2016-08-05 18:33:37 +02:00
Aokromes
11f46f2030 Core/Command: remove account_muted data on account deletion 2016-08-05 18:29:28 +02:00
Aokromes
7f71c2f70f Core/RBAC: Name some permissions from 3.3.5a 2016-08-05 18:25:18 +02:00
Aokromes
2e3db272e3 more missing overrides 2016-08-05 02:14:51 +02:00
Aokromes
c3537da1e8 revert incorrect change 2016-08-05 01:17:39 +02:00
Aokromes
69e1738554 Add missing overrides. 2016-08-05 01:12:48 +02:00
Rushor
2ec12775a1 [3.3.5] Beast Mastery hunter talent Animal Handler
The goal of this PR is to restore the correct AP values for a BM hunter:

Animal Handler, Rank 1
- Increases your pet's attack power by 5% and increases the duration of your Master's Call effect by 3 sec.

Animal Handler, Rank 2
- Increases your pet's attack power by 10%, and increases the duration of your Master's Call effect by 6 sec.

Viewed in talent calculator: http://wotlk.openwow.com/talent#cVbhzTGRb

by Rushor, closes  #15361
2016-08-04 20:57:02 +02:00
treeston
f95ca514e6 ScriptedAI/Creature: Fix a bug where a std::chrono overload was counting milliseconds instead of seconds. 2016-08-04 20:56:06 +02:00
Aokromes
ee2a8eafcf compile fix 2016-08-03 12:13:15 +02:00
ariel-
a69cbeb9d5 Core/PvP: Gameobject rotation in BGs and Wintergrasp.
- Add a workaround in BattleGround correcting for bad rotations in BG scripts
- Calculate rotation from rotation in Wintergrasp, this function hasn't a rotation parameter and should be added in the future.
- Also removed an ugly hardcode in Battlefield::SpawnGameObject

Closes #17711
2016-08-03 11:57:09 +02:00
jackpoz
242917e461 Core/Group: Do not allow a player to invite himself
Do not allow a player to invite himself in group.
Fix an edge case when inviting another player that would cause a crash.
Fix #17664
2016-08-03 11:56:29 +02:00
Aokromes
3ed49467ba Core/Chat: Split ChatLevelReq.Say into 3 2016-08-03 11:56:08 +02:00
Aokromes
d6915eb661 Typo fix 2016-08-03 11:50:11 +02:00
ariel-
4a5e0e2f35 Core/Battlegrounds: do not teleport GMs if out of bounds before starting 2016-08-03 11:49:50 +02:00