Shauren
975e7cc072
Core/Spells: Refactor CastSpellExtraArgs
...
* Allow C++20 designated initializers
* Allow precise float values for SPELLVALUE_RADIUS_MOD, SPELLVALUE_CRIT_CHANCE and SPELLVALUE_DURATION_PCT
2024-09-12 21:57:16 +02:00
Shauren
94b78ebc8b
Core/Players: Slightly improve neutral player faction support
2024-03-24 17:19:10 +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
622eed752b
Scripts/Spells: Converted remaining spell scripts to use ValidateSpellEffect
2023-06-03 23:17:28 +02:00
Shauren
3df16c12b7
Core/Scripts: Move EvadeReason outside of CreatureAI class
2023-01-19 21:23:06 +01:00
Shauren
d8a4668c77
Core/Misc: Add missing Containers.h include where neccessary
2023-01-06 16:44:11 +01:00
Shauren
46e0056196
Scripts/Instances: Add dungeon encounter data
2022-10-04 00:19:38 +02:00
Shauren
76be303351
Core/Scripts: Save instance data in JSON format
2022-10-04 00:19:38 +02:00
Shauren
b596cf2452
DB/Shattered Halls: Migrate linked_respawn to spawn groups
...
(cherry picked from commit f982e566a7 )
2022-09-30 16:13:35 +02:00
Shauren
b47185cabf
Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag
2022-03-27 18:14:47 +02: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
offl
4bdf5261e6
Scripts/Misc: Remove few more evil flags
...
Ref #25764
(cherry picked from commit 180f495c70 )
2022-03-11 01:41:20 +01:00
offl
0408693646
Scripts/Spells: Add comments with id & name of spells part 3
...
(cherry picked from commit 03c727326d )
2022-03-10 23:52:03 +01:00
offl
cec9718d22
Scripts/Spells: Add comments with id & name of spells part 2
...
(cherry picked from commit 0e804c95ac )
2022-03-10 23:13:25 +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
1256a55ee5
Scripts/ML: Update Magtheridon to new model ( #26420 )
...
(cherry picked from commit 7bd3a36d52 )
2022-03-08 22:39:15 +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
Kargatum
373ed8f46b
Core: whitespace cleanup, reduce double blank line to single ( #25795 )
...
* Core/Misc: fix double empty line
* worldserver.conf
(cherry picked from commit a32b6b8ac4 )
2022-03-05 20:07:57 +01:00
Shauren
439b027d48
Core/Misc: Cleanup unused includes
2022-02-13 15:07:00 +01:00
Maks Szokalski
bc04acb726
Add "On" to some gossip methods in AI ( #25415 )
...
* Add "On" to some methods
* Update npc_innkeeper.cpp
* Update zone_borean_tundra.cpp
(cherry picked from commit 41188eb535 )
2022-02-05 22:18:19 +01:00
Peter Keresztes Schmidt
2e3c612c80
Core/Unit: Make HandleEmoteCommand typesafe ( #25249 )
...
* Scripts/ScarletMonastery: Fix wrong emote during Headless Horseman encounter
* Scripts/HoR: Fix wrong emote during escape event
* Core/Unit: Make improve type safety of HandleEmoteCommand
Change argument type to the expected enum type Emote
* Scripts/CoS: Use SetUInt32Value to set UNIT_NPC_EMOTESTATE
UNIT_NPC_EMOTESTATE is no flag field
(cherry picked from commit 6c7837f947 )
2022-01-26 21:46:51 +01:00
Giacomo Pozzoni
864d775280
Core/Misc: Fix static analysis issues ( #25194 )
...
(cherry picked from commit 07fd84b679 )
2022-01-26 14:06:40 +01:00
Giacomo Pozzoni
61bf51874d
Core/Misc: Fix static analysis issues ( #25178 )
...
(cherry picked from commit 7cf122fc2a )
2022-01-24 20:21:25 +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
Peter Keresztes Schmidt
ad340466d0
Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs ( #25054 )
...
Related: #25006
(cherry picked from commit 85b5b842ca )
2022-01-23 22:02:03 +01:00
Peter Keresztes Schmidt
7f948a3e23
Scripts/Hellfire Citadel: Use std::chrono::duration overloads of EventMap ( #25024 )
...
Contributes to #25012
(cherry picked from commit d00c95f26f )
2022-01-23 15:47:58 +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
Keader
09f611e467
Scripts/BloodFurnace: Fixed Broggok stopping work after wipe
...
By: Rushor
(cherry picked from commit 00bc6e7d54 )
2022-01-06 19:43:54 +01:00
skipperheartbeat
00f6631cd2
Boss/Script: Vazruden_Fix ( #24197 )
...
* Add files via upload
* Update boss_vazruden_the_herald.cpp
* Update boss_vazruden_the_herald.cpp
* Update boss_vazruden_the_herald.cpp
* Update boss_vazruden_the_herald.cpp
* Update boss_vazruden_the_herald.cpp
* Update boss_vazruden_the_herald.cpp
* Update boss_vazruden_the_herald.cpp
* Update boss_vazruden_the_herald.cpp
* Update boss_vazruden_the_herald.cpp
* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp
Co-Authored-By: Trond B. Krokli <38162891+illfated@users.noreply.github.com >
* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp
Co-Authored-By: Trond B. Krokli <38162891+illfated@users.noreply.github.com >
* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp
Co-Authored-By: Trond B. Krokli <38162891+illfated@users.noreply.github.com >
* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp
Co-Authored-By: Trond B. Krokli <38162891+illfated@users.noreply.github.com >
* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp
Co-Authored-By: Trond B. Krokli <38162891+illfated@users.noreply.github.com >
* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp
Co-Authored-By: Trond B. Krokli <38162891+illfated@users.noreply.github.com >
* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp
Co-Authored-By: Trond B. Krokli <38162891+illfated@users.noreply.github.com >
* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp
Co-Authored-By: offl <suffle.o@gmail.com >
* Update src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp
Co-Authored-By: Trond B. Krokli <38162891+illfated@users.noreply.github.com >
* Update boss_vazruden_the_herald.cpp
* Update boss_vazruden_the_herald.cpp
* Update boss_vazruden_the_herald.cpp
Co-authored-by: Aokromes <Aokromes@users.noreply.github.com >
Co-authored-by: Trond B. Krokli <38162891+illfated@users.noreply.github.com >
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com >
Co-authored-by: offl <suffle.o@gmail.com >
(cherry picked from commit 8ac8374429 )
2022-01-01 20:01:46 +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
Keader
174f4bad3d
Scripts/Blood Furnace: Fixed Broggok reset issues and some little improvements
...
Closes #23658
(cherry picked from commit 1bdc792559 )
2021-12-20 20:18:55 +01:00
Giacomo Pozzoni
77eaa2c1ac
Scripts/Blood Furnace: Fix infinite loop in Broggok encounter
...
Fix infinite loop in Broggok encounter caused by https://github.com/TrinityCore/TrinityCore/pull/23300
(cherry picked from commit 30a4aca266 )
2021-12-17 21:52:33 +01:00
Ianislav Vasilev
fa9683fc68
Scripts/Blood Furnace: Broggok improvements ( #23300 )
...
* 23285 Fixed lever respawn and future encounters after it respawns.
* Removed unnecessary additional container.
Made lever not to despawn and respawn but rather change flags only.
* Made one conditional branch easier to debug.
(cherry picked from commit c71e36acae )
2021-12-15 00:17:32 +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
Giacomo Pozzoni
5f545f5402
3.3.5 gameobject summoner ( #23289 )
...
* Scripts/Misc: Change IsSummonedBy(Unit*) to IsSummonedBy(WorldObject*)
* Scripts/Misc: Fix build
* Core/TempSummons: Rename GetSummoner() to GetSummonerUnit()
* Core/TempSummons: Add support to TempSummons::GetSummoner() to return GameObject too
* Fix build
* Core/TempSummons: Allow GameObject to be owner of TempSummon
* Core/TempSummons: Add support to SAI for GameObject owner of TempSummon
* Scripts/Misc: Fix no-pch build
* Core/TempSummons: Implement PR comments
(cherry picked from commit 797fba98e9 )
2021-12-07 00:02:03 +01:00
Killyana
cb9a1c38f1
Instance/Script: Blood Furnace
...
Ref #23285
(cherry picked from commit 9435caa8d1 )
2021-12-05 18:39:09 +01:00
jackpoz
43a41caafb
Core/Misc: Fix GCC 8 warnings
...
(cherry picked from commit 1d04a3b216 )
2021-11-24 23:40:15 +01:00
Shauren
f2456ff319
Scripts/Areatriggers: Fixed all areatrigger scripts triggering both on enter and exit instead of only on enter
2021-11-10 00:01:50 +01:00
DanVS
28cb2af1c5
Core/Scripts: Unify Chrono Literals ( #22420 )
...
* Unify Chrono Literals
* Retire IN_MILLISECONDS
* Build fix
* Build fix (sequel)
* Retire urand()
* Edge cases
* Build
* Whitespaces
* More edge cases
* Additional cases
(cherry picked from commit 5b0f4009df )
2021-11-09 00:26:59 +01:00
Keader
b91398fd28
Scripts/Magtheridon Lair: Fixed a case when channelers get hit kill and not start fight
...
It's needed for cataclysm+
(cherry picked from commit 65bad41144 )
2021-09-26 23:04:18 +02:00
Keader
c1641642cb
Scripts/Magtheridon: Fixed Magtheridon inaccessible
...
Closes #21693
(cherry picked from commit 99993a7f62 )
2021-09-22 23:29:33 +02:00
Shauren
8a4e1119ac
Core/Spells: Unify spell effect access api in both branches
2021-09-04 15:13:15 +02:00
Keader
cb8ea03175
Core/Scripts: Fixed some delayed enrage
...
Closes #15367
(cherry picked from commit 63c436f5fb )
2021-06-21 00:06:41 +02:00
Keader
9b7f3bff9f
Core/Scripts: Fixed tabs issues introduced in 5bef3e426a
...
(cherry picked from commit 31ad6358fb )
2021-06-19 23:33:24 +02:00
Keader
ad5b0fa9cd
Core/Scripts: Fixed possible crashs related with JustDied
...
(cherry picked from commit 5bef3e426a )
2021-06-19 23:33:24 +02:00