Commit Graph

1368 Commits

Author SHA1 Message Date
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
aquadeus
90cdb1ed0d Scripts/Spells: Fixed warlock shadow bolt energize (#27440) 2021-12-25 12:51:35 +01:00
aquadeus
b01d85e966 Scripts/Spells: Convert shaman spell scripts to new script registration syntax (#27457) 2021-12-25 12:49:32 +01:00
Rushor
10cf49e130 Spell/Script: Spawn Blood Pool
Closes #23878

(cherry picked from commit 3ddc6e70df)
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 a0c07655eb)
2021-12-20 21:24:37 +01:00
Eridium
2b27278516 Spell/Script: Egg Nog (#24007)
Closes  #23996

(cherry picked from commit b60786a916)
2021-12-19 15:48:29 +01:00
aquadeus
07015cc052 Scripts/Spells: Fix paladin talent Eye for an Eye (#27426) 2021-12-19 11:53:17 +01:00
aquadeus
5750466259 Scripts/Spells: Fixed priest talent Masochism (#27420) 2021-12-19 11:41:33 +01:00
Keader
f358ac39cc Build fix
(cherry picked from commit ecd4ffc1ce)
2021-12-19 01:42:27 +01:00
Killyana
16ddcdfd0a DB/Quest: Take Down Tethyr!
Closes #22407

(cherry picked from commit c22b1e6cb4)
2021-12-19 01:42:16 +01:00
Killyana
cf95274ace Quest: Weakness to Lightning
Closes #23916

(cherry picked from commit 6db4bf6671)
2021-12-19 01:09:15 +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 909941e1b4)
2021-12-19 01:05:54 +01:00
Sorikoff
374db51bae Scripts/Spells: Code style adjustments for druid scripts (#23725)
(cherry picked from commit 63bbf4a4be)
2021-12-18 21:14:53 +01:00
Sorikoff
568e60ef51 Scripts/Spells: Port druid scripts to new script registration syntax (2 of 3) (#23696)
* Scripts/Spells: Port Druid Scripts to New Script Registration

* Revert

* Revert 2

* Revert 3

* Revert 4

(cherry picked from commit 9a8a01925a)
2021-12-18 21:11:58 +01:00