Commit Graph
28009 Commits
Author SHA1 Message Date
Shauren 2add03ab99 Build fix 2017-01-17 23:54:40 +01:00
Shauren 6767bbc95f Fix static analysis issues
CID 1291964
CID 1292775
2017-01-17 20:14:44 +01:00
joschiwald bc0d82a81e Core/DBLayer: Fixed copy paste mistake in 8e2634b2b4 2017-01-16 15:09:14 +01:00
Shauren e8273b7b37 Removed debug leftovers 2017-01-15 15:11:49 +01:00
Shauren 0314abc26a Build fix 2017-01-15 12:07:11 +01:00
Shauren f11e6c8247 Core: Updated to 7.1.5.23360 2017-01-14 22:37:13 +01:00
Aokromes 820c69ed8c Core/Scripts: update npc_eagle_spirit
By Malcrom
2017-01-14 15:09:09 +01:00
Aokromes b53513ec11 Core/Scripts: update to sharpbeak
By Malcrom
2017-01-14 15:06:14 +01:00
Aokromes 433162875d Core/Movement: Update MoveSmoothPath for flying creatures
By Malcrom
2017-01-14 15:03:47 +01:00
Shauren 8e2634b2b4 Core/DBLayer: Convert async queries to new query callbacks and remove old callback handling 2017-01-13 21:38:03 +01:00
joschiwald 0f432edc4b Fixed build
Closes #18816
2017-01-13 18:54:15 +01:00
Aokromes e3986d4a8a Script/Quest: Update Sharpbeak
By Malcrom
2017-01-13 04:51:37 +01:00
Shauren bf00ae90b6 Core/Spells: Fixed all cases of spells that crash the client when pressing ESC after being cast
(cherry picked from commit f765e8eb73a7eea550d6059f63327ae2f4ac7a14)
2017-01-13 01:01:09 +01:00
treeston 6c6f86d34c Instances/DrakTharonKeep: Fix Novos the Summoner. Fixes #17331.
(cherry picked from commit 813e33b92784831e418a41e3ea0080905bb6dabf)
2017-01-13 00:56:41 +01:00
ariel- 9371c5c7d1 Core/Script: moved SAI to cpp for The Etymidian, closes #17053 (#17330)
(cherry picked from commit f03dc799591afe9421b1970fa9b07465bf6ef312)

Rename 9999_99_99_99_world.sql to 2016_06_13_04_world.sql
(cherry picked from commit 90ba7fe938241b6900daaef950e89b58da1e514f)
2017-01-13 00:56:29 +01:00
Aokromes b52c1b35a5 Scripts/UtgardePinacle: Adjust King Ymiron boundaries
(cherry picked from commit cc521d49dc159d9f4fb043b815d44d33ac810375)
2017-01-13 00:44:14 +01:00
SnapperRy 2e5550758c Core/Movement: interrupt a creature's current cast when fleeing for assistance, and (if spell is not castable while moving) when running random/fleeing movement generators. (#17271)
Also make sure the creature is alive before updating.

Fixes #12823.
(cherry picked from commit 2db9269ec1c06b5fccc45dc0a5b4f714f9b48804)

DB/Creature: World Trigger (Not Immune NPC) InhabitType update

Closes #17332 by Malcrom
(cherry picked from commit 78d08834c0afe0be09e4ec071a6e6855aa18e2c8)

DB/Item: Fix text in Rune-Inscribed Parchment

Closes #17329 by tkrokli
(cherry picked from commit 8879545f21fe13650872358741b687a524cf8cb9)

DB/Quest: improve chaining for "The Ashenvale Hunt" quests

Closes #17323 by SnapperRy
(cherry picked from commit d034eedb811912546025d11a5e9335bcd6600464)

DB/trinity_string: wrong string about character customization + minor fix

Closes #17306 by lyn1337
(cherry picked from commit 0951e559ebe6b76abdfef55619244578d9917002)

DB/Quest: fix some completion/offer reward quest texts

Closes #17336 by SnapperRy
(cherry picked from commit e9025036b9848a5a684c57e3e066687c29fde321)

DB/Quest: add queststarters for "Regthar Deathgate"

Closes #17337 by SnapperRy
(cherry picked from commit 0b8921a0ef81fb7c4741248301b17a86fa0ffb69)

