Commit Graph
380 Commits
Author SHA1 Message Date
offl 8be723788d Scripts/Spells: Handle player talk in spell scripts pt 2 (#27640)
(cherry picked from commit 7a4f1fd2016c14b8f518dbd9fdad0b92c4270ce4)
2022-03-25 23:42:43 +01:00
offl 37f425b1b3 Scripts/Spells: Remove unnecessary SetAnimationTier
(cherry picked from commit 8214278cd8d7962bb2530fe35ff6653e487e67b2)
2022-03-24 19:44:43 +01:00
offl c3368fd5fc Scripts/Quest: Rework 'The Cleansing' (11317,11322) (#27413)
(cherry picked from commit a8464d34bb0f77e0d616e6f21aaf7d7a79276180)
2022-03-24 14:41:00 +01:00
offl 9dabdf7724 Scripts/Spells: Furious Rage & scripts for creatures who uses it (#27403)
(cherry picked from commit 7ae525d5e5f068ab09166f6f4a2045a72726cb8e)
2022-03-24 13:18:56 +01:00
offl 83b4c8cd37 Scripts/Spells: Small cleanup for gen/item spell scripts (#27311)
(cherry picked from commit ef4c878d260c0e01a6ab2f4391af46c261d04785)
2022-03-23 00:06:37 +01:00
offl 4281049e0c Scripts/Misc: Migrate world event scripts to separate files 2 (#27309)
(cherry picked from commit eb812bf3d510d9c6712448c4bb35983c91f97b4c)
2022-03-23 00:03:14 +01:00
offl 5eac5ee2db Scripts/Spells: Void Zone's Consumption (#27265)
(cherry picked from commit 44a6d393d7969adf3357ea74c61561c60c6c5a31)
2022-03-22 23:17:09 +01:00
offl 7e9845730e DB/Creature: The Brewmaiden & The Black Brewmaiden (#27133)
Closes #27127

(cherry picked from commit 2f0b7a756a6d8a6a8ae8c5fd5c311fab75e813db)
2022-03-20 16:43:11 +01:00
offl 5f40959687 Scripts/Spells: Mount check aura for Gryphon Hatchling & Wind Rider Cub (#26897)
Closes #26600

(cherry picked from commit 5f71c40b969c07f950e3dceb99037c7685512e71)
2022-03-17 23:59:01 +01:00
Keader 6bc9674167 Scripts/Misc: Moved Submerge script to spell_generic
(cherry picked from commit 9153ad621e7578f472460b9a98e21a6ed94f85c0)
2022-03-13 00:17:25 +01:00
offl 1dd989a8d6 Scripts/ZG: Update scripts to new register model (4/5) (#26694)
(cherry picked from commit 8230f937f1c4a9df86f503364e7c5e0b205eb8b1)
2022-03-11 16:56:28 +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 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
Edder 8202dc28c2 Core/Quest: Threat From Above (#26468)
* [Quest] Threat From Above #26355

* [Quest] Threat From Above TrinityCore#26355

* Core/Quest: Threat From Above #26468 - modified sql according to guidelines; added override keyword

* Rename 2021_04_24_00_world.sql to 2021_04_25_00_world.sql

Co-authored-by: Edder <[email protected]>
Co-authored-by: Giacomo Pozzoni <[email protected]>
(cherry picked from commit 3e407c7d1c79cc94bf932880ee0eb68058d139fd)
2022-03-09 00:42:48 +01:00
offl 43f63d7631 Scripts/Spells: Feign Death & 'prevent emotes flag' spell scripts (#26198)
Closes #25842 Ref #25764

(cherry picked from commit d0b67aecb6428c104c7a0c414384997cd9748ca4)
2022-03-07 20:25:57 +01:00
Shauren ad4f4bfab7 Core/Misc: Minor game include cleanup 2022-02-13 00:49:10 +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
Shauren 17e7f8497c Scripts/Spells: Convert remaining spell_generic scripts to simplified script registration using new additional constructor argument support
(cherry picked from commit 7a5a010d415014a1cf78b1f6186d78a39a18c70a)
2022-02-04 00:27:10 +01:00
Shauren 9147918363 Core/Pets: Fixed automatic resurrecting pets on battleground graveyards
Closes #25289

(cherry picked from commit 74a0d579eef07c013cc8deff930a975cf19c487f)
2022-01-31 00:20:53 +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 6c7837f947ff4eb5110a116a371daa6f9e2b3bbe)
2022-01-26 21:46:51 +01:00
Aqua Deus 0bbdfc6112 Scripts/Spells: Move spell_anchor_here to generic because is used by more than one boss (#27641) 2022-01-22 14:52:05 +01:00
Sorikoff 74174332c6 Scripts/Pet: Lil' K.T (#24528)
* Lil' K.T.

* Rename 9999_99_99_99_world_335.sql to 2020_05_10_00_world.sql

Co-authored-by: Giacomo Pozzoni <[email protected]>
(cherry picked from commit 34fecde022e6e2a228111ee79a0e9f5f8a7bed12)
2022-01-02 19:24:18 +01:00
Shauren 2565af5fd3 Scripts/Spells: Fixed startup errors in spell_gen_war_mode_enlisted 2021-12-31 14:16:59 +01:00
Matan ShukryandShauren b821a72973 Core/Player: Initial War Mode support (#25926)
* Enable PvP talents
* War Mode buff aura
* Forced PvP flagging

Co-authored-by: Shauren <[email protected]>
2021-12-26 19:14:46 +01:00
Meji 924182f692 Core/BattlePets: Misc fixes (#27446)
* Added script for "Summon Battle Pet" spell (118301).
* Set the saved display of the battle pet when summoning it.
* If a summon has SummonPropertiesFlags::SummonFromBattlePetJournal it will remove NpcFlag UNIT_NPC_FLAG_WILD_BATTLE_PET (Wild battle pets).
* When a creature is summoned with SummonTitle::Companion, it will check to see if it has SummonPropertiesFlags::SummonFromBattlePetJournal before updating the battle pet's update fields. (If you have a summoned battle pet and summon a creature with that SummonTitle, it will incorrectly update the battle pet's update fields with the summoned battle pet's data).
* Implemented SummonPropertiesFlags::UseCreatureLevel. If a summon has this flag, it will use the owner's level (If the summon doesn't have SummonProperties it will always use the selected level).
2021-12-25 15:27:58 +01:00
Rushor 10cf49e130 Spell/Script: Spawn Blood Pool
Closes #23878

(cherry picked from commit 3ddc6e70df0401a0677bef536e6b0e46e3dbf9e9)
2021-12-23 00:21:24 +01:00
Alan Deutscher cd72ecce78 Scripts/Spells: fix Turkey Timer duration (#24048)
* spell_gen_turkey_marker::OnPeriodic: Pop expired stack timestamps from tracking list.

* Be a bit more explicit about the data type of removedCount.

* Formatting nudge.

* Remove brackets.

(cherry picked from commit a0c07655eb6b42a2e1fd9319d53c7ed7f2c585d8)
2021-12-20 21:24:37 +01:00
Keader f358ac39cc Build fix
(cherry picked from commit ecd4ffc1ceac6b1d6e9f86f192673ce95f94aaae)
2021-12-19 01:42:27 +01:00
Killyana 16ddcdfd0a DB/Quest: Take Down Tethyr!
Closes #22407

(cherry picked from commit c22b1e6cb46ff76729f44eb846043e1614abc9f9)
2021-12-19 01:42:16 +01:00
Giacomo Pozzoni 9bede687ce Core/GameObjects: Skip LoS checks for traps (#23936)
* Core/GameObjects: Skip LoS checks for traps

* Core/GameObjects: Fix spells cast by traps missing always

* Scripts/Spells: Fix WSG heal buff not healing

The WSG green heal buff is now cast by a GameObject so the spell target should be used to calculate the healing, not the GameObject.

(cherry picked from commit 909941e1b44250b0fa646d363af817f40ca48355)
2021-12-19 01:05:54 +01:00
ForesterDev 104ec7a81a Core/Unit: Implement more helper methods (#23555)
(cherry picked from commit c44fb37f74347e3b6d399c941716971503af4cf8)
2021-12-14 20:42:32 +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
Sorikoff 8fc52bc5e5 Scripts/Spells: Migrate Teleporting to Script (#23458)
* Scripts/Spells: Migrate Teleporting to Script

* Rename 9999_99_99_99_world.sql to 2019_06_21_02_world.sql

(cherry picked from commit e9d803ccee2fb5d229babbf6c2c4a17b1986edb0)
2021-12-11 22:28:55 +01:00
Wyrserth 6b7bc82641 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.

(cherry picked from commit 2315d43b2c1f478bd5f612e39f3a938bf6640ab6)
2021-12-11 12:06:54 +01:00
Killyana adb5535483 Spell/Script: Stasis Field
Closes #23355

(cherry picked from commit 7dd87e3df44c1c5b9b8ffb9652911d46d6676c38)
2021-12-10 21:37:45 +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 797fba98e95da1236465a15061ec4122d7ec33fe)
2021-12-07 00:02:03 +01:00
Wyrserth fd030069f7 Core/Spell: add proper cooldowns to some spells used by vehicles (#23260)
* Core/Spell: add proper cooldowns to some spells used by vehicles, thanks to jackpoz and sirikfoll.

* Add Wing Buffet and Stampy's Stompy-Stomp.

* Add Tag Greater Felfire Diemetradon and Touch of Darkness.

* Rename 9999_99_99_99_world.sql to 2019_05_17_00_world.sql

(cherry picked from commit 4d04344b414adc965bd2760d3f30338bcce70431)
2021-12-05 18:44:59 +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
Gustavo b86a66c5be Core/Scripts: Fix Blood summon position (#23088)
* Core/Scripts: Fix Blood summon position

Updates #13162

(cherry picked from commit cc3293c0023b36434747190103a1f0ffee0f8488)
2021-11-26 11:21:24 +01:00
PolarCookie f7299dce97 Core/Spell: SpellAura Redux (#22794)
* typo and correction

* spell aura no longer shared between targets

_spellAura isolated

* SPELL_AURA_CONTROL_VEHICLE is not strictly single target spell

Steam Tank Control and Wyrmrest Commander

units can reseat themselves again

* Rename 9999_99_99_99_world.sql to 2019_03_08_00_world.sql

(cherry picked from commit ec3cb05d7fbc5cef60d000af910dc39dd3af92bf)
2021-11-24 20:35:19 +01:00
Keader 955ac45cf5 Spell/Script: Freezing Circle
Closes #11312
See the original issue before cherry pick

(cherry picked from commit 990ad000f8e869e55353e6531d9e38f23104bcd6)
2021-11-24 20:34:56 +01:00
Killyana d8b76a6e6d DB/Creature: Wrath Corruptor
Thanks to Keader for the spell_script
Original sql by Tobschinski https://github.com/cmangos/tbc-db/commit/c8f1753834ba3dba4c6263346afe29cd363c2431

(cherry picked from commit fb28083b3b2966952b1227f6585b48fcc70dbe7a)
2021-11-21 14:38:17 +01:00
Rynem Storm c7ad7d5e15 DB/Spell: fix mistake in Blood Draining's CheckProc and remove Attack Power scaling (#22862)
(cherry picked from commit a057d26f20ef2d18fa276534d727b03a6b5a2931)
2021-11-18 23:04:07 +01:00
DanVS 3b1ed434ae Core/Scripts: Move some spells to scripts (#22332)
(cherry picked from commit 8051ff13dfcf3819b58adfcec1608c08dcbcd080)
2021-11-18 22:41:57 +01:00
ShaurenandSeyden 732a8ee261 Core/Movement: Corrected values sent in knockback packet when speedXY < 0
Co-authored-by: Seyden <[email protected]>
2021-11-06 23:17:43 +01: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
DanVS 3503e9dc92 Scripts/Pets: Some cleanup for Snake Trap. Tagging #21847, though this doesn't address it (yet).
(cherry picked from commit 15ab24756dab76066bc24ca2a8c3289afbe836c0)
2021-10-17 01:40:21 +02:00
ModoX ece3a8036e Scripts/DK: Fixed Defender of Azeroth quest
* added graveyard in case someone wants to die there
* added serverside spells to handle death gate usage properly (including bind points)
* added SmartAI script to Mograine for Defender of Azeroth quest
2021-10-13 19:33:19 +02:00
Shauren 3af9be830d Core/Spells: Removed CastSpellExtraArgs constructors accepting ObjectGuid, they would become ambiguous with future changes 2021-10-03 14:58:35 +02:00