300 Commits

Author SHA1 Message Date
Shauren
887fcbc02b Scripts/Spells: Removed unneccessary hacks - reagent consumption by triggered spells fixed in 54a83b4b68 2025-01-01 20:32:23 +01:00
Shauren
151a50d2aa Core/Spells: Split TRIGGERED_IGNORE_POWER_AND_REAGENT_COST into separate POWER and REAGENT flags 2024-12-31 20:14:01 +01:00
Shauren
7751d278b1 Scripts: Removed unused global variables 2024-02-24 13:44:20 +01:00
Shauren
605e5f94c0 Core/Creatures: Moved autoattack handling from scripts to game 2024-01-08 22:23:12 +01:00
ModoX
0e2f041728 Core/InstanceScript: Refactored door types to reflect its behavior (#29406) 2023-11-06 00:11:42 +01:00
Shauren
2e7e49b749 Scripts/Spells: Removed unneccessary PrepareSpellScript and PrepareAuraScript uses 2023-07-24 10:48:50 +02:00
Teleqraph
88ff97c1f9 Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE (#29159)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-07-20 19:09:27 +02:00
Shauren
c484530b0c Core/Spells: Added enum flag operators to TriggerCastFlags to prevent accidentally using CastSpellExtraArgs(bool) constructor when CastSpellExtraArgs(TriggerCastFlags) was intended 2023-06-09 00:33:35 +02:00
Shauren
f8a6a9b017 Scripts/Spells: Added spell effect validation helper 2023-05-30 19:34:19 +02:00
Meji
06d0b16f15 Core/Creatures: Move creature difficulty specific data from creature_template table to creature_template_difficulty (#28931) 2023-05-29 00:01:23 +02:00
Shauren
46e0056196 Scripts/Instances: Add dungeon encounter data 2022-10-04 00:19:38 +02:00
Shauren
8cadc10dd5 Scripts: Fixed missing boss count initialization in The Slave Pens and The Botanica as well as incorrect map id assignment to Auchenai Crypts spawn groups
Closes #28278

(cherry picked from commit 01f0f83139)
2022-09-30 20:17:18 +02:00
Shauren
b47185cabf Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag 2022-03-27 18:14:47 +02:00
offl
d86bc562cb Scripts/Misc: Adjustments to previous fixes (#27821)
(cherry picked from commit 9ee6f4fb11)
2022-03-26 15:20:10 +01:00
offl
050f55b62f Core/AI: OnSpellCast, OnSpellFailed, OnSpellStart hooks (#27704)
(cherry picked from commit 3dca705acc)
2022-03-26 15:15:46 +01:00
offl
eb1da698eb Scripts/TK: Few updates for Sepethrea (#27769)
(cherry picked from commit 951d7d3a58)
2022-03-26 14:50:20 +01:00
offl
5e2ba78c33 Scripts/TK: Update remaining scripts to new register model 2 (#27768)
(cherry picked from commit 93735ae3bd)
2022-03-26 14:28:07 +01:00
offl
48f6348f89 Scripts/TK: Update remaining scripts to new register model 1 (#27767)
(cherry picked from commit 5e3b76bf25)
2022-03-26 14:23:57 +01:00
offl
a6f8dc3052 Scripts/Botanica: Rework Warp Splinter (#27621)
(cherry picked from commit 78327500d8)
2022-03-25 23:23:44 +01:00
offl
18d7814402 Scripts/Botanica: Rework Sarannis & Freywinn (#27611)
(cherry picked from commit 41da43d9f2)
2022-03-25 23:05:01 +01:00
offl
8d3a408fdc Scripts/The Eye: Few updates to Kael'thas & Astromancer (#27304)
(cherry picked from commit 43315e0e19)
2022-03-23 20:31:19 +01:00
offl
b6c02d20d5 Scripts/Botanica: Rework Laj (#27282)
(cherry picked from commit 2fe3b6cc2f)
2022-03-23 20:30:17 +01:00
offl
55fd025057 Scripts/Mechanar: Rework Nethermancer Sepethrea (#27277)
(cherry picked from commit be00563a86)
2022-03-23 20:16:47 +01:00
offl
c4906ce60b Core/Misc: Rename UNIT_FLAG_NOT_SELECTABLE to UNIT_FLAG_UNINTERACTIBLE (#26913)
(cherry picked from commit c4741a131a)
2022-03-15 23:03:26 +01:00
Giacomo Pozzoni
71c2f0af46 Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken (#26787)
* Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken

* Update scripts

(cherry picked from commit 0800ab20a8)
2022-03-12 14:45:04 +01:00
Shauren
a7cd2bce1f Scripts/Tempest Keep: Remove Al'ar fire immunity 2022-03-11 16:37:56 +01:00
offl
9ca1b8f127 Scripts/The Eye: Reorder Kael'thas' scripts
(cherry picked from commit e4b42314c0)
2022-03-11 16:27:07 +01:00
offl
09e358076e Scripts/The Eye: Update Kael'thas to new register model (#26669)
(cherry picked from commit 8cbedef11b)
2022-03-11 15:41:23 +01:00
offl
091d38c67c Scripts/Instances: Update Mechanar scripts to new register model (#26569)
(cherry picked from commit 7b9476ea4b)
2022-03-11 01:04:46 +01:00
offl
f2777596a0 Scripts/Spells: Add comments with id & name of spells part 1
(cherry picked from commit 80a4b7f1e2)
2022-03-10 22:41:12 +01:00
offl
0181377bbd Scripts/Eye: Update Void Reaver to new model & few misc changes (#26470)
Co-authored-by: offl <offl@users.noreply.github.com>
(cherry picked from commit 0d9125d8e4)
2022-03-09 12:32:55 +01:00
offl
8e5895c809 Scripts/Mechanar: Update gatewatchers to new model (#26471)
Co-authored-by: offl <offl@users.noreply.github.com>
(cherry picked from commit 2b6632e50a)
2022-03-09 12:23:43 +01:00
offl
7b57dc02d1 Scripts/The Eye: Update instance script (#26190)
(cherry picked from commit 5a22cd868a)
2022-03-07 00:18:14 +01:00
offl
e560eb46cd DB/Instance/The Eye: Overhaul part 2
(cherry picked from commit 6ad76dd7c0)
2022-03-06 21:58:00 +01:00
offl
e5ddd07619 DB/Instance/The Eye: Overhaul part 1
(cherry picked from commit 2f9e38612f)
2022-03-06 21:51:35 +01:00
offl
ca76786faf Core/Scripts: Move some speed values & UNIT_FLAG_NOT_SELECTABLE to DB
(cherry picked from commit 3cb70ee62a)
2022-03-06 20:01:06 +01:00
offl
8e9e15629f Core/Scripts: Verify & migrate spell school immunities to DB
Some already are stored in DB. Looks like they all are still valid for master

(cherry picked from commit 1ed79d7a2e)
2022-03-06 16:30:51 +01:00
offl
95d46bb7df DB/Instance/Arcatraz: More adjustments
(cherry picked from commit 6af54eb508)
2022-03-01 23:28:45 +01:00
offl
d5e49ff0d2 DB/Instance/The Arcatraz: Update auras, scripts & stats
(cherry picked from commit a2da08deb1)
2022-02-28 23:48:05 +01:00
Shauren
439b027d48 Core/Misc: Cleanup unused includes 2022-02-13 15:07:00 +01:00
Shauren
0a1acb9c05 Scripts/Spells: Replace RegisterAuraScript with RegisterSpellScript and remove it
(cherry picked from commit 7d4fbf706a)
2022-02-04 00:27:10 +01:00
Carbenium
310f996b1d Core/WorldObject: Partially std::chrono-ify SummonCreature overloads
TempSummon* SummonCreature(uint32 entry, float x, float y, float z, float o = 0, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, uint32 despawnTime = 0);
to
TempSummon* SummonCreature(uint32 entry, float x, float y, float z, float o = 0, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime = 0s);

(cherry picked from commit 1131229ee9)
2022-01-24 11:55:32 +01:00
Carbenium
e660b870e9 Core/ScriptedAI: std::chrono-ify DoSpawnCreature
(cherry picked from commit f5076112cb)
2022-01-23 23:33:04 +01:00
Peter Keresztes Schmidt
253cbf5678 Scripts/Tempest Keep: Use std::chrono::duration overloads of EventMap (#25040)
Contributes to #25012

(cherry picked from commit 2d9c5979a6)
2022-01-23 16:01:09 +01:00
Peter Keresztes Schmidt
c4098897a8 game/AI: Convert SelectAggroTarget to enum class (#24818)
* game/AI: Convert SelectAggroTarget to enum class

* game/AI: Rename SelectAggroTarget to SelectTargetMethod

(cherry picked from commit 418c3b1fd5)
2022-01-06 21:53:27 +01:00
ForesterDev
3171cd3fa9 Core/AI: refactor SpellHit and SpellHitTarget. (#24691)
* Core/AI: refactor SpellHit and SpellHitTarget.

- now caster/target is WorldObject instead of Unit
- remove SpellHitByGameObject / SpellHitTargetGameObject (handled by SpellHit / SpellHitTarget)
- rename parameters in scripts according parent methods

* Restore logic in Algalon script

* Changed check for REMORSELESS_WINTER hit to avoid dublicate call, because it has TARGET_UNIT_CASTER for effects 0/1 and TARGET_GAMEOBJECT_SRC_AREA for effect 2

* Fix build after merge

(cherry picked from commit e3b232fe0e)
2022-01-06 20:46:25 +01:00
Shauren
5d02739b98 Scripts: Fix rbac permission for skipping default boss sequencing check
(cherry picked from commit e660c8bc19)
2021-12-20 21:40:47 +01:00
Eridium
c96157cb95 Boss/Script: Fix Mechano-Lord Capacitus's Nether Charges (#23976)
* Boss/Script: Fix Mechano-Lord Capacitus's Nether Charges

Closes #23973

* Update boss_mechano_lord_capacitus.cpp

* Update boss_mechano_lord_capacitus.cpp

* Update boss_mechano_lord_capacitus.cpp

* Rename 2019_12_99_99_world.sql to 2019_12_19_00_world.sql

(cherry picked from commit efcbfa5c24)
2021-12-19 12:34:32 +01:00
Keader
5d2b37634b Scripts/Tempest Keep: Fixed a typo in Nethermancer Sepethrea
Closes #23828
Ty Rizztazz

(cherry picked from commit 746a1d89b3)
2021-12-18 22:24:21 +01:00
ccrs
4e6c59dca7 Core/Unit: rename several getters to follow codestyle
uint8 GetLevel()
        uint8 GetLevelForTarget(WorldObject const* /*target*/)
        void SetLevel(uint8 lvl)
        uint8 GetRace()
        uint32 GetRaceMask()
        uint8 GetClass()
        uint32 GetClassMask()
        uint8 GetGender()

(cherry picked from commit 5c09ff51f7)
2021-12-13 00:42:20 +01:00