Commit Graph
185 Commits
Author SHA1 Message Date
Shauren de80c713d0 Scripts/Spells: Refactor spell script internals to fix -Wcast-function-type-mismatch warning 2025-08-16 15:31:10 +02:00
Aqua Deus 2abf19e832 Scripts/Spells: Implement hunter talent Precise Shots (#31049) 2025-06-12 18:55:57 +02:00
Aqua Deus 6f23a46bb4 Scripts/Spells: Implement hunter talent Streamline (#30941) 2025-05-31 23:57:41 +02:00
Aqua Deus 1501843154 Scripts/Spells: Fix proc of hunter talent Bullseye (#30788) 2025-05-12 14:33:50 +02:00
Aqua Deus f7e1004586 Scripts/Spells: Implement hunter talent Rejuvenating Wind (#30839) 2025-05-05 20:50:41 +02:00
Shauren 4250b52f99 Core/Misc: Fix typos 2025-05-05 13:47:25 +02:00
Shauren f041721f12 Scripts/Spells: Implement hunter pvp talent Aspect of the Fox 2025-05-05 13:42:23 +02:00
Aqua Deus 753fc3c3e0 Scripts/Spells: Implement hunter talent Scout's Instincts (#30841) 2025-05-05 12:53:55 +02:00
Aqua Deus e57f0d01fb Scripts/Spells: Implement hunter talent Tar Trap (#30846) 2025-05-05 01:14:35 +02:00
Aqua Deus fc362147f9 Scripts/Spells: Implement hunter talent Wilderness Medicine (#30848) 2025-05-04 23:18:37 +02:00
Aqua Deus bec4308385 Scripts/Spells: Implement hunter talent Implosive Trap (#30856) 2025-05-04 19:58:43 +02:00
Aqua Deus d8b790ef0c Scripts/Spells: Implement hunter talent Surging Shots (#30787) 2025-04-18 16:05:05 +02:00
Aqua Deus 374bde3415 Scripts/Spells: Implement hunter talent Scrappy (#30850) 2025-04-13 19:43:37 +02:00
Aqua Deus c3302cd093 Scripts/Spells: Implement hunter talent Manhunter (#30851) 2025-04-13 16:24:09 +02:00
Aqua Deus 1f1180e5c6 Scripts/Spells: Implement hunter talent High Explosive Trap (#30852) 2025-04-13 15:49:10 +02:00
Aqua Deus c2d04486b3 Scripts/Spells: Implement hunter talent Emergency Salve (#30854) 2025-04-13 15:17:39 +02:00
Aqua Deus 9f1784bc7c Scripts/Spells: Update talent Concussive Shot to 11.1 (#30855) 2025-04-13 14:49:15 +02:00
Aqua Deus 058772b47f Scripts/Spells: Update Steady Shot script to 11.1 (#30790) 2025-03-29 15:24:32 +01:00
Aqua Deus f038c8526a Scripts/Spells: Implement Aspect of the Turtle (#29485)
Closes #19608
2023-12-08 15:28:03 +01:00
Nyr d2784d4c65 Core/Misc: Move TalentSpecialization together with other db2 enums and rename it to ChrSpecialization 2023-08-07 00:05:36 +02:00
Shauren 2e7e49b749 Scripts/Spells: Removed unneccessary PrepareSpellScript and PrepareAuraScript uses 2023-07-24 10:48:50 +02:00
Shauren 07d6eb3a57 Scripts/Spells: Fixed remaining spells with SPELL_ATTR3_CAN_PROC_FROM_PROCS attribute 2023-06-27 22:22:16 +02:00
Naddley acb7e72470 Scripts/Hunter: Implement Rapid Fire (#29099) 2023-06-27 20:57:41 +02:00
Shauren 622eed752b Scripts/Spells: Converted remaining spell scripts to use ValidateSpellEffect 2023-06-03 23:17:28 +02:00
Meji 06d0b16f15 Core/Creatures: Move creature difficulty specific data from creature_template table to creature_template_difficulty (#28931) 2023-05-29 00:01:23 +02:00
Shauren f9a4104b06 Scripts/Spells: Use scaled level for taming requirements 2023-04-24 18:12:43 +02:00
TeleqraphandModoX 1b3f93aa0f Core/Spells: Unify Bloodlust spells for all classes (#28927)
Co-authored-by: ModoX <[email protected]>
2023-04-17 06:51:37 +02:00
Naddley 2a79be02fd Scripts/Hunter: Implement Explosive Shot (#28779) 2023-01-26 15:11:56 +01:00
Aqua Deus d5f5bbfa66 Scripts/Spells: Fix hunter talent Posthaste (#28019) 2022-06-16 17:45:23 +02:00
Giacomo Pozzoni 6fd7cd9dc9 Core/Pet: Don't allow to tame pets that have already a owner (#26674)
(cherry picked from commit 8c42b3bd88fe7bd3e959664312e818e25996873a)
2022-03-11 18:37:02 +01:00
Shauren 667d3cf8fd Scripts/Spells: Update hunter spells to modern standards 2022-03-08 15:56:11 +01:00
Shauren 439b027d48 Core/Misc: Cleanup unused includes 2022-02-13 15:07:00 +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 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 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 5c1fc5e3876549f5ed2b9051fffb6f3d94a67d7a)
2022-01-31 00:17:21 +01:00
My name is MudandShauren 3dceb3622f Scripts/Spells: Fixed hunter talent A Murder of Crows (#27566)
Co-authored-by: Shauren <[email protected]>
2022-01-12 23:10:44 +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
Treeston a5989dcee9 Core/Unit: Store charmer and charmed pointers on Unit directly, no more map lookups for Unit::GetCharmer and Unit::GetCharmed
(cherry picked from commit d4ef2529e91043bc719c3238714413fd21c9005c)
2021-10-23 00:11:44 +02:00
Shauren 8a4e1119ac Core/Spells: Unify spell effect access api in both branches 2021-09-04 15:13:15 +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 34c7810fe5 Core: Combat/threat system rewrite (PR #19930)
- PvE combat is now always mutual. UNIT_FLAG_IN_COMBAT is backed by actual references to the units we're in combat with.
- PvP combat is now also tracked, and almost always mutual; spells like Vanish and Feign Death can break this rule. That means we can easily determine a list of players we're fighting.
- By extension, IsInCombatWith now has sensible behavior when invoked on nonplayers.
- Threat and combat systems are no longer the same.
  - They still have an enforced relationship (threat implies combat - clearing combat clears threat)...
  - ...but we can have combat without threat. A creature (with threat list) isn't considered to be engaged until it has an entry on its threat list...
  - ...which means we can now faithfully replicate retail engage behavior. Combat on projectile launch - engagement start on projectile impact. Yay for progress!
- AI method refactor, as already ported in 6113b9d - `JustEngagedWith`, `JustEnteredCombat` and `JustExitedCombat`.
- Vehicle threat is now properly pooled on the main vehicle body (fixes #16542).
- Various edge case bug fixes for threat redirects (Misdirection "cancelling" Vigilance and similar).
- Target re-selection is now significantly faster.
- Fixed a ton of other smaller edge case bugs, probably.

Closes #7951 and #19998.

(cherry picked from commit 532ab1c7f8653d1a2e48aa1f1f8a9ba1041d4bb7)
2021-05-16 21:56:01 +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
Matan Shukry a681309d58 Scripts/Spells: Removed unused hunter spell scripts (#26155) 2021-02-27 13:28:42 +01:00
Matan Shukry 7159de62b6 Scripts/Spells: Remove const from AuraEffect argument for AuraEffectProcFn 2021-02-13 14:08:16 +01:00
Matan Shukry 0cae71eac5 Core/Spells: Adding SpellTargetObjectTypes to spell target checker to early-eliminate alive units (#26028)
* Added object type into checker that is used by grid search to early eliminate alive units when looking for corpses
* Removed script 'spell_hun_pet_carrion_feeder'. Ability doesn't exist anymore
2021-02-05 21:29:00 +01:00
Shauren 1c52d5fff7 Core/Misc: Replace NULL with nullptr 2020-08-14 17:06:03 +02:00
Shauren c7306439e7 Core/Spells: Implement using different difficulty data from all spell related db2s, not just SpellEffect and SpellPower 2020-06-12 01:29:18 +02:00
Aokromes b0bf1275ee New Year 2020-01-02 06:44:10 +01: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