Commit Graph
278 Commits
Author SHA1 Message Date
Shauren d20dedebd6 Core/DataStores: Updated db2 structures to 7.2.0 2017-04-06 23:39:34 +02:00
funjoker d26b865650 Core/Conditions: CONDITION_QUEST_OBJECTIVE_COMPLETE addition (#19355) 2017-03-29 23:18:30 +02:00
funjoker 945cfce1f6 Core/Conditions: Implemented new condition type CONDITION_QUEST_OBJECTIVE_COMPLETE (#18235)
Closes #17863
2017-03-20 08:54:29 +01:00
treeston 31a3f2297b Core/Conditions: New CONDITION_QUESTSTATE (47). It's the existing quest conditions collapsed into a bitmask value2 because I'm a lazy person that doesn't like having long SQL queries.
Then use this new condition to fix Sniffing out the Perpetrator for Horde. Tagging issue #17914.

(cherry picked from commit 62cffd11d0e9b33dd60cb5238f06d6dfd06415d8)
2017-02-26 15:31:42 +01:00
treeston 3a62ecb516 Core/Conditions: Add new CONDITION_TAXI (46). Does what it says on the tin. Tagging issue #15560.
(cherry picked from commit 08b383305146962f686af716c90f10776a12bc12)
2017-02-12 16:27:20 +01:00
treeston d2b5af3a52 Core/Conditions: Add new CONDITION_PET_TYPE (45). Matches target player's pet against specified (value1) bitmask.
(cherry picked from commit e9d4bbc74effad4b16de1a5514cea531f4e5e444)
2017-02-11 22:37:07 +01:00
treeston 12b58eae40 Core/Conditions: Add new CONDITION_CHARMED (44). Does what it says on the tin.
(cherry picked from commit 97855469678bce6101a927c3d0666267c7e4acc2)

# Conflicts:
#	src/server/game/Conditions/ConditionMgr.cpp
2017-02-11 22:36:54 +01:00
SnapperRy 06c7849aa1 Core/Conditions: implement CONDITION_DAILY_QUEST_DONE to check whether or not a daily quest has been completed by a player in that day.
Also use it to fix two quest chains broken in commit 7905651. Should be the only ones of their kind.

(cherry picked from commit b4b3c10c69f73a0fd1e8efe4fd8684676f33948d)
2017-02-05 21:07:30 +01:00
treeston dfaf4542e6 Conditions/ConditionMgr: Add a comment so MitchesD can go away.
(cherry picked from commit 759aae56ad5e51e24ff6127fa655d8294c7de059)
2017-01-09 02:00:10 +01:00
vincent-michael 86b98686a9 Update copyright note for 2017
Happy new year
2017-01-01 16:23:13 +01:00
Shauren d2733eb6f1 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-06-13 21:00:25 +02:00
Shauren f14c66b5e4 Core/Players: Updated talent specializations 2016-06-09 21:33:18 +02:00
Shauren de2efe0105 Core/Taxi: Implemented PlayerCondition requirements on taxi paths 2016-06-08 21:46:08 +02:00
Vincent-Michael 7eceba09d7 Core/Misc: Fixed warnings 2016-06-08 13:06:16 +02:00
Warpten 12f029d442 Core/PacketIO: Implemented new Cast HighGuid type and fix some mistakes with SMSG_MOVE_UPDATE_APPLY_MOVEMENT_FORCE
Core/Updatefields: Health is now stored as an unsigned long int.
2016-06-03 09:27:27 +02:00
Shauren 5c2c9a684f Core/DataStores: Updated dbc/db2 to 7.0.1.20810 2016-05-20 23:46:17 +02:00
MitchesD f636141345 Core/Phase: phase_area table now support even parent area (known as zone)
Closes https://github.com/TrinityCore/TrinityCore/issues/17025
2016-05-18 20:06:47 +02:00
MitchesD 192c428865 Core/ConditionMgr: condition CONDITION_SOURCE_TYPE_PHASE should not break on first phaseID which is equal to condition phase Id, it should iterate over all and check if more areas are trying to apply the same phase
* it's required for example for Wandering Isle quests

Closes https://github.com/TrinityCore/TrinityCore/issues/17054
2016-05-17 21:35:54 +02:00
Shauren c75fcbe20b Core/Achievements: AchievementMgr refactoring
* Extracted base CriteriaHandler class that deals with criteria only and will be reused for future scenario implementation
* Fixed players earning guild achievements
2016-05-07 01:16:29 +02:00
Shauren a168a2d442 Build fix 2016-04-08 22:08:23 +02:00
Treeston 42a01d62e6 Merge pull request #16457 from Treeston/3.3.5-standstatecondition
[3.3.5] Add condition for unit sitting/standing
(cherry picked from commit b6720af4cb59ea056f423011bae2e0ca5a3952d9)
2016-04-08 20:28:55 +02:00
Naios 329225b40d Core/Game: Move singleton instances into compilation units
* Fixes issues when building shared libraries
  (prevents gcc and clang from providing several instance)
2016-03-11 18:35:49 +01:00
ariel- 3a7f311547 Core/Conditions: fix a memory leak for CONDITION_SOURCE_TYPE_TERRAIN_SWAP
Reported by Aokromes.
2016-03-02 23:31:22 -03:00
Shauren db0b8bf24e Core/Maps: Changed the way area data is stored in maps, it now uses ID field from AreaTable.dbc instead AreaBit used for exploration marker (and is not unique anymore on top of simply being stupidly confusing)
Note: Extracting maps is required
2016-02-02 19:13:04 +01:00
Shauren 9ab47a1624 Warning fixes 2016-01-04 00:24:33 +01:00
Shauren be32e43fb9 Another warning fix 2016-01-03 00:58:37 +01:00
Shauren bb9c69b211 Warning fix 2016-01-03 00:55:48 +01:00
Shauren d9849fb87b Core/DataStores: Implemented checking PlayerCondition for future use 2016-01-03 00:40:18 +01:00
Vincent-Michael 478cc756eb Update copyright note for 2016
Happy new year (Again new year with idiots ...)
2016-01-01 00:34:25 +01:00
MitchesD cdb5bd3eb7 Core/Conditions: extended CONDITION_NEAR_CREATURE, condition value 3 is now used to check for dead creature entries (0 - alive, 1 - dead)
* I used 0 for alive to avoid touching all conditions with this type
2015-12-03 21:37:33 +01:00
Vincent-Michael d80f38ed4f Core/Condition: Remove unused code 2015-11-15 00:40:29 +01:00
Vincent-Michael 39a5844c6e Core: Fix warning
(cherry picked from commit d0c28c66eb294c2a8443054f76fbce7a309b6356)
2015-11-14 04:25:11 +01:00
Vincent-Michael 700508e484 Core/Condition: Fix issue reported by static analysis
Coverity defect ID: 1339314

(cherry picked from commit d1889602166b03a9c4dc07b6523410714ef3d1f6)
2015-11-14 04:24:51 +01:00
Naios b7b49fe35f Core/Globals: Use std::string rather than char* to pass script names around. 2015-11-04 20:52:13 +01:00
Shauren d8391f23b1 Build fix after cherry-picks 2015-10-31 00:05:09 +01:00
Shauren db0c48c17f Core/Conditions: Optimizations part 3 changed ConditionStore to a simple array 2015-10-25 13:35:45 +01:00
Shauren b09e63e9de Core/Conditions: Optimizations part 3 removed copying condition containers all over the place 2015-10-25 13:20:28 +01:00
Shauren 2cce998e90 Core/Conditions: Add const to methods not modifying ConditionMgr 2015-10-25 12:22:53 +01:00
Shauren e5c1e7d71c Core/Conditions: Optimizations part 2 removed unneeded code 2015-10-25 12:22:04 +01:00
Shauren 9fa938f3e0 Core/Conditions: Optimizations part 1 - use containers more suited for their role 2015-10-25 12:00:05 +01:00
Shauren 5e0cee85dd Core/Conditions: Type renaming 2015-10-25 10:59:58 +01:00
Shauren 52d5de1a7f Core/Conditions: Phase condtion changes
* SourceGroup defines which phase should the condition affect
* SourceEntry limits the area of the phase (alternatively 0 means all areas)
2015-10-25 00:22:21 +02:00
joschiwald cf1e80e3d0 Core/Misc: removed some useless map checks 2015-10-04 14:53:05 +02:00
Zedron ff755dbc07 Core/Conditions: Fixed a typo
Fixed a typo which caused implicit target conditions to only be applied to the first effect
bug was introduced in 926a37a
2015-10-01 02:05:25 -05:00
Kittnz 21e0880fba Core/Condition: Add In Water Condition
Updates #7019

(cherry picked from commit 5f8db047614a492dd178325b429839609d9f7fc5)

Conflicts:
	src/server/game/Conditions/ConditionMgr.cpp
	src/server/game/Conditions/ConditionMgr.h

Closes #15285

CONDITION_TERRAIN_SWAP (40) has been changed to 41 to keep compatibility with the 3.3.5 branch
2015-08-15 18:34:48 +01:00
Vincent-Michael 2e586bc520 Core: Header cleanup in game/*/*.cpp 2015-07-25 20:18:42 +02:00
DDuarte 2ce76a25c3 Fix build after recent cherry picks 2015-06-26 03:57:57 +01:00
ariel- 7ee455df59 Spell logging corrections
(cherry picked from commit fe83ecb2cfe610e608092d4a480339559d1e8f29)

Conflicts:
	src/server/game/Conditions/ConditionMgr.cpp
2015-06-26 03:27:29 +01:00
Shauren ca83e14f8b Core/Entities: Reworked guid scopes
* Added ObjectGuid traits to easily access whether guid type can be generated globally (ObjectMgr) or not
* This adds separate (per map) guid sequences depending on object type
* Ported map object container from cmangos/mangos-wotlk@a2d396eb0b
* Added type container visitor for TypeUnorderedMapContainer
* Implemented helper function to erase unique pairs from multimap containers
* Moved object storage of all objects except players and transports to map level
* Added containers linking database spawn id with creature/gameobject in world
* Renamed DBTableGuid to spawnId
* Added a separate spawn id sequence generator for creatures and gameobjects - this will be used in db tables
* Moved building SMSG_UPDATE_OBJECT - updatefields changes broadcast to map update
2015-04-28 21:19:46 +02:00
joschiwald 355928305a Core/Conditions: adjust logging code after recent phases changes 2015-03-30 16:08:48 +02:00