Commit Graph

21606 Commits

Author SHA1 Message Date
Keader
70cbedd75d Core/Scripts: Fixed a reference error introduced in 394b119664 2019-06-17 13:06:24 -03:00
Keader
394b119664 Scripts/Icecrown Citadel: Fixed Blood Orb Game Object (#23397)
Close #18005 and Update #18529
2019-06-17 08:38:37 -03:00
Sorikoff
e87f8b1aac 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
2019-06-17 09:35:35 +02:00
Ianislav Vasilev
cdd92bab4d Initial fix suggestion for #23232. (#23237) 2019-06-16 20:56:54 +02:00
Wyrserth
50be697e1f Core/SAI: add cooldownMin (event_param2) and cooldownMax (event_param3) to SMART_EVENT_ACCEPTED_QUEST and SMART_EVENT_REWARD_QUEST. (#23422) 2019-06-16 20:08:37 +02:00
Wyrserth
5ac9b20fcf 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!
2019-06-16 20:02:02 +02:00
Wyrserth
2b1cde2560 Core/SAI: don't allow to start a new SAI actionlist while the entity is already running one. (#23421) 2019-06-16 20:00:57 +02:00
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