Commit Graph
28009 Commits
Author SHA1 Message Date
Sorikoff c8d0e0fd6d Scripts/Isle of Quel'Danas: Thalorien Dawnseeker (#23382)
* Scripts/Isle of Quel'Danas: Thalorien Dawnseeker

* Kill warning

* Kill warning

* Fixes

* Code style

* Code style

* Accident

* Prevent Out of Bound & spelling

(cherry picked from commit e87f8b1aacafb640fba19375dc0bcb8e34870534)
2021-12-11 14:51:31 +01:00
Wyrserth 7745e3f943 Core/SAI: add cooldownMin (event_param2) and cooldownMax (event_param3) to SMART_EVENT_ACCEPTED_QUEST and SMART_EVENT_REWARD_QUEST. (#23422)
(cherry picked from commit 50be697e1f3a56760e593b15bfbd576f4d370dcf)
2021-12-11 14:14:10 +01:00
Wyrserth 4c5ae42a63 Core/Creature: drop current target when evading while a spell cast is in progress (#23420)
* Core/Creature: drop current target when evading while a spell cast is in progress.

Closes #18373.

* Update Creature.h, thanks jackpoz!

(cherry picked from commit 5ac9b20fcfeccac906ff39109e94d77e811597a3)
2021-12-11 14:13:53 +01:00
Wyrserth e846d4c3ef Core/SAI: don't allow to start a new SAI actionlist while the entity is already running one. (#23421)
(cherry picked from commit 2b1cde25604b6400ac327801d8e1649e30688f5a)
2021-12-11 14:13:11 +01:00
Wyrserth ae43820ca0 Core/Commands: implement commands to look up a map/item/quest name for a given id (#23416)
* Core/Commands: implement commands to look up a map/item/quest name for a given id.

* Add entry to updates table.

* Rename 9999_99_99_99_auth.sql to 2019_06_16_00_auth.sql

* Add missed change, thanks jackpoz!

* Update auth_database.sql

(cherry picked from commit ce3dcdcb1ad1887fb3a531aaea09482c12b5e4f3)
2021-12-11 14:12:54 +01:00
Wyrserth 01be9f44af Core/RDF: fix counting issue with the achievement Looking for More (and similar) (#23418)
* Core/RDF: allow the achievement Looking for More (and similar) to increase the counter based on how many random players were picked.

* Use getter/setter instead.

(cherry picked from commit 14c2bdc5dac81f5f2b76d78b09c1224dbebcd8bc)
2021-12-11 14:12:54 +01:00
Wyrserth 3278f87789 Core/Loot: fix some other cases where a creature should not be able to set focus. (#23415)
(cherry picked from commit d50be8e020c235617cae6d85e214794c164a73c9)
2021-12-11 14:12:54 +01:00
jackpoz 134fa22510 Core/Unit: Ignore On Transport spline movements if the Unit isn't on a transport anymore
On Transport splines use coordinates relative to the transport but if the transport is not found anymore than there is no way to get the absolute coordinates, leading to relative coordinates being used as absolute instead. The result is a Unit being set at position (0, 0, 0) or close by.

(cherry picked from commit c90f789eac9092d5332e92242ed0bfab7fd9e9fe)
2021-12-11 14:12:54 +01:00
jackpoz 0c1f707ca5 Core/Misc: Change some logs from INFO to ERROR when loading invalid creature template resistances and spells
(cherry picked from commit 078c5a3e18227ad9f8bd2c1bcc7d48dd0122f801)
2021-12-11 14:12:53 +01:00
jackpoz 2d7ec53330 Core/Player: Fix teleporting FlyPath dismounting the player
Issue added in 72fc79a9e63d77754699a3da90d81219b2defb0d

(cherry picked from commit 4019cae375838e3bc653936fb9705d8df57ca571)
2021-12-11 14:12:53 +01:00
Wyrserth ef4d4e3d98 Core/Loot: make Loot::AddItem() honor LootItem::AllowedForPlayer() so that items that cannot be looted don't prevent skinning. (#23408)
(cherry picked from commit a1b2aa97fcb64be82050af037cec955ce361ccad)
2021-12-11 14:12:53 +01:00
Wyrserth 1c8f94a14f Core/Loot: implement automatic pass in group loot for items that cannot be looted. (#23413)
(cherry picked from commit 00fdf6e99a2516095889e13d4638efa049782ce5)
2021-12-11 14:12:52 +01:00
Wyrserth 59da957165 Core/Spells: don't allow spells with SPELL_EFFECT_CREATE_LOOT to be cast if there isn't enough space in inventory (#23404)
* Core/Spells: don't allow spells with SPELL_EFFECT_CREATE_LOOT to be cast if there isn't enough space in inventory,

* Move GetFreeInventorySpace() to a better place, thanks ccrs!

(cherry picked from commit 218055280af4563f28643e2683eafe40808f90db)
2021-12-11 13:29:39 +01:00
Wyrserth 264373bb65 Core/Creature: prevent dead creatures from setting a focus target, so they won't turn when hit by certain spells. (#23367)
(cherry picked from commit 0a24a6571b7065d66afe52fc7b0b00f6366272bf)
2021-12-11 13:06:44 +01:00
Giacomo Pozzoni 7a8d15d63b Core/CreatureTemplate: Outsourced resistances and spells into creatur… (#23343)
* Core/CreatureTemplate: Outsourced resistances and spells into creature_template_spell and creature_template_resistance

* Rename 2019_99_99_00_world.sql to 2019_06_15_01_world.sql

(cherry picked from commit d5fb0a30ec62f3799416326d81d5d14992f9a6df)
2021-12-11 13:06:25 +01:00
Wyrserth cc141e9bad Core/Group: implement automatic party/raid leader change when the leader has been offline for two minutes (#23398)
* Core/Group: implement automatic party/raid leader change when the leader has been offline for two minutes.

* Add #23396 to make testing easier.

* Prioritize assistants in raids.

* Fix dumb mistake and apply suggested change, thanks VincentVanclef and jackpoz!

(cherry picked from commit e906a2fe7d71fc17de9f7ea4778970beb3f9265e)
2021-12-11 13:06:25 +01:00
Wyrserth 7b346bcf8d Core/Loot: fix some issues with master loot and don't allow players to see soulbound recipes that they already learned in the loot window. (#23410)
(cherry picked from commit e6ad9b10cf381625ca1955cf6081ea1a8b14de11)
2021-12-11 13:06:25 +01:00
Giacomo Pozzoni 4e7727d575 3.3.5 game event respawn (#23391)
* Core/GameEvent: Remove respawn times of Creature and GameObjects when starting/stopping an event

* Add checks for pool

* Remove the check for pools

(cherry picked from commit 678f3dd687432b4229d903a8acfb882c2336e168)
2021-12-11 13:06:13 +01:00
Wyrserth 6b7bc82641 Core/Spell: allow Northrend Inscription Research to unlock three recipes the first time it is cast. (#23401)
Also prevent double skill-up because of duplicate UpdateCraftSkill() calls.

(cherry picked from commit 2315d43b2c1f478bd5f612e39f3a938bf6640ab6)
2021-12-11 12:06:54 +01:00
Giacomo Pozzoni 920a18c062 Core/Misc: Fix static analysis issues reported by Coverity Scan
(cherry picked from commit df92ceb9bc051444073a44eaf8c730357bb57355)
2021-12-11 12:03:43 +01:00
Wyrserth 81a8366ce5 Core/Player: allow AutoStoreLoot to specify if the looted item should be shown as if created by the player. (#23400)
(cherry picked from commit 8d53d16d162689f6034acf963406c7188f4a7f79)
2021-12-11 12:03:31 +01:00
Keader 42ad1b86a1 Core/Misc: Implemented Icecrown Citadel buff disable (#23394)
Closes #8576
Closes #7940

(cherry picked from commit 94b60ff0ef7ee908e9ab4660f6dce0dcfe3f13e8)
2021-12-11 11:59:54 +01:00
jackpoz ab3edebb5d Core/Player: Remove all Motion Masters when teleporting
Fix #22859

(cherry picked from commit 72fc79a9e63d77754699a3da90d81219b2defb0d)
2021-12-11 11:38:24 +01:00
jackpoz 1b6dee9990 Core/SmartAI: Rename SMART_EVENT_HEALT_PCT to SMART_EVENT_HEALTH_PCT
(cherry picked from commit 50ed1bb5b3d30936b844659b869fe66a0da7e04f)
2021-12-11 11:35:07 +01:00
Keader 79d4a0f8aa Scripts/Icecrown Citadel: Fixed Heroic Attempts logic (#23379)
(cherry picked from commit 136964769db509d1a2238f863d57e61651d97fae)
2021-12-11 01:27:48 +01:00
jackpoz 6303c7bcb1 Core/Logs: Allow to log startup logs into Database appender
(cherry picked from commit dbd8b3fc63d1b218df755f34fd7185553f2db3a5)
2021-12-10 22:49:10 +01:00
Wyrserth 88d5b91c05 Script/Dalaran: don't allow Dalaran faction guards to teleport a player that has the Trespasser! debuff. (#23373)
(cherry picked from commit 5016f588d5f20ef8eb0f3da9c3c92bbac8e132ee)
2021-12-10 22:47:33 +01:00
ccrs fb3b94dfe5 Core/Log: 1f85348 followup
add missing logger entries

(cherry picked from commit fb28cee6eeb97b722ebce54a444de9f13717752c)
2021-12-10 22:46:25 +01:00
ccrs 41dba7c456 Scripts/ZulGurub: general instance related refactoring/updating
plus couple event-spells-ai related corrections
plus codestyle cleanup

(cherry picked from commit 7b2defe5a0e645ab88e48df2d8e5417e4977d41c)
2021-12-10 22:45:42 +01:00
ForesterDev dd4da6ce5b Core/Logging: Split logs for unknown and zero triggered spells (#23180)
* Core/Conditions: implement CONDITION_GAMEMASTER

* Split logs for unknown and zero triggered spells

* Update SpellAuraEffects.cpp

* Update SpellAuraEffects.cpp

* Update SpellAuraEffects.cpp

* Update SpellEffects.cpp

* Update SpellAuraEffects.cpp

* Update SpellAuraEffects.cpp

* Update SpellEffects.cpp

* Update SpellEffects.cpp

(cherry picked from commit 1f853480ee07d22fdbe9782d600423bbd4ef4abb)
2021-12-10 21:41:50 +01:00
Wyrserth db6fdef3d7 Script/Quest: implement event for the quest Orabus the Helmsman (#23346)
* Script/Quest: implement event for the quest Orabus the Helmsman.

Thanks Wyreth for the original script.

* Fix coordinates that I inverted by mistake.

* Rename 9999_99_99_99_world.sql to 2019_06_04_04_world.sql

(cherry picked from commit b5e04c892084567ccbeacdb1500f0488f1eb48b8)
2021-12-10 21:38:27 +01:00
Killyana adb5535483 Spell/Script: Stasis Field
Closes #23355

(cherry picked from commit 7dd87e3df44c1c5b9b8ffb9652911d46d6676c38)
2021-12-10 21:37:45 +01:00
Wyrserth b6d28b5497 Script/GunDrak: fix order for yell and altar texts on death for two bosses (#23357)
(cherry picked from commit 65aea13c252b22003a41ff7f6fba7139b6681768)
2021-12-10 21:16:10 +01:00
Wyrserth 647893597c Script/Creature: implement spell effect for the item Prototype Neural Needler used on Imprisoned Beryl Sorcerer (#23349)
* Script/Creature: implement spell effect for the item Prototype Neural Needler used on Imprisoned Beryl Sorcerer.

* Rename 9999_99_99_99_world.sql to 2019_06_03_02_world.sql

(cherry picked from commit eb5d1d32485bc305e53d7a3229467050b02a1b0e)
2021-12-10 21:15:56 +01:00
Wyrserth b3e7be5387 Script/Creature: calculate Traveler's Tundra Mammoth's NPCs' exit position based on current player's position (#23344)
* Script/Creature: calculate Traveler's Tundra Mammoth's NPCs' exit position based on current player's position.

* Comment out unused argument.

(cherry picked from commit d71a0608bfa93b0733489fc138431ec0918220af)
2021-12-10 21:12:48 +01:00
Wyrserth d037c6b086 Core/SAI: add action_param3 to SMART_ACTION_REMOVEAURASFROMSPELL to allow it to remove only auras from spells that were cast by the entity itself. (#23345)
(cherry picked from commit d365dd915715d4608ae69fa54f094ab65f02e984)
2021-12-10 21:12:25 +01:00
Meji 0a8f79ad5a Core/BattlePets: Improvements when enabling battle pets (#27367) 2021-12-10 20:17:21 +01:00
Shauren 747da1f804 Core/Spells: Implemented SPELL_ATTR1_CAST_WHEN_LEARNED 2021-12-10 18:47:09 +01:00
jackpoz efbb6f5b7d Core/Map: Don't log errors about Area ID 0
Restore a check about Area ID 0 that would silently ignore this case instead of spamming log errors. Check removed in e79c595b695ea5f35b8324efbb7741ccb102bce9
Fix #23085

(cherry picked from commit bda351d7f1cb3ff663a9d231afa85864ea0f8078)
2021-12-09 00:32:48 +01:00
jackpoz 363f385fc0 Scripts/HallsOfLightning: Fix Volkhan spamming in chat when wiping at 10% health
Ref #23082

(cherry picked from commit 2d5387ea425fc4c31d664fcccad02c83a9f41aa0)
2021-12-09 00:32:32 +01:00
Ovah 0feebcdf5b Core/Groups: do not allow lfg groups to change the loot mode (#23336)
While the UI does not allow changing the loot mode you can still trigger the opcode by running interface scripts which we will now block as well so nobody can ninja-loot anymore.

(cherry picked from commit 49a9cbf20a483da006e45f2ff953583c75c689f0)
2021-12-09 00:32:17 +01:00
jackpoz b4652a38d3 Core/Misc: Headers cleanup
Use simple std::string concatenation instead of stringstream to avoid including <sstream> header.

(cherry picked from commit 9c790e231ef00c29a33b037ac2ae28d526474539)
2021-12-09 00:32:05 +01:00
Giacomo Pozzoni 33347c7d5f Core/Misc: Fix static analysis issues
Fix static analysis issues reported by Coverity Scan

(cherry picked from commit e12398afdc0ffa878b31af1dbd98fb0c995cf020)
2021-12-09 00:24:41 +01:00
Nitair f6048aca9a Scripts/Stratholme: Baron Rivendare rewrite (#22572)
* Adding last state of rivendare rewrite

* Fix aura beeing removed on reset, fix death pact

* Not needed

* SQL: Changed remove/inset into update, fixed delete at conditions part

* Typo

* Remove link spell, fix blank lines, change magic numbers to enum

* Test changes with SpellScript and DoCastSelf

* Revert SpellScript and moved DoCastSelf for the aura into UpdateAI part

* Damn, copyright.

* Fix Unholy Aura

* Fix again (does attack now / does cast if encounter resets)

* Adding handling of the aura to the db

* Rename 2018_99_99_99_world_335.sql to 2019_05_31_02_world_335.sql

(cherry picked from commit ee5101fbf74b0fa924a8467ee766b39c1d06875b)
2021-12-09 00:24:26 +01:00
Wyrserth 9d865f7536 Core/Misc: don't allow players to use/activate/loot non-allowed gameobjects while under the effect of a damage immunity aura (#23319)
* Core/Misc: don't allow players to use/activate/loot non-allowed gameobjects while under the effect of a damage immunity aura.

* Forgot to change this in last-second rename.

* Apply suggested changes, thanks Shauren!

(cherry picked from commit 8bc5451864570c07eff6d427846335044f85a509)
2021-12-09 00:13:59 +01:00
jackpoz 049606e31e Core/MovementGenerator: Add more details to asserts
Implement GetDebugInfo in MovementGenerator, PathMovementBase, FlightPathMovementGenerator, WaypointMovementGenerator.
Add an additional assert in FlightPathMovementGenerator::DoEventIfAny(), the input node must not be null

(cherry picked from commit 9da81239596bf798b1beafc5ddeaeb37dcc330ff)
2021-12-08 23:51:21 +01:00
Wyrserth 1edd93bc0c Core/Script: add script hook to allow overriding of a vehicle passenger's exit position (#23322)
* Core/Script: add script hook to allow overriding of a vehicle passenger's exit position.

* Allow to change orientation, and fix nopch.

* Keep original orientation, thanks jackpoz!

* Update Unit.cpp

Code cleanup

* Update Unit.cpp

(cherry picked from commit 88c6c61b95ac2b2f911b519136770479d31de27d)
2021-12-08 23:51:07 +01:00
jackpoz 2cade0e6e3 Core/Channel: Sanitize channel names
(cherry picked from commit 7b8f294c024230451f82ff67150e11fc31b61293)
2021-12-08 23:47:07 +01:00
jackpoz 97249ff7b4 Core/Channel: Fix CRT Debug Assert triggered with invalid channel names
(cherry picked from commit f0bd90cc35098475b20e736cf98885c99c04be3d)
2021-12-08 23:43:19 +01:00
Giacomo Pozzoni 6e28ecd22e Core/Movement: Fix assertion triggered in SplineChainMovementGenerator
Fix an assertion triggered in SplineChainMovementGenerator happening when a new generator is added while last spline of the SplineChainMovementGenerator is being processed but is not finalized yet.
Fix #23077

(cherry picked from commit 5d7f0eef6e2f89d5dbeb0a702f7a35c95626240e)
2021-12-08 23:35:01 +01:00