Commit Graph
186 Commits
Author SHA1 Message Date
offl f767fa4cdb Scripts/Quest: Update 'Jormuttar is Soo Fat...' (#27838)
(cherry picked from commit b7de3299413d05514581150f44a032384b91506e)
2022-03-26 15:36:23 +01:00
offl 5450fd6bcd DB/Quest: Update 'Leave Nothing to Chance'
(cherry picked from commit 70ebac6cf423461dcdfbce4038d280ce2cff12a2)
2022-03-26 15:32:34 +01:00
offl 48541e14a7 Scripts/Quest: Update 'Mounting Hodir's Helm' (#27832)
(cherry picked from commit 45d6cd42b70eb9f28e0d37cec0949281cfa80a6d)
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 f205e25b337ceb10a9bec111a46406f4af9dc3e2)
2022-03-26 00:21:13 +01:00
offl 0097fd95b6 Scripts/Spells: Generic spell script for quest portals (#27305)
(cherry picked from commit 251304b19c2fc42ee330b9a533b54f7b80df5d4a)
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 d42c89aa04e58f74069ac1fdda94d7fbba1a7a52)
2022-03-21 00:18:17 +01:00
offl 2e3f240051 Scripts/Spells: Handle quest tame spells in spell script (#27022)
(cherry picked from commit 4441d42253d64ccd8fc9f78f1b44c851d6408312)
2022-03-19 23:14:52 +01:00
offl 4a867dbf2d DB/Quest: Rework 'Relief for the Fallen' (12937)
(cherry picked from commit 1c174987c8114d7f2daf02140afa81a1cb01bd54)
2022-03-12 15:39:51 +01:00
offl 2642cf3666 DB/Quest: Rework 'The Tome of Divinity' (1783,1786)
(cherry picked from commit 2d2b73c90588d7b7899989636db42f8da1d4b8e9)
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 bc26ddaf8c4d6f66ecfd9f22794ba23c03f7b76b)
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 e7e47866066f0b318c986c355dc4476b5948e622)
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 03c727326dce5d990fd453f42a92300dbd68dc0e)
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 80a4b7f1e2f4baae40f08e87cb8cda0a1db833b9)
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 89c998c08d5360c383bc8d89e417cf99bf1335aa)
2022-03-08 21:53:35 +01:00
offl 4b8bd9e4bc Scripts/Quest: Rework 'Basic Orders' (25199) (#26294)
(cherry picked from commit 293ae05d31be71276cb093f66945652bbd5965a1)
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 a32b6b8ac4c81128a56b282f20837fb085bdd9e7)
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 dc4cb8f1d3895316c6ecc7a47c392a6da7a9f948)
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 7d4fbf706ae19481468901ccd65c497fcabe56bf)
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 1131229ee9c43704b11187f0b11c327db92018b6)
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 5832790428b124876ba48eacaf47806fd10a3c47)
2022-01-23 23:58:48 +01:00
Killyana cf95274ace Quest: Weakness to Lightning
Closes #23916

(cherry picked from commit 6db4bf66715a775ab85c7e82e9b9733c891e450e)
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 b47bb59e2a3e42aff3793517ef94f51678b54905)
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 5c09ff51f7015b775def8d5cc1f678eaef37200f)
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 14445088ea0b03d556619a9e5cd5f138cca09561)
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 2cfaeb14004cfbb5500855472ad89ab9238df13d)
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 e5470ab1ee32b97e07e979950665a7ede66603e0)
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 fb19f7be1f103b6d647e6d7d2aeabdfaadbc0631)
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 042f5515e4f3e52b0d2e23d9b9e147041849ce12)
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 e7e46b2a822cd0179b30ba5b0fa7c6fe7cea8774)
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 e519e14df8d846285f1d29fb7e5aa0b151c6f74e)
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 3b01cccd7eafaff9f3b8236a544e4fa46818926c)
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 d507a7e3388382960108b24143da48e5f912b4a7)
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
jackpoz a01d397c3d Core/Misc: Fix static analysis issues
Fix static analysis issues reported by 3rd party tools

(cherry picked from commit 24e82fe83d384e3a4cf17719e728760053516607)
2021-02-25 18:50:55 +01:00
Killyana 29aae591bc DB/Creature: Scourging Crystal
And fix spell script spell_q11396_11399_scourging_crystal_controller
Closes #17596

(cherry picked from commit 00e3023b3263d5743e0df09118bab4b28bfd3608)
2021-02-25 18:50:55 +01:00
Shauren b231903932 Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup port 2020-09-04 13:38:24 +02:00
treeston 2dfafa69eb Hi, I'm Treeston, and welcome to Combat PR Prep Refactors.
Today, we're moving UNIT_FLAG_IMMUNE_TO_PC and UNIT_FLAG_IMMUNE_TO_NPC to higher-level abstraction so combat manager can react to it.
New methods on Unit:
- void SetImmuneTo<All/PC/NPC>(apply, keepCombat = false);
- bool IsImmuneTo<All/PC/NPC>() const;

(cherry picked from commit 74af880217fc567c9949d7557408718af889402f)
2020-08-18 18:53:13 +02:00
Shauren 1c52d5fff7 Core/Misc: Replace NULL with nullptr 2020-08-14 17:06:03 +02:00
Aokromes b0bf1275ee New Year 2020-01-02 06:44:10 +01:00
Shauren 357e0ec394 Scripts/Quests: Fix Quest 14386 Leader of the Pack
By Malcrom
2019-06-17 21:17:14 +02:00
Shauren 455959c606 Core/PacketIO: Rewrite updatefield handling 2019-06-08 17:06:57 +02:00
vincent-michael 5620eb9463 Update copyright note for 2019
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
Mihapro 8199eef81c Core/Misc: Added helper function Unit::SetFullPower
* Also renamed Unit::getPowerType and Unit::setPowerType to follow style guidelines

Ref #20981
2018-01-03 16:39:32 +01:00
vincent-michael 7d00ae4045 Update copyright note for 2018
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
SnapperRy 65077985e0 Script/Quest: Apply Heat and Stir.
Enjoy one of the most frustrating quests in Northrend!

(cherry picked from commit 387b18775d6f7b7d6e8cf669d36328867e5f39d5)
2017-09-05 19:34:49 +02:00
Shauren 12d0306543 Core/Spells: Use ValidateSpellInfo in all scripts 2017-06-03 01:34:21 +02:00
Shauren 2200b4b0e1 Nopch fix 2017-05-24 21:30:43 +02:00