DB/Quest: fix chaining for "The Real Threat"

Closes #17338 by SnapperRy
(cherry picked from commit c9cb86d6c53ceb7331a1a5c1ff8a69f569cca426)

DB/Quest: fix repeatableness (or lack of) for some quests

Closes #17339 by SnapperRy
(cherry picked from commit b9f2e2a81b7f0a269da3a8f9597a4eca17899781)

DB/Quest: improvements for "Fool's Stout"

Closes #17340 by SnapperRy
(cherry picked from commit 4ec753dc50927e358a63a49a56cef7f5a72f41eb)
2017-01-13 00:07:43 +01:00
Snapper f8ca5fd40e Core/Quest: send SMSG_QUESTGIVER_STATUS_MULTIPLE after a quest is rewarded.
This updates the status of nearby questgivers and prevents them from being stuck in a state that's no longer valid (for example, stuck with yellow question mark until area update).

(cherry picked from commit 114f4c9715dd703f37440ef59fcf864fb8e6612f)
2017-01-12 23:52:56 +01:00
Keader b8757aa8e4 Core/Scripts Fixed Anubarak issues related with Leeching Swarm spell
(cherry picked from commit 3c35ce06af381cd416daad868c0f11709eb4855f)
2017-01-12 23:40:24 +01:00
tkrokli 34d310aff8 Core/Scripts: remove hardcoded text from npc_sayge
- remove hardcoded (and wrong) text from the script
- copy valid text from broadcast_text to gossip_menu_option
- gossip_menu / npc_text is already correct in TDB 335.61
- sort + clean up core script enum list and add new entries
- keep gossip handling unchanged in the script (low prio)

(cherry picked from commit 582af025090462f29576988e7a4517fee9a206fe)

Core/Scripts/DB: move npc_gregan_brewspewer to DB

- Remove npc_gregan_brewspewer, thereby removing hardcoded text
`#define GOSSIP_HELLO "Buy somethin', will ya?"`
- Move all gossip handling to DB (gossip texts already exist in TDB)
(cherry picked from commit 3acf6f36d1d60b7e2ac082bf9f6976de3256e250)

Core/Scripts: npc_grandmother gossip text moved to DB

Removing one more hardcoded text line from core scripts.
Also adding correct gossip to the npc_grandmother script.

Gossip changes in this script:
- remove hardcoded text from core script
- use existing npc_text IDs in gossip enum
- add missing text rows to gossip_menu_option
- use values from gossip_menu_option in enum
- replace spawn coordinates 0.0f with GetPosition()
(cherry picked from commit c214f987d730169e106b37fa1fe5f8565609374b)

Core/Scripts: remove hardcoded text from npc_locksmith

- remove hardcoded text from script
- move the gossip handling to DB SQL
- move the script conditions to DB SQL
- use correct gossip from broadcast_text
- remove options not existing in broadcast_text
- add Key to Searing Gorge option (related spell)
- add The Eye of Haramad option (related spell)
(cherry picked from commit e6ee6e2ae85f8a760dcd17e01b388bf3cd27c1e2)
2017-01-12 23:37:37 +01:00
Snapper 36a896e28a Core/SmartAI: delay SMART_ACTION_FLEE_FOR_ASSIST if creature is rooted/stunned.
Prevents creatures from teleporting around when fleeing while stunned/rooted.

(cherry picked from commit aaf10dccb09935e8618389df99b2f8616458cf6b)
2017-01-12 23:17:37 +01:00
tkrokli 4e00321970 Core/Scripts: boss_majordomo hardcoded text
2 more text lines removed in the ongoing series:
"Remove hardcoded text from core scripts".

Core script for boss Majordomo Executus:
- add missing gossip_menu_option entries
- link the options via the table gossip_menu
- remove hardcoded text from the script
- minor enum line order sorting cleanup
- replace OnGossipSelect() with sGossipSelect()

