Commit Graph

26702 Commits

Author SHA1 Message Date
Naios
df80f1900d Core/Shared: Hide the internal shared_ptr of the TaskContext
* use . operator instead of -> to access the TaskContext now.
* Add TaskContext::IsExpired to check whether the owner has expired.

(cherry picked from commit 151a0f5c5e)
2015-06-03 18:37:41 +02:00
MitchesD
45eaeff553 Core/PacketIO: updated structure of SMSG_SPELL_INTERRUPT_LOG, SMSG_SPELL_ENERGIZE_LOG 2015-06-03 15:02:38 +02:00
Duarte Duarte
fb4a9823c4 Merge pull request #14723 from TrinityCore/findmysql-update
Update FindMySQL.cmake
2015-06-02 14:13:56 +01:00
DJScias
33ba6b74bd Core/PacketsIO: Updated and enabled SMSG_CHAR_CUSTOMIZE, SMSG_CHAR_CUSTOMIZE_FAILED
Closes #14789
2015-06-02 04:16:24 +02:00
Shauren
b15a0b96bf Core/Maps: Fixed MapDifficulty lookup for instances that do not have a selectable difficulty on interface (40 mans)
Closes #14366
2015-06-02 00:25:55 +02:00
DDuarte
23b8ddf433 Core/MMap: Fix two possible memory leaks in MMapManager
CID 1292777, 1292776 Resource leak
2015-06-01 03:25:17 +01:00
DDuarte
47a119e4fa Core/LootMgr: Remove dead validation code from LoadLootTable
CID 1288389 Operands don't affect result
2015-06-01 03:19:18 +01:00
DDuarte
b8c681c776 Core: Fix multiple Coverity issues 2015-06-01 03:03:05 +01:00
DDuarte
e43a6b373a Merge pull request #14613 from ariel-/shathalls
Fixed some issues with PR #14157
(cherry picked from commit 82a6cbcad4)

Included coverity fix of 25881ca95f (DD)

Conflicts:
	src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/instance_shattered_halls.cpp
2015-06-01 02:31:32 +01:00
jackpoz
a323ee5e62 Core/Misc: Fix issues reported by static analysis
Coverity defect IDs: 1023115

(cherry picked from commit 391c81d86c)

Conflicts:
	src/server/scripts/Commands/cs_npc.cpp
2015-06-01 01:04:43 +01:00
jackpoz
986deaa977 Core/Misc: Fix issues reported by static analysis
Coverity defect IDs: 1022861, 1022862, 1022863, 1302435, 1302439, 1302440

(cherry picked from commit 25881ca95f)

Conflicts:
	src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/shattered_halls.cpp
	src/server/scripts/Outland/zone_hellfire_peninsula.cpp
2015-06-01 00:57:41 +01:00
MitchesD
65dc69c17b Merge pull request #14777 from tkrokli/putricide_ooze_eruption
[3.3.5a][ICC/Professor Putricide] Volatile Ooze Eruption fix
(cherry picked from commit 43ae8727ac)

Conflicts:
	src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp
2015-06-01 00:54:54 +01:00
jackpoz
8cbdb7aa36 Core/CrashHandler: Log STACK_OVERFLOW crashes
Try to log STACK_OVERFLOW crashes by allocating log buffer on the heap which should still be in a valid state with a stack overflow exception.
This will probably still not produce a complete crash report with details about all stackframes.

(cherry picked from commit ec4b08e3cf)
2015-06-01 00:53:21 +01:00
Aokromes
b7fec85c5c Engrish to english CONTRIBUTING.md
By thumsoul
and clarify some things.
(cherry picked from commit adb5dbed80)

Conflicts:
	CONTRIBUTING.md
2015-06-01 00:52:18 +01:00
DDuarte
eeadf2964e Core/Spells: Fix invalid iterator usages in Spell::SelectSpellTargets()
Closes #14751
2015-06-01 00:27:28 +01:00
Shauren
ca9237fbcd Core/Players: Intellect no longer affects mana regen from spirit 2015-06-01 00:09:31 +02:00
Naios
9a999556ec Shared/Util: Introduce a task scheduler which schedules task with c++11 techniques.
* Use std::function as callback (methods, lamdas & std::bind).
* Uses std::chrono::duration as duration type (Milliseconds, Seconds...)
  - With c++11 user defined literals we could just write "11s" for example (MSVS 2015, gcc & clang).
* Provides a lot of overloads for easier usage:
  - Static durations or random durations between min and max.
  - Named (with group ids - group id 0 is possible) or anonymous tasks.
  - Asynchronous tasks.
* Is adapted to the current needs of scripting:
  - Repeat tasks through the TaskContext
  - Schedule new tasks from the context.
  - Provides access to the times repeat counter of a task,
    this will help to schedule multi step events (dialogs for example).

See https://gist.github.com/Naios/6d143538abdc3d32fd2b for usage examples.

