Commit Graph

1381 Commits

Author SHA1 Message Date
Shauren
950db60435 Core/Pets: Updated pet summoning for latest client version (5 Call Pet spells and stable size 200) 2022-02-02 00:08:37 +01:00
Shauren
9147918363 Core/Pets: Fixed automatic resurrecting pets on battleground graveyards
Closes #25289

(cherry picked from commit 74a0d579ee)
2022-01-31 00:20:53 +01:00
Shauren
ca92686b44 Core/Pets: Pet management refactoring (#25191)
* Core/Pets: Pet management refactoring

* Preload basic pet data on character login with async query
* Load additional pet data (declined names/auras/spells/cooldowns) using async query after we are sure pet loading will succeed
* Remove all select queries related to pet stable/unstable
* Remove all silent pet deletions except explicit UI-triggered abandons
* Fixed displaying stable master content when current pet is not summoned
* Allow to stable/swap unsummoned current pet

Closes #3610
Closes #21266

(cherry picked from commit 5c1fc5e387)
2022-01-31 00:17:21 +01:00
Teleqraph
af0edf5afc Scripts/Spells: Moved Blessing of Faith script to spell_items (#27692) 2022-01-30 13:10:08 +01:00
Shauren
78283e3ef2 Scripts/Spells: Fixed Holy Shock visuals 2022-01-30 12:55:57 +01:00
Nyr
0d9b1072b5 Scripts/Spells: Updated Holy Shock spell script.
* renamed related enums.
* removed unnecessary rank dependency checks.
2022-01-30 12:55:57 +01:00
Teleqraph
72839e660e Scripts/Spells: Judgment (Holy) will now apply Rank 3 debuff if the paladin knows it (#27685) 2022-01-30 00:10:04 +01:00
Robingad
5b57722211 Scripts/Spells: Fix shaman Lava Surge proc (#27667)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-01-28 11:18:45 +01:00
Robingad
1696d73860 Scripts/Spells: Move shaman Lava Burst crit chance calculation to scripts and add Lava Burst Overload (#27676) 2022-01-27 23:23:37 +01:00
Robingad
3e725e1d25 Scripts/Spells: Fix shaman Earthquake (#27620)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-01-27 22:18:46 +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
Rothend
6f10847512 Script/Quest: fix (More) Torch Catching (#24907)
* Script/Quest: fix (More) Torch Catching.

Closes #24893

Co-authored-by: Carbenium <carbenium@outlook.com>
(cherry picked from commit a375f15ae2)
2022-01-26 19:50:50 +01:00
Carbenium
82fce41852 Core/WorldObject: Replace non-std::chrono SummonGameObject overloads
Also fix intended despawn time of GOs used by the "Engineering a Disaster" quest

(cherry picked from commit 8642aaaf92)
2022-01-24 12:55:43 +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
Shauren
596bf2b772 Core/Misc: Replace boost::optional with std::optional part 2 2022-01-23 20:31:52 +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
Shauren
03dd82b52d Scripts/Spells: Updated Power Word: Shield script
Closes #27630
2022-01-18 14:33:07 +01:00
Rothend
f5967b8a87 Script/Spell: fix Midsummer's Juggling Torch (#24885)
* Script/Spell: fix Midsummer's Juggling Torch.

Closes #17446

* Remove unneeded GetPosition() call, thanks jackpoz for noticing!

* Rename 9999_99_99_99_world_midsummer_torch_juggling.sql to 2020_06_24_01_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
(cherry picked from commit 5f35bf9e79)
2022-01-18 00:06:59 +01:00
Aqua Deus
d8efda4ff3 Scripts/Spells: Fix mage Flame On talent (#27622) 2022-01-17 23:36:12 +01:00
Aqua Deus
92335bf900 Scripts/Spells: Fix warlock chaos bolt damage (#27616) 2022-01-17 20:56:31 +01:00
Aqua Deus
d95a1e7eaf Scripts/Spells: Fix warlock immolate periodic (#27615) 2022-01-16 23:10:09 +01:00
Shauren
c5727921b9 Warning fix 2022-01-13 00:07:08 +01:00
My name is Mud
d6c43b3d63 Scripts/Spells: Fixed mage talent Firestarter (#27576)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-01-12 23:49:14 +01:00
My name is Mud
3dceb3622f Scripts/Spells: Fixed hunter talent A Murder of Crows (#27566)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-01-12 23:10:44 +01:00
Robingad
bd19e22513 Scripts/Spells: Fix shaman Mastery: Elemental Overload + Stormkeeper and Unlimited Power talents (#27561)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-01-12 12:48:43 +01:00
My name is Mud
043d1cf254 Scripts/Spells: Fix priest Shadow Mend damage (#27525) 2022-01-10 00:28:50 +01:00
My name is Mud
861d572f9c Scripts/Spells: Fix shaman talent Spirit Wolf (#27478) 2022-01-09 19:06:48 +01:00
Shauren
6df3cb0995 Scripts/Spells: Corrected script registrations for shaman spells to match db2 data 2022-01-09 14:59:35 +01:00
Shauren
b042919daf Scripts/Spells: Updated Windfury Weapon script 2022-01-09 14:42:55 +01:00
Shauren
60539d2e24 Scripts/Spells: Changed shaman Healing Stream Totem target selection to use Trinity::SelectRandomInjuredTargets 2022-01-09 13:44:43 +01:00
Shauren
4d3439b024 Scripts/Spells: Fixed shaman Healing Rain target limit 2022-01-09 13:43:45 +01:00
Shauren
30f232d5db Scripts/Spells: Fixed shaman Healing Rain not doing anything 2022-01-09 12:45:32 +01:00
My name is Mud
1410e018eb Scripts/Spells: Fix Warlock Drain Soul energize (#27512) 2022-01-07 22:17:12 +01:00
Giacomo Pozzoni
89afeed41b Core/MMAPs: Adjust walkable climb and fix a lot of mmap raycast issues (#24539)
* Core/MMAPs: Adjust walkable climb

Adjust walkable climb as recast using walkableClimb also to find the poly from a position, giving priority to polys that are below the position but closer than walkableClimb.

* Temporarily disable static collision (the whole check should be removed)

* Core/Spells: removed deprecated mmap path check for TARGET_DEST_CASTER_FRONT_LEAP

* Core/Objects: allow flying units to use the helper as well (flying units casting radius based spells)

* Code refactor

* Handle raycasts that end in a point with no height in the mmap mesh as PATHFIND_NOPATH

* Walk back a bit from raycast hitpoints as sometime the 2D result point is outside of the polygons due to floating point errors.

* Remove whitespace

* Revert 4a197ba22a as a raycast point path should have the Z retrieved with getPolyHeight(). Raycast will only return a 2-point path with Start and Hitpoint/End

* Cleanup PathGenerator raycast case

* Fix PathGenerator raycast broken if start and end are on same poly.
Fix PathGenerator raycast broken if no wall is hit.
Remove unused case of using raycast with an existing previous path (can be added back properly if needed).
Remove forcing poly length to 2 when we actually have already the right number.

* Use closestPointOnPolyBoundary on the second try of finding a point on poly for raycast.
Note that in this case the mesh height is not used which might cause issues. The poly boundary height will be used instead.

* Handle cases where getPolyHeight() fails because the point is on polygon border (and caused by floating point imprecision)

* Add far from poly flags

* Set PATHFIND_INCOMPLETE in raycast case if startFarFromPoly or endFarFromPoly

* Fix blink close to walls with no valid polygon behind the wall

* Require to re-extract mmaps

Co-authored-by: Ovah <dreadkiller@gmx.de>
(cherry picked from commit c0b75bf40d)
2022-01-04 15:33:04 +01:00
Shauren
c0f976d23d Core/Spells: Added helper function to select random injured healing spell targets 2022-01-03 13:07:30 +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 <giacomopoz@gmail.com>
(cherry picked from commit 34fecde022)
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
Shauren
70f1eaac48 Core/Spells: Rename TARGET_UNIT_CONE_ENEMY_104 to TARGET_UNIT_CONE_CASTER_TO_DEST_ENEMY 2021-12-29 00:12:07 +01:00
aquadeus
108eeea327 Scripts/Spells: Fix shaman talent Nature's Guardian proc (#27482) 2021-12-28 21:18:50 +01:00
aquadeus
f230af918b Scripts/Spells: Fix shaman talent Downpour (#27477) 2021-12-26 21:46:07 +01:00
aquadeus
fed9d73f66 Scripts/Spells Fix shaman talent Aftershock (#27469) 2021-12-26 20:13:41 +01:00
Matan Shukry
b821a72973 Core/Player: Initial War Mode support (#25926)
* Enable PvP talents
* War Mode buff aura
* Forced PvP flagging

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-12-26 19:14:46 +01:00
Shauren
e6ba1fbd53 Scripts/Spells: Fixed Lightning Bolt Overload, Chain Lightning Overload, Elemental Blast and Elemental Blast Overload energize effects 2021-12-25 22:45:23 +01:00
aquadeus
47d8b17e9f Scripts/Spells: Fix chain lightning energize (elemental) (#27468)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-12-25 22:15:11 +01:00
aquadeus
c95b1784df Scripts/Spells: Fixed lightning bolt energize (elemental) (#27467)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-12-25 21:55:23 +01:00
Shauren
5be16577f7 Build fix for older boost version 2021-12-25 21:53:47 +01:00
Matan Shukry
a3d06f2f32 Scripts/Spells: Implemented various rogue spells (#26319)
* Ruthlessness
* Mastery: Main Gauche
* Venomous Wounds
* Symbols of Death
* Backstab
* Premeditation
* Grand Melee
* True Bearing
* Slice and Dice
* Roll the Bones
2021-12-25 21:25:54 +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
aquadeus
8ac0388870 Scripts/Spells: Fix paladin talent Holy Prism (#27442) 2021-12-25 14:10:10 +01:00