Commit Graph

9764 Commits

Author SHA1 Message Date
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
Aokromes
56feab44d9 Core/Player: New PartyLevelReq setting 2016-08-03 11:49:01 +02:00
ariel-
35209adb87 Core/Spells: Abyssal Shatter should have a chance to skill up 2016-08-03 11:44:23 +02:00
Aokromes
da3f7d464c Core/PVP: Move report AFK requirement to config (#17699) 2016-08-03 11:42:59 +02:00
ariel-
a85dd54ce0 Update BattleGroundHandler.cpp 2016-08-03 11:26:49 +02:00
Aokromes
d1197ef166 Core/PVP: Improve log (#17698) 2016-08-03 11:25:57 +02:00
ariel-
aa53a0d71b Core/Spells: Define some aura types
(cherry picked from commit 802ebbe36a)

Conflicts:
	src/server/game/Spells/Auras/SpellAuraDefines.h
	src/server/game/Spells/Auras/SpellAuraEffects.cpp
2016-08-01 03:54:32 -03:00
ariel-
61c72215c3 Core/Auras: Renamed spell aura 333 to better describe its purpose
(cherry picked from commit c2f6c4d2bd)

Conflicts:
	src/server/game/Entities/Unit/Unit.cpp
2016-08-01 03:54:31 -03:00
ariel-
badef62df4 Core/Spells: ported helper function from 3f28fd304d
Core/Spells: Reimplemented automatic spell learning
2016-08-01 03:54:31 -03:00
ariel-
87f25be0aa Core/Spells: build fixes 2016-08-01 03:54:30 -03:00
ariel-
79b3fa5862 Core/Auras: Implemented SPELL_AURA_MOD_SPELL_COOLDOWN_BY_HASTE, SPELL_AURA_MOD_GLOBAL_COOLDOWN_BY_HASTE, SPELL_AURA_MOD_COOLDOWN_BY_HASTE_REGEN and SPELL_AURA_MOD_GLOBAL_COOLDOWN_BY_HASTE_REGEN
(cherry picked from commit 6c71c8694f)

Conflicts:
	src/server/game/Spells/Auras/SpellAuraDefines.h
	src/server/game/Spells/Auras/SpellAuraEffects.cpp
	src/server/game/Spells/SpellHistory.cpp
2016-08-01 03:54:29 -03:00
ariel-
0c51829cc4 Core/Auras: Implemented aura 321 SPELL_AURA_MOD_NO_ACTIONS
(cherry picked from commit 55d5cd37df)
2016-08-01 03:54:28 -03:00
ariel-
7c58e4cc08 Core/GameObject: misc type mismatch
(cherry picked from commit 4baa7f443a)
2016-08-01 01:29:58 -03:00
ariel-
30d4f70533 Core/Entities: debloat SummonGameObject parameter list using proper wrappers and enable GO rotation in scripts
- There's still an overload allowing for x, y, z, o to be passed directly
- Fixed default animstate for GameObject creation in many places, it should be 255, not 100 (checked in sniffs)

(cherry picked from commit 62bfee37cb)

Conflicts:
	src/server/game/Entities/GameObject/GameObject.cpp
	src/server/game/Entities/Object/Object.cpp
	src/server/game/Spells/SpellEffects.cpp
	src/server/scripts/Commands/cs_gobject.cpp
	src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp
	src/server/scripts/Kalimdor/zone_feralas.cpp
2016-08-01 01:23:47 -03:00
Aokromes
b51adac24c Core/GameObjects: Gameobject rotation (from cmangos/mangos-wotlk@2bcbc0f)
cmangos/mangos-wotlk@0fe88f3: [11531] Normalize gameobject's quaternion, thanks to zergtmn for pointing
cmangos/mangos-wotlk@060dfb7: [11667] Implement transport path rotation
cmangos/mangos-wotlk@565f52c: [11806] A bit gameobject code refactoring
cmangos/mangos-wotlk@6874951: [11807] Add gameobject_addon table
2016-07-30 15:51:23 +02:00
ariel-
d21eb7542a Core/Spell: fix one logic fail when calculating level penalty
(http://wow.gamepedia.com/index.php?title=Spell_power&oldid=1751770#Spells_learned_before_level_20)
2016-07-30 12:19:04 +02:00