The scripted events are unchanged.
If the script is inaccurate, make a new PR.
(cherry picked from commit b6d43623a259f62ce0240a9e9f44f28e8c1ad5eb)
2017-01-12 23:16:41 +01:00
joschiwald 2b5d7eef3a Core/SpellScripts: Added helper method to validate spells 2017-01-12 23:03:08 +01:00
Shauren f8fe750b5e build fix 2017-01-12 20:00:02 +01:00
Shauren 73e61fa652 Core/DBLayer: Refine new query callback for chaining 2017-01-12 19:40:33 +01:00
tkrokli 52d0ec3ccb Core/Scripts: move npc_mountaineer_pebblebitty to DB
- move gossip text to DB and add quest condition
- remove core script npc_mountaineer_pebblebitty,
- thereby removing the file zone_loch_modan.cpp
- because the original core script dialog is incorrect

This version of the dialog can be verified from the following web pages:
- http://wow.gamepedia.com/Key_to_Searing_Gorge_quest_chain
- http://www.wowhead.com/npc=3836/mountaineer-pebblebitty#comments:id=332234

(cherry picked from commit 25881de7d3547c22eb76b2e0746f3c57484bca7a)
2017-01-12 03:40:16 +01:00
joschiwald 71ffdccb5a Core/Movement: enable item use and spell cast when dismounting
Remove error message and allow spell cast or item use from
mounted state on ground, especially when sitting on
a landed flying mount. Current behavior is that the player
will get the error message "You can't do that while moving"
when trying to cast a spell or pick up an item
while sitting on a flying mount after having landed.

By joschiwald, closes #6236

(cherry picked from commit 19aac66bc262a835cae288fc3d0ccdc8e93d0fb9)
2017-01-12 03:36:32 +01:00
treeston e2710bc232 Scripts/Instances: Fix a bug that would cause the Hodir encounter to never properly begin. Tagging issue #17302.
(cherry picked from commit e5382ee21538e4383a39b4dc0de274e856bb663b)
2017-01-12 03:19:38 +01:00
treeston 95902126a3 Scripts/Outland: Fix a potential crash. Closes #17308.
(cherry picked from commit 96c05dbec0de5dcff60cc7a97e1b35171f3a8930)
2017-01-12 03:18:07 +01:00
jackpoz 98d16d82be Core/Player: Fix duel edge case crash
Fix a crash that could be triggered if an aura removed after duel finished would have caused damage to one of the players.

(cherry picked from commit 7ff0f3c65fd0c068560351eac92e96a8527c96a7)
2017-01-12 03:13:55 +01:00
Aokromes 85b72b7b2b someone lives on the past :P 2017-01-12 03:08:48 +01:00
Aokromes a28768a9ad Missing part of c76226c 2017-01-12 03:07:19 +01:00
Aokromes c76226cc41 Script/Quest: Script Quest 24125 Rite of the Winds
By Malcrom, closes #18262
2017-01-12 03:06:14 +01:00
Aokromes 2c1394df84 warning fix 2017-01-12 02:53:09 +01:00
Aokromes 5317a81395 Core/Scripts: Sharpbeak update
By Malcrom
2017-01-12 02:50:07 +01:00
treeston 5e99388981 Scripts/Instances: More #16346 follow-ups. Fixed this time: Halls of Reflection, Ignis the Furnace Master, Mimiron and Rend Blackhand.
(cherry picked from commit 27a3eaab334176af6714f98c2eeb27d93334d226)

