Commit Graph
15155 Commits
Author SHA1 Message Date
SnapperRy eb75601a0c Core/Log: move an error to DEBUG level.
Prevents console spam in case of players canceling the cinematic at characters' first login.
(cherry picked from commit 1e2d55acf0c10fd9dd83e3cd075466702ba733db)
2017-03-04 19:01:41 +01:00
Shauren b8db320bf1 Core/Misc: Prefix all preprocessor defines from CompilerDefs with TRINITY_ to avoid conflicts (PLATFORM_WINDOWS is used/defined by CascLib) 2017-03-04 18:46:18 +01:00
Keader da0190f3d0 Core/Scripts: Fixed Gunship Mage cast interrupt
Closes: #14912

(cherry picked from commit 05c2fa2e0248a6b02d1ff49593b6069727f35ba3)
2017-03-04 00:05:55 +01:00
Treeston f02ff3bd6b [3.3.5] Azjol-Nerub rewrite
* Scripts/AzjolNerub: Complete rewrite.
- Gatewatcher:
  - Trash now actually engages properly one by one
  - Fix trash spell casting
  - Add missing quotes
- Hadronox:
  - Everything. Literally.
- Anub'arak:
  - Fix add spawns
  - Fix impale
  - OK this might as well be "fix everything with every boss". Because that's pretty much what happened.
- General hack cleanup

* Update and rename 9999_99_99_99_AZJOLNERUB.sql to 2016_09_25_01_world.sql

* Update and rename 2016_09_25_01_world.sql to 2016_09_25_02_world.sql

* Rename 2016_09_25_02_world.sql to 2016_09_26_02_world.sql

(cherry picked from commit 4b990eb7d7fda3951e640d84a5c18c90366cd26b)

# Conflicts:
#	src/server/game/Spells/SpellMgr.cpp
#	src/server/scripts/Northrend/AzjolNerub/AzjolNerub/azjol_nerub.h
#	src/server/scripts/Northrend/AzjolNerub/AzjolNerub/boss_anubarak.cpp

Update boss_hadronox.cpp
(cherry picked from commit 04ec868768d99c97f1cc4d064892bdeee2cbfb17)

Update boss_hadronox.cpp

I hate travis, learn from buildbot
(cherry picked from commit aeb20951bbac5453d5a4db22d23516ba8f948275)

I think I got all of them this time

No idea how this one got past travis.
(cherry picked from commit ae163197a765b294c0a325b6e893d216e1c5d050)

Fix nonPCH.
(cherry picked from commit e121d66fbb8edd68fcf027a05d47324757656228)

...for real this time (seriously - what happened to test builds before merging, Aok?)
(cherry picked from commit dbe0789eba03deb444f0f72e7e79e3be3763662a)

.....hail PCH
(cherry picked from commit 2528194cc1e481a6f002cc0663b12652e7e3de33)

