Commit Graph

200 Commits

Author SHA1 Message Date
Shauren
0f9a0accf1 Core/Misc: Kill AnyPlayerInObjectRangeCheck (duplicate of AnyUnitInObjectRangeCheck) 2025-06-08 01:07:44 +02:00
Jeremy
1ef0c04520 Core/Battlegrounds: Clean up some Team/TeamId parameters to use enums instead of raw integer types (#29535)
* Fix criteria data type bg loss team score
2023-12-29 14:12:15 +01:00
Shauren
2e7e49b749 Scripts/Spells: Removed unneccessary PrepareSpellScript and PrepareAuraScript uses 2023-07-24 10:48:50 +02:00
Shauren
622eed752b Scripts/Spells: Converted remaining spell scripts to use ValidateSpellEffect 2023-06-03 23:17:28 +02:00
Shauren
f8a6a9b017 Scripts/Spells: Added spell effect validation helper 2023-05-30 19:34:19 +02:00
offl
6fb332d935 Scripts/Spells: Get rid of several DB spell scripts (#28048)
(cherry picked from commit 3808e614d9)
2022-09-05 19:26:59 +02:00
ModoX
ed93a97068 Core/Units: Replace UNIT_DYNFLAG_DEAD with UNIT_FLAG3_FAKE_DEAD (#28117) 2022-07-15 22:34:06 +02:00
offl
7d9d55ee87 Scripts/Quest: Migrate few quest spell scripts to zone files (#28015)
(cherry picked from commit b52e0ccbad)
2022-06-10 19:32:05 +02:00
Shauren
b47185cabf Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag 2022-03-27 18:14:47 +02:00
offl
945b190262 DB/Quest: Update 'Stopping the Spread'
(cherry picked from commit 877b3674d9)
2022-03-26 16:00:38 +01:00
offl
b2479e78a3 Scripts/Quest: Update 'Who Are They?' (#27855)
(cherry picked from commit a29476b92e)
2022-03-26 15:59:33 +01:00
offl
04c7e91097 Scripts/Quest: Update 'What Do You Feed a Yeti, Anyway?' (#27851)
(cherry picked from commit fbfb8da7fc)
2022-03-26 15:49:11 +01:00
offl
b105dc4c8f Scripts/Quest: Update 'Burning to Help' & 'A Cleansing Song' (#27849)
(cherry picked from commit 3d6cc67caf)
2022-03-26 15:48:03 +01:00
offl
6a5a39dda0 Scripts/Quest: Update 'Breakfast Of Champions' (#27846)
(cherry picked from commit 9d654345b5)
2022-03-26 15:45:49 +01:00
offl
f767fa4cdb Scripts/Quest: Update 'Jormuttar is Soo Fat...' (#27838)
(cherry picked from commit b7de329941)
2022-03-26 15:36:23 +01:00
offl
5450fd6bcd DB/Quest: Update 'Leave Nothing to Chance'
(cherry picked from commit 70ebac6cf4)
2022-03-26 15:32:34 +01:00
offl
48541e14a7 Scripts/Quest: Update 'Mounting Hodir's Helm' (#27832)
(cherry picked from commit 45d6cd42b7)
2022-03-26 15:31:35 +01:00
offl
a2236616cc Scripts/Quest: Rework Mystery of the Infinite & Mystery of the Infinite, Redux (#27677)
(cherry picked from commit f205e25b33)
2022-03-26 00:21:13 +01:00
offl
0097fd95b6 Scripts/Spells: Generic spell script for quest portals (#27305)
(cherry picked from commit 251304b19c)
2022-03-23 23:58:25 +01:00
offl
3fbc9d796d Scripts/Misc: Migrate Operation Gnomeregan & Zalazane's Fall scripts to own files (#27163)
(cherry picked from commit d42c89aa04)
2022-03-21 00:18:17 +01:00
offl
2e3f240051 Scripts/Spells: Handle quest tame spells in spell script (#27022)
(cherry picked from commit 4441d42253)
2022-03-19 23:14:52 +01:00
offl
4a867dbf2d DB/Quest: Rework 'Relief for the Fallen' (12937)
(cherry picked from commit 1c174987c8)
2022-03-12 15:39:51 +01:00
offl
2642cf3666 DB/Quest: Rework 'The Tome of Divinity' (1783,1786)
(cherry picked from commit 2d2b73c905)
2022-03-12 15:09:46 +01:00
offl
2185692f62 Scripts/Spells: Update quest spell scripts to new register model (#26790)
(cherry picked from commit bc26ddaf8c)
2022-03-12 14:17:19 +01:00
offl
012444ba80 Scripts/Spells: Add comments with id & name of spells part 4
(cherry picked from commit e7e4786606)
2022-03-10 23:53:31 +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
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
2583aee17a Scripts/Spells: Add script for Salvage Wreckage & update similar scripts (#26357)
Closes #25099

(cherry picked from commit 89c998c08d)
2022-03-08 21:53:35 +01:00
offl
4b8bd9e4bc Scripts/Quest: Rework 'Basic Orders' (25199) (#26294)
(cherry picked from commit 293ae05d31)
2022-03-07 22:04:51 +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
offl
0b0532e96a DB/Quest: Convert & update support for 'Prison Break' (11587) to SAI
(cherry picked from commit dc4cb8f1d3)
2022-02-28 23:59:23 +01:00
Shauren
8e2d1e328e Core/Spells: Pass cast item level to triggered spells
* Fixes value on trinkets like Ignition Mage's Fuse
2022-02-08 21:36:31 +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
38695b0943 Scripts/World+Outland+Spells: Use std::chrono overload of Creature::DespawnOrUnsummon
(cherry picked from commit 5832790428)
2022-01-23 23:58:48 +01:00
Killyana
cf95274ace Quest: Weakness to Lightning
Closes #23916

(cherry picked from commit 6db4bf6671)
2021-12-19 01:09:15 +01:00
ForesterDev
27886c7f5d Core/Player: add helper methods GetNativeGender/SetNativeGender/SetGender (#23520)
* Core/Player: add helper methods GetNativeGender/SetNativeGender/SetGender and fix some cases, where we should get player gender, instead of modified by display gender

* fix merge

* Add virtual methods for Unit class

(cherry picked from commit b47bb59e2a)
2021-12-13 00:42:20 +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
Killyana
5163559c1e Quest/Script: Breakfast Of Champions
Set both Earthshaker Drum Events to 50%

(cherry picked from commit 14445088ea)
2021-12-02 19:35:47 +01:00
Sorikoff
d72e809ecf Scripts/Spells: Migrate Some Scripted Spells to Scripts (#23185)
* Migrate spells to scripts

* Simplify code

* I need to sleep

* Update chapter1.cpp

* Use actual damage

* No need in null check here

(cherry picked from commit 2cfaeb1400)
2021-11-30 22:30:53 +01:00
Killyana
67e702b29b Spell/Script: Specify a target for Azure Dragon: On Death Force Cast Wyrmrest Defender to Whisper to Controller - Random
(cherry picked from commit e5470ab1ee)
2021-11-24 20:35:18 +01:00
PolarCookie
19646a8363 That's Abominable for the 3 other quests, and knockbacks for all. (#22127)
(cherry picked from commit fb19f7be1f)
2021-11-18 22:41:57 +01:00
ModoX
437fb2aaba Core/CreatureTexts: Added new field SoundPlayType to enable usage of ObjectSounds within creature_text (#27136)
* Also adjusted Vigilant Quoram texts to use ObjectSounds
2021-10-23 13:10:32 +02:00
Treeston
e4e8c1c59c Core/AI: Clean up charm AI handling, we now have two unique_ptr instead of a crapton of booleans
(cherry picked from commit 042f5515e4)
2021-10-22 23:47:51 +02:00
sirikfoll
7c63a99bab Scripts/Spells: Quest King of the Mountain
Added missing jump jets and battle standard visuals
Added allowed area conditions for the vehicle
Fixed Jumpbot's attack spell (thanks @keader for fixing the proc)

(cherry picked from commit e7e46b2a82)
2021-09-05 22:19:03 +02:00
Shauren
8a4e1119ac Core/Spells: Unify spell effect access api in both branches 2021-09-04 15:13:15 +02:00
Moein
6d7288356a Scripts/Spells: quest "That's Abominable" (#21253)
- scripted spell "Burst At The Seams" (59576)
- added Pet Bar

Closes #10876

(cherry picked from commit e519e14df8)
2021-06-16 11:32:25 +02:00
ariel-
5fbddef85f Core/Spell: SpellValueOverrides encapsulation
- No sense to let scripts use SpellValueOverrides, we already have modifiers in CastSpellExtraArgs struct

(cherry picked from commit 3b01cccd7e)
2021-06-14 00:19:50 +02:00
Treeston
9b141207d1 [3.3.5] CastSpell unclusterfucking (that's a word now) (#21123)
Core/Spell: The giant CastSpell unclusterfucking (that's a word now) of this generation.

- CastSpell now always takes three arguments - target, spellId, and a struct containing extra arguments
- This struct (CastSpellExtraArgs, see SpellDefines.h) serves as a conglomerate of every previous combination of the 20 billion different CastSpell overloads, all merged into one
  - It has some great utility constructors - check them out! All of these can be used to implicitly construct the ExtraArgs object.
- A gajillion refactors to make everything behave the way it always has

(cherry picked from commit d507a7e338)
2021-04-16 15:22:42 +02:00
Shauren
efdca47aff Core/Auras: Remove m_effIndex member of AuraEffect and always take it from SpellEffectInfo 2021-03-11 10:32:03 +01:00