Commit Graph

13876 Commits

Author SHA1 Message Date
Wyrserth
ce3dcdcb1a 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
2019-06-16 19:52:13 +02:00
Wyrserth
14c2bdc5da 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.
2019-06-16 19:46:00 +02:00
Wyrserth
d50be8e020 Core/Loot: fix some other cases where a creature should not be able to set focus. (#23415) 2019-06-16 19:27:53 +02:00
jackpoz
c90f789eac 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.
2019-06-15 20:49:34 +02:00
jackpoz
078c5a3e18 Core/Misc: Change some logs from INFO to ERROR when loading invalid creature template resistances and spells 2019-06-15 17:46:27 +02:00
jackpoz
4019cae375 Core/Player: Fix teleporting FlyPath dismounting the player
Issue added in 72fc79a9e6
2019-06-15 17:45:33 +02:00
Wyrserth
a1b2aa97fc Core/Loot: make Loot::AddItem() honor LootItem::AllowedForPlayer() so that items that cannot be looted don't prevent skinning. (#23408) 2019-06-15 15:37:32 +02:00
Wyrserth
00fdf6e99a Core/Loot: implement automatic pass in group loot for items that cannot be looted. (#23413) 2019-06-15 15:23:18 +02:00
Wyrserth
218055280a Core/Spells: don't allow spells with SPELL_EFFECT_CREATE_ITEM_2 to be cast if there isn't enough space in inventory (#23404)
* Core/Spells: don't allow spells with SPELL_EFFECT_CREATE_ITEM_2 to be cast if there isn't enough space in inventory,

* Move GetFreeInventorySpace() to a better place, thanks ccrs!
2019-06-15 15:11:49 +02:00
ForesterDev
865ab86173 Core/Entities: fix excessive damage of exotic pets and some creatures (#23403)
* Core/Conditions: implement CONDITION_GAMEMASTER

* Core/Entities: fix excessive exotic pet and some creatures damage
2019-06-15 15:09:52 +02:00
Wyrserth
0a24a6571b Core/Creature: prevent dead creatures from setting a focus target, so they won't turn when hit by certain spells. (#23367) 2019-06-15 15:03:09 +02:00
Giacomo Pozzoni
d5fb0a30ec 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
2019-06-15 14:46:31 +02:00
Wyrserth
e906a2fe7d 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!
2019-06-15 14:19:58 +02:00
Wyrserth
e6ad9b10cf 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) 2019-06-15 14:17:29 +02:00
Giacomo Pozzoni
678f3dd687 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
2019-06-15 14:15:22 +02:00
Wyrserth
2315d43b2c 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.
2019-06-15 14:13:19 +02:00
Giacomo Pozzoni
df92ceb9bc Core/Misc: Fix static analysis issues reported by Coverity Scan 2019-06-14 15:47:42 +02:00
Wyrserth
8d53d16d16 Core/Player: allow AutoStoreLoot to specify if the looted item should be shown as if created by the player. (#23400) 2019-06-14 15:06:39 +02:00
Giacomo Pozzoni
f177790618 Core/Misc: Fix static analysis issues reported by Coverity Scan 2019-06-14 10:13:46 +02:00
Keader
94b60ff0ef Core/Misc: Implemented Icecrown Citadel buff disable (#23394)
Closes #8576 
Closes #7940
2019-06-12 15:22:32 -03:00
Killyana
d7375ad33f DB/Quest: Protect Kanati Greycloud
Closes #7501
2019-06-09 21:44:37 +02:00
jackpoz
12de860b4a Scirpts/Commands: Fix crash in ".reload creature_template <entry>" 2019-06-09 18:58:03 +02:00
jackpoz
72fc79a9e6 Core/Player: Remove all Motion Masters when teleporting
Fix #22859
2019-06-09 16:33:27 +02:00
jackpoz
50ed1bb5b3 Core/SmartAI: Rename SMART_EVENT_HEALT_PCT to SMART_EVENT_HEALTH_PCT 2019-06-07 21:57:32 +02:00
Keader
136964769d Scripts/Icecrown Citadel: Fixed Heroic Attempts logic (#23379) 2019-06-07 08:18:48 -03:00
jackpoz
dbd8b3fc63 Core/Logs: Allow to log startup logs into Database appender 2019-06-06 14:39:29 +02:00
Wyrserth
5016f588d5 Script/Dalaran: don't allow Dalaran faction guards to teleport a player that has the Trespasser! debuff. (#23373) 2019-06-06 11:40:53 +02:00
Wyrserth
41931c069d Script/ZulGurub: implement several RP texts (#23358) 2019-06-05 23:01:38 +02:00
ccrs
fb28cee6ee Core/Log: 1f85348 followup
add missing logger entries
2019-06-05 21:53:40 +02:00
Wyrserth
1cb01700b1 Script/ZulGurub: allow Hakkar to cast Mind Control only if more than one unit is currently fighting him.
Also fix target type - it should always target the current tank.
2019-06-05 21:49:52 +02:00
ccrs
7b2defe5a0 Scripts/ZulGurub: general instance related refactoring/updating
plus couple event-spells-ai related corrections
plus codestyle cleanup
2019-06-05 21:43:55 +02:00
ForesterDev
1f853480ee 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
2019-06-05 09:09:17 +02:00
Wyrserth
b5e04c8920 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
2019-06-04 19:21:40 +02:00
Killyana
7dd87e3df4 Spell/Script: Stasis Field
Closes #23355
2019-06-04 18:25:21 +02:00
Wyrserth
65aea13c25 Script/GunDrak: fix order for yell and altar texts on death for two bosses (#23357) 2019-06-03 22:35:50 +02:00
Wyrserth
eb5d1d3248 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
2019-06-03 19:49:35 +02:00
Shauren
b64583b7c1 Build: Fixed dynamic PCH builds 2019-06-02 23:39:24 +02:00
Wyrserth
d71a0608bf 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.
2019-06-02 21:42:24 +02:00
Wyrserth
d365dd9157 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) 2019-06-02 21:40:55 +02:00
jackpoz
bda351d7f1 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 e79c595b69
Fix #23085
2019-06-01 15:59:52 +02:00
jackpoz
2d5387ea42 Scripts/HallsOfLightning: Fix Volkhan spamming in chat when wiping at 10% health
Ref #23082
2019-06-01 15:16:30 +02:00
Ovah
49a9cbf20a 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.
2019-06-01 08:39:06 +02:00
jackpoz
9c790e231e Core/Misc: Headers cleanup
Use simple std::string concatenation instead of stringstream to avoid including <sstream> header.
2019-05-31 21:45:37 +02:00
Giacomo Pozzoni
e12398afdc Core/Misc: Fix static analysis issues
Fix static analysis issues reported by Coverity Scan
2019-05-31 12:21:48 +02:00
Nitair
ee5101fbf7 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
2019-05-31 08:26:42 +02:00
Wyrserth
8bc5451864 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!
2019-05-30 20:07:46 +02:00
jackpoz
9da8123959 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
2019-05-30 19:50:00 +02:00
Wyrserth
88c6c61b95 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
2019-05-30 17:35:18 +02:00
jackpoz
7b8f294c02 Core/Channel: Sanitize channel names 2019-05-29 23:02:40 +02:00
jackpoz
f0bd90cc35 Core/Channel: Fix CRT Debug Assert triggered with invalid channel names 2019-05-29 21:12:50 +02:00