and you get a header, and everyone gets a header...
(cherry picked from commit 5e5fe37a7ef2a76d7bd59250a7702af052a03d20)
2017-03-04 00:05:55 +01:00
joschiwald e465465c67 Fixed build 2017-03-03 23:28:12 +01:00
SnapperRy 6b8cb42b1e Script/Quest: Trail of Fire (#17939)
(cherry picked from commit 31e495f44c393f5162728b3bf902392f66fc872f)

Rename 9999_99_99_99_world.sql to 2016_09_25_03_world.sql
(cherry picked from commit 28968c61622da9c8831d8334bb25532a291a44eb)

DB/SAI: fix db errors introduced in 31e495f.
(cherry picked from commit 2452fb977b246629d50669cb646844b5e3b13cdd)

Core/Scripts: Fix build
(cherry picked from commit 6174091d761fa32591e1f6f8d01292813dd3ca2e)
2017-03-03 22:55:23 +01:00
joschiwald 2dfdaa49b4 Core/Auth: removed unneeded sub query
(cherry picked from commit ec221c550049a361e135b6adbf600c045a352296)

# Conflicts:
#	src/server/authserver/Server/AuthSession.cpp
2017-03-03 22:48:04 +01:00
tkrokli e13fadf8e9 Core/Scripts: move #define to enum/boss emote to DB (#17967)
boss_lurker_below.cpp : remove deprecated #define entries
- remove hardcoded text, use creature_text/broadcast_text
- move #define value & text reference to enum section
- replace TextEmote() with Talk() pointing to DB entry
(cherry picked from commit cd6fcce84b0aefb2f5d0494cbfdbb5bf25061f2f)
2017-03-03 22:31:29 +01:00
jackpoz 9d09307e34 Scripts/ICC: Fix chest loot exploit
Fix an exploit at chest loot bosses Valithria and Deathbringer that allowed the first played to hit them to leave party at low hp % and loot the whole chest alone, without the party being able to loot anything.

(cherry picked from commit c4865fe63ee4bb9d401d09cb9543acaf9c853b56)

# Conflicts:
#	src/server/game/Entities/GameObject/GameObject.cpp
2017-03-03 22:31:28 +01:00
SnapperRy df3e8cab12 Script/Quest: improvements for Let Them Eat Crow. (#17948)
(cherry picked from commit 275a53b34db20c576d119b6ad567d203996b895b)

Rename 9999_99_99_99_world.sql to 2016_09_24_06_world.sql
(cherry picked from commit 7a1f41077ff0d28dd5d4968a39496c5067e5cee7)
2017-03-03 22:31:28 +01:00
SnapperRy 3897de67a4 Core/Creature: update health/mana/damage/armor when changing a creature's entry while keeping the original level.
Fixes an issue introduced in a6ef9d4.

(cherry picked from commit 3d075da5049e382ba759b8a79d2fbd2df58da5c7)
2017-03-03 22:01:47 +01:00
tkrokli 958665ab2e Core/Scripts: move npc_lunaclaw_spirit to SAI
This PR moves the core script `npc_lunaclaw_spirit` to SAI, removing hardcoded text.
The quests 6001 + 6002 are druid class quests to get bear form, removed in patch 4.0.3a

Changes in this PR:
- remove core script, including hardcoded text (with typo)
- use gossip_menu_option for each faction (Alliance & Horde)
- add SAI script to complete quest 6001 or 6002 based on option
- add gossip option conditions for team A (469) or team H (67)
- add gossip option conditions for quest 6001/6002 not completed

(cherry picked from commit 3ad76dea7bdd889f016cce506833af7ed73d439d)
2017-03-03 21:57:23 +01:00
SnapperRy 6ad12301b4 Script/Quest: The Exorcism of Colonel Jules:
- Summoned NPCs will no longer give experience on kill.
- Require quests Fel Spirits and Digging for Prayer Beads to be completed.
- Reduce number of Foul Purges spawned in a single wave (only two should spawn each time).
- Properly give quest credit when talking with Colonel Jules after the exorcism.

(cherry picked from commit 0d70a7349d7b245adba72f9a15410a5b3d22dc77)
2017-03-03 21:55:01 +01:00
treeston 6a7ef793ca Scripts/IcecrownCitadel: Fix an issue where Deathbringer Saurfang's exit door could get stuck in a closed state. Fixes and closes #15018.
(cherry picked from commit 429700e614c27627becc50bcc45cfa5315b9d4ed)
2017-03-03 21:51:36 +01:00
Keader f6c9aff606 Core/Scripts: XT002 improvements in Hard Mode. Closes #17141. (PR #17900)
(cherry picked from commit 1f83412e4dacfa21754064c7a0a7690bb1363564)
2017-03-03 21:51:16 +01:00
Shauren 16698e5b25 Core/Movement: Defined many unknown MovementFlags2 2017-03-03 20:26:45 +01:00
treeston 8dc441ce49 Movement/SplineChain: Fix a potential critical bug where resume info returned during an edge case could fail an assertion when used.
(cherry picked from commit 55ac0186cc7b716a150f17daf755244cc58a6241)
2017-03-02 21:13:34 +01:00
treeston b12f19f066 Movement/SplineChain: Streamline the script workflow for resume info a bit, provide static method that does all the ugly pointer casts for you. Also prevent a nullptr dereference crash if scripts mishandle motionmaster, and canonize Chain == nullptr to signify "no resume info".
(cherry picked from commit d3214a0012cf93a5e66d1dc405ac90c4abc1b8c3)

d3214a0 follow-up for code style.
(cherry picked from commit 4deeee66bda390d2b35b64aaeb5924dac4170e10)
2017-03-02 21:10:00 +01:00
treeston ec9c5b19ac Map/InstanceMap: Ease up on a somewhat overzealous error message regarding instance saves.
(cherry picked from commit 820e8433917fe27c4a1093482532c6986b519e1f)

# Conflicts:
#	src/server/game/Maps/Map.cpp
2017-03-02 21:09:24 +01:00
treeston 019fc08feb Core/Movement: Fix a DB spline chain overload I missed in 2170541
(cherry picked from commit 3ec1b2f27ea7ecdaeb111958bf6f42fbf9ea191d)
2017-03-02 20:51:25 +01:00
treeston 205ec4c3bf Core/Unit: Standardize SetFacingTo and SetFacingToObject behavior while moving. Both now fail while moving unless arg2 bool is true.
Movement/SplineChain: Bump value range for DB chainId up to uint16 (0 to 65535) from uint8 (0 to 255). Turns out sniffs generate far more chains than I expected.

(cherry picked from commit 2170541a51ced3c15675b8854e0ae49461884f8c)

Code style follow-up, I blame Notepad++.
(cherry picked from commit 7860da0de6e53c7740862cae18840c9d399dda7f)
2017-03-02 20:47:29 +01:00
treeston b94642fb49 Instance/Naxxramas: Loatheb no longer instantly murders you. Five spam casts of Doom tend to do that to raids.
(cherry picked from commit 59527521e607058b99cff0d5831012980de08fd7)

5952752 follow-up: Member declaration now matches order of usage.
(cherry picked from commit 3298a5f65dcbd21e93ddbe0d5c83bc06076b9f60)
2017-03-02 20:44:41 +01:00
Shauren 2c27c5b5b9 Core/DataStores: Fixed crash in hotfix packet building
Closes #19218
2017-03-02 19:48:58 +01:00
treeston 59d48ce7e4 Core/Movement: Add new SplineChainMovementGenerator that allows accurate replication of sniffed waypoints in static sequences, along with DB facilities that allow loading of waypoints from DB.
(cherry picked from commit 6d00d3f28380dd0811a18913450b1dc4f07fef48)

Merge remote-tracking branch 'Treeston/3.3.5-splinechains' into 3.3.5 (PR #17946)
(cherry picked from commit 20f483967fb3a430fbd54148c08b6d8e8937daac)

Core/Movement: Add a convenience default ctor to SplineChainResumeInfo, and fix PCH build in some configurations (zzz why do we even keep Appveyor and Travis around).
(cherry picked from commit 4fa646c0b2ae3261e7fab249f4177900d4c8d013)

PCH build fix. Again.

(( Alright, you made me waste 20 minutes of my life on a full nonPCH rebuild of the core now. ))
(( I hope you're happy. ))
(cherry picked from commit 4a1a460241acf511467decd92d2a30e19927d74d)
2017-03-01 22:03:35 +01:00
tkrokli e4e1f4152f Core/Scripts: simplified npc_pet_trainer gossip script
This is what the script changes should have been in PR #17746
(also updates issue #14719 with a correct solution).

- remove OnGossipHello() to use DB conditions
- replace OnGossipSelect() with sGossipSelect()
- focus script on the confirming gossip option
- let the other gossip menus be handled in DB

(cherry picked from commit a475033c76c3a4dd58562fa7b4ccf14f2212977d)
2017-02-28 20:40:49 +01:00
Treeston 9b4ad0022b Map/Instances: Greatly simplify PermBindAllPlayers logic. (#17940)
(cherry picked from commit cf628880d586b049fa376e4533154d78d02a8ce8)
2017-02-28 20:25:20 +01:00
Shauren d4d8366131 Proper typo fix, it was too early in the morning 2017-02-28 10:58:35 +01:00
Shauren 5b4820cc0f Typo/build fix 2017-02-28 08:46:11 +01:00
SnapperRy 9da35aa3bd Core/Achievement: do not consider overkill damage for ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE.
(cherry picked from commit 4eb799560ccf340c3ec8313069c97f137c1e4a68)

Fix wrong copy-paste from last commit.

Sorry.
(cherry picked from commit c41b4000f9babb23df9d62952070a339174cf7b0)
2017-02-27 21:59:02 +01:00
Shauren c7cd51e8f5 Core/Movement: New names for a few spline flags 2017-02-27 19:30:44 +01:00
SnapperRy 87b6b9c27f Core/Creature: enable pet bar for TempSummons with category SUMMON_CATEGORY_PET.
Thanks @ariel- for helping with the research (although I'm two months late).
(cherry picked from commit 025002b90789e3f506e072e68cfa68c90eef296a)
2017-02-26 21:34:05 +01:00
SnapperRy 1b288ebbdd Core/SmartAI: do not target player's group for SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS.
SMART_TARGET_INVOKER_PARTY or SMART_ACTION_CALL_GROUPEVENTHAPPENS should instead be used to achieve this functionality.

(cherry picked from commit 6586885bcaf062c5f0fd6d6c7652b93c08e7c20c)
2017-02-26 21:31:16 +01:00
vincent-michael 7c12096df0 Core/PacketIO: Re-enabled SMSG_INITIAL_SETUP opcode 2017-02-26 21:06:10 +01:00
treeston 0b6422ab9b Maps/Boundary: Some code style clean-up in AreaBoundary code, as well as adding an additional utility overload to IsWithinBoundary (Position const&).
(cherry picked from commit a7afb476332b227dcb886a7ba727be7a226c37a4)
2017-02-26 20:02:25 +01:00
SnapperRy cab4ce3a53 Core/Fishing: implement retail-like fishing skill-up functionality (#17528)
Follow-up to  6f1e823.

Forgot to update base characters database. Sorry.
2017-02-26 19:59:07 +01:00
SnapperRy 29ce69b3ad DB/Quest: improvements for Test at Sea:
- Prevent player from entering combat when using the quest item.
- The targeted NPCs should only yell sporadically.
(cherry picked from commit 271c16fb60f7c0d3ada5d34e0dfc39eb8b1d2cb1)

Rename 2016_09_12_03_world.sql to 2016_09_13_01_world.sql
(cherry picked from commit 43968512ce88f0cbe37e23400437a753a84189ce)
2017-02-26 19:26:43 +01:00
ariel- fecf3b6143 Core/Spell: Updated SpellInfo::GetMaxTicks with all effects capable of periodics
(cherry picked from commit e0ba5f9ed6e4677b2999975d18d034a49d1c5745)
2017-02-26 19:22:21 +01:00
SnapperRy 83257dacf2 Core/Fishing: ignore required skill when fishing in pools.
(cherry picked from commit 4164e0cf88745a85b5b11587471b047fe0077fbb)
2017-02-26 19:21:19 +01:00
ariel- bf3570dadb Core/Spell: do not cast interrupt effect if the spell did not hit
(cherry picked from commit 08e0390d9503d4dd2b43dbe3224a70f3e76dec8c)
2017-02-26 19:20:36 +01:00
treeston 9039a1c138 Instance/UtgardePinnacle: Fix Svala Sorrowgrave timings (from sniff).
(cherry picked from commit 5d87e4af8cac5da0d6ad57c85c78fde08d7cae5b)
2017-02-26 19:20:13 +01:00
Aokromes 927a1b3e1e Core/Updater: Clarify more 2 errors
(cherry picked from commit fe9f79780e1a6dd14e0876dca54ef4d8c8a0a5ae)

Update DBUpdater.cpp
(cherry picked from commit fb048a4cdbd56102018db5c9149ca2103c1507b2)

Update DBUpdater.cpp
(cherry picked from commit 9250680680399e986736786bb6c3c2ff97ca5b9c)
2017-02-26 16:56:45 +01:00
treeston e39c582532 Core/Movement: Fix an edge case crash in HomeMovementGenerator.
(cherry picked from commit f2067d3557ccd7595f15cf526d81d2f19911cf3c)
2017-02-26 16:52:24 +01:00
joschiwald 7ee191578e Scripts/Spells: Updated two Anraphet SpellScripts 2017-02-26 16:38:22 +01:00
treeston e9b931e297 Entities/Object: Add some Position const& overloads to distance/angle methods for usability.
(cherry picked from commit 0e8c2f90320ad0dd3ef48ae324b64006d47ea0ca)

Woops. Thanks, clang.

Crash fix.
(cherry picked from commit 1b7eebc7ba211723fedcc38ac2adc9223ec2afad)
2017-02-26 15:49:01 +01:00
SnapperRy 1bb998f406 Script/Quest: replace wrong test spell used for quest "Red Snapper - Very Tasty!" with actual summoning.
The spell does not appear in sniffs, and the summoned NPC's spawn time was far too short to be appropriate (15 seconds).
(cherry picked from commit 0479f08c3c07c4de3af4d2293b80d690e4bdf646)

Script/Quest: fix and use proper serverside summon spell for quest "Red Snapper - Very Tasty!".
(cherry picked from commit 2f493430c9f029867eb1699c54de853e06e850d9)
2017-02-26 15:39:00 +01:00
Rochet2 117b45d768 Core/Scripts: Enhance quest status hook by making it catch more status changes (#17865)
(cherry picked from commit c52566a8881bdcd1cc33279e1a10621648cb664e)
2017-02-26 15:36:01 +01:00
treeston 9710c808d7 Core/Maps: Add override to allow InstanceMap const* -> InstanceScript const*.
Also tighten const-ness on CanSpawn method of CreatureScript.

(cherry picked from commit 3c32086b81ea85ddbb5920c11d9f30fbd0953ef6)
2017-02-26 15:33:46 +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 e941d7e04b Creature/Scripting: Move CreatureAI::CanRespawn to CreatureScript::CanSpawn. Now also applies to initial spawn. Dynamic spawning prep.
(cherry picked from commit b3d44d6c366c7e4f12a6ce30ee5cf6b9bff68a06)

Game/Scripting: Follow-up to b3d44d6. Fix script selection for creatures on difficulty > 0.
(cherry picked from commit 91c2b3162d350ab1a09053574ad67f45f089175b)

Build fix.
(cherry picked from commit a9f1151f2ca56394e315d0b07741c240ef59c2ff)

Fine, this time I actually built it. Promise.
(cherry picked from commit 0c2c88ed5025d9b51b6cbdf0603ceaf1ea54c80a)
2017-02-26 15:30:15 +01:00
treeston 9c36dd7e94 AI/SmartAI: Fix an issue where SmartAI creatures would not properly follow their owner on evade. Also fix a bug where creatures with INHABIT_ROOT would get stuck in evade under certain conditions.
This allows us to fix quest 12261 (No Place to Run). Closes #16291.

(cherry picked from commit e69a483aa942c1c6c4bd9b5fa47139f89643b8d5)

Derp. Build fix.
(cherry picked from commit 9180bcd404ff0a89144bbe834a2efe189bd0eb86)
2017-02-26 15:30:15 +01:00