Scripts/MoltenCore: Fix Ragnaros (#16346 follow-up).
(cherry picked from commit 83e5df563876e037ecc35d5cb5c4e6d3a9ab2355)

Scripts/BlackrockMountain: Nefarian. (#16346 f-u)
(cherry picked from commit 650d7ab596bf956d146a147fdc938d3c6bdae022)
2017-01-12 00:28:10 +01:00
jackpoz 954b3c9617 Core/VMaps: Fix some vmap height edge cases
Fix Map::GetWaterOrGroundLevel() checking dynamic object only in phase 1 instead of current Unit phase.
Improve DynamicMapTree::getHeight() dynamic object check by casting the ray at +0.5f from the passed Z coordinate, this value will be tuned to improve even more the results.

(cherry picked from commit 1347d7cf7a8656f3db9d8b2f6e6d955e1fa8c129)
2017-01-12 00:13:55 +01:00
treeston 1a7b4fbe4d AI/SmartScripts: Add action_param3 "disablePathfinding" to SMART_ACTION_MOVE_TO_POS (69).
(cherry picked from commit 123e45c119b39ec36e5051bf83f52da2fa75f376)
2017-01-12 00:07:29 +01:00
treeston 1eb9f8edab Scripts/TotC: More follow-up to #16346. Also code style cleanup. Who names all their creature pointers "temp"?
(cherry picked from commit 4407877f365ff5ae69c30e18201f7d581990be87)

Compiler warning fix.
(cherry picked from commit 7fbd70d4c4a10a742bade4e33a132c0cf7996756)
2017-01-12 00:07:19 +01:00
treeston 8b4435c96c Scripts/Instances: Follow-up to #16346. Fix Illidan and Northrend Beasts.
(cherry picked from commit 4e922a5146889293078d59b881988506a8ac88f4)

# Conflicts:
#	src/server/scripts/Outland/BlackTemple/boss_illidan.cpp
2017-01-12 00:02:30 +01:00
treeston 20ef64c8d8 AI/PlayerAI: Fix potential edge case crash.
(cherry picked from commit 2d2544fab025689912bc94d39b41bd86540ec1be)
2017-01-12 00:02:30 +01:00
Trisjdc 781c5a3b82 Core/Creatures: Remove resetting of UNIT_FLAG_IMMUNE_TO_PC on combat clearing
(cherry picked from commit 34ef05ce0bfa34855ce33fcdf2bf82d257ae6672)
2017-01-12 00:02:30 +01:00
Keader 6ca75ef039 Core/Scripts Improve Felflame Infernal of Lord Jaraxxus fight (#16998)
(cherry picked from commit 43855b47d8f436bbf6dc5437446490bb02ea3a01)

Rename 9999_99_99_world.sql to 2016_06_02_01_world.sql
(cherry picked from commit 7f0e1caf72acb44a738b89037bf4f2555c4ca023)
2017-01-12 00:02:29 +01:00
Keader 7f2b5f3859 Core/Scripts Improve Jormungars fight
(cherry picked from commit 0912df258d722f867c8ebe8fc77310f4fd1ce38c)

Rename spell_snakes_spray for spell_jormungars_snakes_spray and cleanup
(cherry picked from commit 2c9c8afc0f23dada7599ecede4bf3d598ab42006)

Fixing the issue
(cherry picked from commit 81083a8593b846e5a64f59771c4446f9f29c34c3)

Changing remove aura method
(cherry picked from commit b88d49be2498ce484124c1adc2bc1ab5ac2aa176)

changing creature_text (tk feedback)
(cherry picked from commit 9b444877dd8955ee0cfcf9bf56304220c4c276fb)

Override and tkrokli again :D
(cherry picked from commit 7205b4dd65bd569e4b254586f6802199de447194)

Fix SQL name
(cherry picked from commit cae19692ab2b627b292cdeed59069d5f6fa3be30)
2017-01-12 00:02:29 +01:00
Snapper fbb9fc0228 Core/SmartAI: remove unneeded check for SMART_ACTION_FORCE_DESPAWN.
Gameobjects do not need to use SmartAI in order to be targeted by other entities' scripts.

(cherry picked from commit 9803e58392eea0828aac96cd79a794a77323d9d0)
2017-01-12 00:02:29 +01:00
Shauren fcabeed754 Core/DBLayer: Added new async query callback api 2017-01-11 23:45:03 +01:00
treeston 2b3cf3d480 AI/PlayerAI: Code style cleanup.
(cherry picked from commit e3aa19281f4d1e2437a5654715f75ae919bd4027)

Build fix for horrendous, outdated, non-standards-compliant compilers. Such as the one in VS 2013. I hate VS 2013.

Closes #17260.
(cherry picked from commit 321d35417d39bd2531c63c63cd432cf86d84453f)
2017-01-11 23:24:42 +01:00
treeston & Keader 0897042998 AI/PlayerAI: Finally implement cast logic for controlled players.
(cherry picked from commit 25c5570f4714a8e26f4f1c5e61a1dab7767c8fbc)
2017-01-11 22:41:30 +01:00
DDuarte 237e291c3f Core/World: Remove unused config CONFIG_SIGHT_GUARDER
(cherry picked from commit ca231cba0bb08f6fcf3747d634543c4c3264ca94)
2017-01-11 21:44:33 +01:00
Aokromes 940c522222 Update zone_hinterlands.cpp 2017-01-11 02:14:23 +01:00