Commit Graph
28009 Commits
Author SHA1 Message Date
Shauren 4557aa8a1b Build fix 2017-03-21 21:48:56 +01:00
Shauren a1e3b54e07 Core/Utils: Changed all Trinity::Containers utilities to work on all container types (including arrays where it makes sense)
* Added MapGetValuePtr to allow writing `if (Val* v = MapGetValuePtr(map, key))`
* Added utility IteratorPair class with begin/end methods and MapEqualRange for use in range for syntax with multimaps
2017-03-21 21:04:01 +01:00
Traesh 9cc5273cd2 Core/AreaTriggers: Areatrigger rework script system + fix priest angelic feather
Closes #19171
2017-03-21 18:14:23 +01:00
AlcDenat 024ae15681 Core/Quests: Implement quest_request_items_locale
Closes #19331
2017-03-21 17:45:07 +01:00
DoctorKraft 76dd3ae368 Core/Spells: Fixed EffectActivateSpec for hunter pets
Closes #19325
2017-03-21 17:36:44 +01:00
Shauren fcb50c5e65 Core/Movement: Remove PLAYER_FLAGS_IS_OUT_OF_BOUNDS flag if player manages to move back in bounds (pretty much gms only) 2017-03-20 20:30:28 +01:00
funjoker 945cfce1f6 Core/Conditions: Implemented new condition type CONDITION_QUEST_OBJECTIVE_COMPLETE (#18235)
Closes #17863
2017-03-20 08:54:29 +01:00
Shauren d4176eb2f1 Core/Quests: Fixed loading areatriggers linked to quest by objective and expose ObjectMgr::GetQuestObjective to lookup quest objectives by id (for conditions) 2017-03-19 17:25:00 +01:00
Krudor 27bf4010b8 Core/Pakcets: vs2015/AppVeyor build fix
- missing TC_GAME_API for class PlaySpellVisual caused VS2015/AppVeyor builds to fail
2017-03-19 14:07:21 +01:00
Krudor 940c80e3e8 Core/Creatures: Use broadcast_text sound entry (#19321)
Currently if you use broadcast text, there is no sound because it
doesn't check the broadcast_text entry for it's sound id, it always uses
the creature_text sound entry.
2017-03-18 20:15:38 +01:00
Shauren 51207376b7 Core/Spells: Fixed Charge
* Implemented Glyph of Blazing Charge
* Implemented a way to compute spline position at any given point in time
* Removed incorrect ProgressCurveId handling, it needs to apply to entire spline duration not to each segment separately

Closes #19217
2017-03-18 20:14:26 +01:00
vincent-michael 5b638b76c1 Fixed typo in 182dba61db 2017-03-18 18:40:45 +01:00
vincent-michael 182dba61db Scripts/HowlingFjord: Fixed warning 2017-03-18 18:38:04 +01:00
Alexander 4b51c78ca1 Core/Scripts: Implement druid spells Moonfire & Sunfire and spell_druid.cpp cleanup
Closes #19293
2017-03-18 14:25:26 +01:00
AlcDenat c5c030ccc0 Core/Quests: Reimplemented quest offer reward locales
Closes #19242
2017-03-18 12:47:46 +01:00
Krudor 5a36a2eb17 Core/Scripts: Add support for spawn specific C++ scripts
Closes #19247
2017-03-18 11:31:31 +01:00
Traesh 01ded93a42 Core/AI: enable SmartScripts on Scenes + add scene related actions/events
Closes #19194
2017-03-17 21:21:35 +01:00
Krudor 77d1080ff5 Core/Criterias: Fix an old criteria condition and added some new ones
Closes #19246
2017-03-17 19:14:13 +01:00
Rochet2 769bc15ba0 Tools/MMapsGenerator: Use system supported threads instead of hardcoded amount (#19255)
- Use unsigned int for thread count
- Use std::thread::hardware_concurrency() to try estimate available threads instead of hardcoded 3 threads by default
- Print thread count always regardless of using --threads switch or not
2017-03-17 19:09:58 +01:00
Chazy Chaz c7ea1b97c2 Core/Config: Add option CharDelete.DemonHunter.MinLevel
Closes #19285
2017-03-17 19:08:38 +01:00
Chazy Chaz c31de25627 Core/Players: Rename "heroic character" to "death knight"
Closes #19286
2017-03-17 19:00:56 +01:00
Krudor 3df4135173 Core/Spell: Implement and use SMSG_CUSTOM_LOAD_SCREEN (#19310) 2017-03-17 18:50:11 +01:00
HannibalRoG 8a64f066a0 Core/Spells: Update Warrior Bloodthirst to 7.1.5
Closes #19315
2017-03-17 17:33:32 +01:00
Shauren bffd48c2f4 Core/Movement: Restored interpolated_* movement flags 2017-03-15 18:55:42 +01:00
Shauren 3731f4087b Core/Movement: Pass SpellEffectExtraData PointMovementGenerator 2017-03-14 16:36:10 +01:00
Shauren 9694d50546 Core/PacketIO: Fixed movement force structure 2017-03-13 19:51:26 +01:00
Shauren e927ce7385 Warning fix 2017-03-12 10:51:04 +01:00
Shauren fd0d0f25a9 Core/Spells: Fixed extra charge effect visuals 2017-03-12 00:40:52 +01:00
HannibalRoG a36f34af3d Core/Spells: Fix Priest spell Power Word: Shield
Closes #19199
2017-03-11 15:55:21 +01:00
edreisantafe 8434e87478 Core/Spells: Fix Warrior spell Shockwave
Closes #19102
2017-03-11 15:39:01 +01:00
DoctorKraft e13f82d18d Core/Spell: Fixed mage Ice/Prismatic/Blazing Barrier spells
Closes #19138
2017-03-11 14:57:48 +01:00
HannibalRoG 58b3f94667 Core/Scripts: Implement warrior spell Storm Bolt
Closes #19130
2017-03-11 14:11:26 +01:00
Lopfest 61547cab59 Core/SAI: added new action SMART_ACTION_PLAY_ANIMKIT (#19170) 2017-03-11 13:39:38 +01:00
Shauren fd256884d9 Core/Units: Fixed cherry-pick crash in Unit::GetUnitBlockChance
Closes #19270
2017-03-11 12:51:28 +01:00
Rochet2 80cf4e3070 * Scripts/Commands: Fix guid usage and enhance commands
- Fix targeting gameobjects and creatures for .dist and .gps. The old code used DB guid to search from core generated guid lists.
- Fix some error messages saying 'no player found' even if creatures and gameobjects and players were searched
- Change atoi to atoul when receiving lowguids as string or other uint32 values
- Use ObjectGuid::LowType instead of uint32 for lowguid type
- Allow .gob info to take in gameobject guid link as well as entry link in addition to gameobject entry and update the documentation of the command
- Change .gob delete to post the spawnid (dbguid) instead of the ingame generated guid (which is basically never seen or used by the player in any other commands that I see)
- Allow spawntimesecs to be negative when spawning a gameobject
- Disable searching by ingame spawn id in commands. (it makes little sense for a user to provide a number which is then attempted to be used as DB guid and non DB guid when both could have a match)
- Update .gob turn documentation to tell about possibility to provide orientation in command
- Correct the types in .gob add command result trinity_string
- Correct the creature search for .npc del
- Change .event to .event info
- Add .go offset command
- Remove the .go command for empty string (no subcommand given) because it just used .go xyz
- Extend .gob info to show size, faction, flags and model dimensions
- Remove some unnecessary casts
- Document .wp show better (first and last were not documented)
- Insert spawnid to .wp show info error message
- Fix spawntime printing for .gobject target
- Fix guid targetting for .npc set movetype
- Fix query by spawnid for .wp show info
- Fix deleting of existing waypoints when twice doing the command .wp show on
- Fix deleting of existing waypoints when doing the command .wp show off
- Change wpguid column in DB and in core to uint32, which is what the spawnid type is in core and db.

Closes #18978
2017-03-11 12:29:37 +01:00
Shauren 6067d19dfc Fix linux build 2017-03-08 19:22:48 +01:00
Shauren 7b235ce6e4 Core/DataStores: Refactor DB2 loaders to be reusable by extractors 2017-03-08 18:10:02 +01:00
ariel- f585c83124 Update Unit.cpp
Kill an unused parameter warning
2017-03-07 13:40:21 -03:00
Shauren d5133a64f6 Tools/vmapextractor: Fixed extracting gameobject models 2017-03-07 17:15:07 +01:00
ariel- 80a4f3c181 Update Unit.cpp
Kill unused variable warning
2017-03-07 12:16:23 -03:00
ariel- 8998c9ea95 Core/Auras: make transform auras honor creature_template trigger flag and choose always invisible models
Closes #19211

(cherry picked from commit 6ba0d489adbe2e93d3c9060944bb4c6f0d3d0259)
2017-03-07 01:30:55 -03:00
ariel- d20459f00e Core/Creatures: disabled "automatic" monster sparring
- Faction template flags weren't correct.

Closes #19245

(cherry picked from commit b2fc4c65eda779f880d9fc126d8b7aaef8c2ab25)
2017-03-07 01:30:41 -03:00
ariel- 3674356c9e Core/Unit: rewrite of the attack table system
- Removed a bunch of duplicated code
- Fix off-by-one errors in Unit::RollMeleeOutcomeAgainst and Unit::MeleeSpellHitResult (TC's combat table was actually of 100.01%)
- Implemented boss-level hit table (6.5% dodge/14% parry), bosses only had 5.6% of each until now
- Updated formula for chance and damage of Glancing hits

Sources:
- http://wow.gamepedia.com/index.php?title=Attack_table&oldid=2071465
- http://web.archive.org/web/20100903145646/http://www.mmo-champion.com/threads/650071-Expertise-Hit-for-Paladins-%28updated-for-3.3%29?daysprune=60

(cherry picked from commit 0c24e4ee0e1f0bbb37f740aa6f0d45c384ee955d)

Core/Unit: fix a copy/paste mistake

(cherry picked from commit 3bd5e0bf2fc3665d32ca08c96e7faccf2363429b)
2017-03-06 21:09:57 -03:00
joschiwald 53d535dfc9 Fixed build 2017-03-05 04:02:47 +01:00
Shauren 76a594d8be Core/Spells: Calculate hitMask and store it in DamageInfo/HealInfo structures
(cherry picked from commit 23902ff266c28fa83f3bab5646b3e5b93ab55380)
2017-03-05 03:19:41 +01:00
joschiwald 2ea8b3477c Fixed warning 2017-03-05 02:58:35 +01:00
Aokromes c170813b96 Scripts/Wintergrasp: Fix vehicle teleporter (#17550)
By WoWErrorDev, closes #5831.
(cherry picked from commit 308a2413a147063351fbb3590b367ea71b4dcd3d)
2017-03-05 01:39:26 +01:00
SnapperRy ba93c3b2a9 Core/Wintergrasp: fix leaving Wintergrasp via the minimap button.
(cherry picked from commit b60db6c44ec892c8d5efcf844afeb8bb57208e1b)
2017-03-05 01:37:22 +01:00
SnapperRy 0aa3aeebae Core/Wintergrasp: properly set and remove GO_FLAG_NOT_SELECTABLE from the Wintergrasp Relic, allowing the attacking faction to capture it.
(cherry picked from commit 63215dd15a740b9182a518bb5588ce69153f4e35)
2017-03-05 01:35:15 +01:00
SnapperRy b84d0e9fd4 Core/Conditions: implement CONDITION_WINTERGRASP_HORDE to check if Wintergrasp is held by Horde.
Use negative condition to check if it is held by Alliance instead.

Use this condition to fix availability of the Wintergrasp item-gathering weekly quests.
(cherry picked from commit 723c253f8f09d773cd0fd47615c9f424b5c51d9d)

Make travis happy and fix codestyle for previous commit.
(cherry picked from commit 7267a414183fce4e146d464e0a2124f617da9648)

Core/Conditions: partially revert 723c253, replacing CONDITION_WINTERGRASP_HORDE with a ConditionScript.
(cherry picked from commit fd620ca7d620f72276e00be3906da145bdd4a9fd)

Update 2016_10_04_03_world.sql
(cherry picked from commit 4891db4a4fb04c221a5223938741f981f1b7ddbc)
2017-03-05 01:28:45 +01:00