(cherry picked from commit da77a90aa9)
2015-05-31 20:31:29 +02:00
Shauren
eee0eebf51 Core/Items: Implemented primary stats on gear changing with character specialization (stats 71-74) 2015-05-31 00:13:41 +02:00
Shauren
83df74e3dc Core/Auras: Implemented SPELL_AURA_MOD_STAT_BONUS_PCT (467) 2015-05-31 00:12:21 +02:00
Shauren
b0c4268a6b Core/Scripts: Corrected argument types in GetCreatureEntry/GetGameObjectEntry ZoneScript hooks 2015-05-30 22:33:29 +02:00
Shauren
bf37446b3c Core/GameObjects: Fixed GameObjectAddon loading 2015-05-30 22:32:28 +02:00
Shauren
2f0c293266 Core/Misc: Removed some old unused enums 2015-05-30 22:17:42 +02:00
MitchesD
0cf0209741 Merge pull request #14782 from doctaweeks/fixes-for-6.x
Minor fixes for 6.x
2015-05-30 19:34:25 +02:00
Shauren
12d59623ff Merge pull request #14803 from DJScias/guildinvitefix
Core/Guilds: Disallow sending invite to people already in a guild
2015-05-30 12:09:28 +02:00
DJScias
e9c9bee8b1 Core/Guilds: Disallow sending invite to people already in a guild
- In the case this would happen the player was able to join two (or more) guilds and bug themself out heavily
- If the player declined the invite, they instead were removed from their current guild until restart, this allowed the above to loop endlessly
2015-05-30 12:08:06 +02:00
Duarte Duarte
675ad4438b Merge pull request #14801 from DJScias/6xunbanacc
Core/DBLayer: proper 6x account unban
2015-05-30 02:09:52 +01:00
DJScias
709b77f9e8 Core/DBLayer: proper 6x account unban
- Thanks @Shauren
- Unbanning accounts in 6x should set unbandate = now
(UNIX_TIMESTAMP() instead of NOW() due to unbandate being an int, not a timestamp)
- 'Active' updates remain so the "account is not banned" checks continue functioning
2015-05-30 03:06:59 +02:00
Shauren
1987d3187d Buildsystem: Removed handling for -DPREFIX shortcut for -DCMAKE_INSTALL_PREFIX cmake option, it an internal cmake variable since version 3.2 2015-05-29 22:29:16 +02:00
Shauren
470d2bd458 Core/Quests: Implemented RewardXPMultiplier quest template field 2015-05-29 00:04:23 +02:00
glkrlos
c1bd3282f8 Core/Updater: Fix issues when connecting through unix sockets.
* closes #14766
* closes #14759

Signed-off-by: Naios <naios-dev@live.de>
2015-05-28 18:28:04 +02:00
Daniel M. Weeks
b6e926fa2f Remove unnecessary semicolons 2015-05-27 21:16:06 -04:00
Daniel M. Weeks
7e474418d8 Mark overriding functions 2015-05-27 21:13:48 -04:00
Daniel M. Weeks
3e1afa6386 Fix annotations 2015-05-27 21:13:43 -04:00
Daniel M. Weeks
6d0710967c Remove duplicate include 2015-05-27 21:13:37 -04:00
Daniel M. Weeks
0b826e09e0 Mark static variables 2015-05-27 21:13:31 -04:00
Shauren
d7c53c30fb Core/Stats: Removed bonus max mana from intellect 2015-05-28 00:47:41 +02:00
Rushor
24db69b342 DB/Quest: Breakout!
closes #14475
2015-05-27 22:02:16 +02:00
Shocker
cc3ddf23ce Core/Spells: Fix spell scripts for effect hooks greater than EFFECT_7 2015-05-27 18:33:51 +03:00
Warpten
8c75402199 Merge pull request #14778 from DJScias/addonprefix
Core/PacketsIO: Updated and enabled SMSG_CHANNEL_NOTIFY, CMSG_CHAT_RE…
2015-05-27 17:23:04 +02:00
DJScias
b5aebf40a8 Core/PacketsIO: Updated and enabled SMSG_CHANNEL_NOTIFY, CMSG_CHAT_REGISTER_ADDON_PREFIXES, CMSG_CHAT_UNREGISTER_ALL_ADDON_PREFIXES
- Thanks to @MitchesD for all his help, you're awesome!
- Packets have been sniffed & parsed and they all check out.
2015-05-27 16:56:06 +02:00
Shauren
fe52844012 Core/Quests: Defined missing quest objective type 2015-05-27 01:12:53 +02:00
MitchesD
1f71eb7210 Core/Packets: fixed logic fail caused by misunderstanding of multistrike
* when multistrike is implemented, we have to do some changes here
2015-05-27 00:23:31 +02:00
MitchesD
ca5ea3c85d Core/PacketIO: updated structure of SMSG_SPELL_PERIODIC_AURA_LOG
* debug info is no implemented since we don't know the right usage
2015-05-26 21:51:01 +02:00
Shauren
735606bc73 Core/DataStores: Load AnimKit.dbc to validate anim kit usage 2015-05-26 00:04:47 +02:00
DDuarte
a66cbab73b Core/Channel: Update enum ChatNotify 2015-05-25 01:28:54 +01:00
Shauren
acd4b6fb50 Core/Entities: Allow all object types to use anim kits, not only players/creatures 2015-05-25 01:50:03 +02:00
Duarte Duarte
fc85f0e30f Update worldserver.conf.dist
Fix typo in ClientCacheVersion
2015-05-24 23:20:40 +01:00
MitchesD
3552c4bd72 Core/PacketIO: updated structure of SMSG_ITEM_COOLDOWN, SMSG_ITEM_ENCHANT_TIME_UPDATE 2015-05-24 22:06:58 +02:00
Shauren
c44273ec93 Core/Achievements: Implemented ACHIEVEMENT_CRITERIA_TYPE_RECRUIT_GARRISON_FOLLOWER 2015-05-24 02:23:49 +02:00
Shauren
61b0889e6c Core/Garrisons: Fixed loading building spawns when logging in on garrison map 2015-05-23 12:09:23 +02:00