Commit graph

203 commits

Author SHA1 Message Date
blinkysc
e54952ca7b
fix(Core/Spells): Resolve pet to owner in EffectSummonType default path (#25322)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
2026-04-02 05:03:07 -03:00
blinkysc
2eec7b229d
fix(Core/Spells): resolve pet to owner in SummonGuardian (#25266)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
2026-03-27 11:45:54 -05:00
sogladev
a90570a2de
fix(Core/Spell): spell immunity system and new separate immunities table (#24956)
Co-authored-by: ariel- <ariel-@users.noreply.github.com>
Co-authored-by: Keader <keader.android@gmail.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2026-03-22 19:36:35 -03:00
blinkysc
984baa92dd
refactor(Core/Combat): Port TrinityCore heap-based threat system (#24715)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: Treeston <treeston.mmoc@gmail.com>
Co-authored-by: killerwife <killerwife@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 13:36:59 -05:00
天鹭
bb10c2c541
fix(SpellEffects): GameObject Rotation (#24850) 2026-02-25 01:18:12 -06:00
blinkysc
30beeed2ae
fix(Core/Spells): Block SPELL_EFFECT_ENERGIZE_PCT on isolated targets (#24844)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
2026-02-24 17:17:24 -06:00
blinkysc
7fadeb1141
fix(Core/Spells): Beacon of Light no longer copies target healing modifiers (#24796)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
2026-02-22 11:06:47 -06:00
blinkysc
4599f26ae9
refactor(Core/Spells): QAston proc system (#24233)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: QAston <qaston@gmail.com>
Co-authored-by: joschiwald <joschiwald@online.de>
Co-authored-by: ariel- <ariel-@users.noreply.github.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: blinkysc <your-github-email@example.com>
Co-authored-by: Tereneckla <Tereneckla@users.noreply.github.com>
Co-authored-by: Andrew <47818697+Nyeriah@users.noreply.github.com>
2026-02-18 08:31:53 -03:00
Tereneckla
2f7f9bd72f
fix(Core/Spells): Implement TrinityCore spell_group and spell_group_stack_rules (#23346)
Co-authored-by: treeston <treeston.mmoc@gmail.com>
Co-authored-by: Trisjdc <trisjdc@gmail.com>
Co-authored-by: QAston <none@none>
Co-authored-by: ariel- <ariel-@users.noreply.github.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Co-authored-by: Jelle Meeus <sogladev@gmail.com>
2025-11-28 16:01:25 -03:00
thomasjteachey
a0f8f34ded
fix(Core/Spells): cache reflection target information for reflected thunderstorm direction (#23762) 2025-11-21 02:17:52 -03:00
Francesco Borzì
50b36e842a
fix(docs/license): use GPLv2 as MaNGOS-based project (#23655) 2025-11-14 08:44:25 -03:00
天鹭
a1c8e0f221
refactor(Core): SendDirectMessage (#23230) 2025-10-30 14:21:26 -03:00
天鹭
53238a68d3
refactor(Core): DespawnOrUnsummon (#23141) 2025-10-13 03:36:23 -03:00
GrenderG
8d2f307483
fix(Core/Spells): Correct follow position for Pets and Companions. (#23154)
Co-authored-by: sogladev <sogladev@gmail.com>
2025-10-09 20:09:40 +02:00
Takenbacon
73317b2706
feat(Core/Grids): Remove WorldObject separation in grid containers (#22595) 2025-08-09 06:36:24 +02:00
Takenbacon
a77bd19104
feat(Core/Maps): Remove worldobject container switch functionality (#22586) 2025-07-29 09:18:07 -03:00
Jelle Meeus
7561147e7c
fix(Core/Spells): No longer add a signature to items created by NPCs (#22415) 2025-07-03 12:35:06 -03:00
Andrew
31012923c1
fix(Core/Spells): Fix SPELL_EFFECT_LEAP_BACK not working on targeted … (#22389) 2025-06-29 16:11:11 -03:00
Tereneckla
bea53b9826
fix(Core/Spells): simplify and fix Blood-Caked Strike calculation (#22243) 2025-06-05 15:49:44 -03:00
Macs-Account
31ea22acc4
fix(Core/Spells): weapon damage based magic abilities gain too much effect from spell aura % damage increase (#22232) 2025-06-05 12:48:38 -03:00
Tereneckla
2b70446322
fix(Core/Spell): Revert paladin seal hackfixes (#22264) 2025-06-05 12:47:37 -03:00
Benjamin Jackson
db18d5b035
refactor(Core): Use database tables for Shaman totems and Druid shapeshift forms. (#22104)
Co-authored-by: DoctorKraft <25483209+doctorkraft@users.noreply.github.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Co-authored-by: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
2025-05-27 14:40:57 +01:00
Exitare
98ceb1c067
fix(Core/PlayerScript) Align player script function names (#21020)
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
2025-02-16 14:59:41 +01:00
Anton Popovichenko
2982b64430
fix(Core/Spell): Reset insignia spell target when it is deleted. (#21437) 2025-02-14 21:58:30 +01:00
Kitzunu
ed008a8780
refactor(Core/Spells): Add helpers for HasAuraType (#20802) 2024-12-01 08:50:59 -03:00
Andrew
2649ca2d65
feat(Core/Spells): Allow modifying MiscValues during cast (#20731) 2024-11-26 12:17:02 -03:00
Jelle Meeus
9f58216383
fix(Core/Spell): EffectQuestComplete, set quest to rewarded instead of complete (#20358)
set quest to rewarded instead of complete when targetted by SPELL_EFFECT_QUEST_COMPLETE

Prevents people from ending up with strange quests in their quest logs.

6d62f852ac

Co-authored-by: SnapperRy <snapperryen@gmail.com>
2024-11-15 03:47:41 -03:00
Andrew
7746287ee1
fix(Core/Spells): Fix Lay on Hands healing bypassing Cyclone (#20552)
* fix(Core/Spells): Fix Lay on Hands healing bypassing Cyclone

* and mana as well
2024-11-14 03:37:23 -03:00
Jelle Meeus
cc03798123
fix(Core/Spells): Jump Speed Calculations (#20479)
Core/Spell: Jump Speed Calculations

0197a2f990

Co-authored-by: DanVS <33371360+DanVS@users.noreply.github.com>
2024-11-12 12:16:41 -03:00
Francesco Borzì
c06cadfe75
refactor(src/common|server): remove unused import (big part 1) (#20377)
* refactor(src/common|server): remove unused import (big part 1)

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: attempt to fix damn linkin error
2024-10-31 21:46:11 +01:00
Francesco Borzì
484e19d21b
refactor(src/server/game/Spells): remove unused imports (#20092) 2024-10-01 08:05:15 +02:00
Kitzunu
386aea03ee
chore(Core/Misc): Some cleanup (#19970)
* remove weird blanks

* update if

* ) ) to ))

* missed some ) )

* now switch

* .
2024-09-21 19:34:31 +02:00
Saqra1
c42b3ee258
fix(Core/Pet): Control Infernal without enslave (#19784)
Check SummonProperties Category(Control) too to decide the type of
controls a Guardian should have.

Don't enslave Warlock's Infernal
2024-09-11 11:18:13 -03:00
Benjamin Jackson
1edac37ac3
refactor(Core): Make more use of helpers. (#19835)
* Init.

* Reword.

* Update codestyle script.

Co-Authored-By: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Add gameobject type ID check, reorder checks.

* Add helper/codestyle check for unit type.

* `IsUnit()` -> `IsCreature()`

* Add `IsUnit()` method.

* Use type mask.

https: //github.com/TrinityCore/TrinityCore/commit/cc71da35b5dc74abf71f8691161525a23d870bb5
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-Authored-By: Ovahlord <18347559+Ovahlord@users.noreply.github.com>

* Replace instances of `isType` with `IsUnit`.

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-authored-by: Ovahlord <18347559+Ovahlord@users.noreply.github.com>
2024-09-03 14:41:31 -03:00
Saqra1
62b825f8bd
fix(Core/Movement): Don't move for change in orientation only (#19687)
Changing only the orientation of a unit also flags it as if it were
moving, which causes spells to be interrupted.
2024-09-01 20:57:17 -03:00
Kitzunu
5d31b9f98f
refactor(Core/Item): Add helpers (#19828) 2024-08-31 19:38:50 -03:00
Grimdhex
643362d697
refactor(Core/Object): adds consistency in the use of type object check (#19671) 2024-08-25 09:57:37 -03:00
Benjamin Jackson
adff3c3846
fix(Core/Spells): Revert ownership and follow logic adjustment for guardian summons. (#19664)
Revert "fix(Core/Spells): Adjust ownership and follow logic for guardian summ…"

This reverts commit cc2ef9d6dd.
2024-08-17 20:29:21 -03:00
Benjamin Jackson
67010623a0
fix(Core): Adjustments to summoning ritual object handling. (#19600)
* Init.

* Allow self-summoning.

* Revert unintended change.

Self-summoning still works fine without this being removed, I see no harm in putting it back.
2024-08-13 12:12:05 -03:00
Benjamin Jackson
cc2ef9d6dd
fix(Core/Spells): Adjust ownership and follow logic for guardian summons. (#19599)
* Init.

* Remove totem ownership transfer.
2024-08-13 11:53:43 -03:00
Kitzunu
e4df159f5c
refactor(Core/Chat): Move SendNotification to ChatHander (#19491)
* refactor(Core/Chat): Move SendNotification to ChatHander

* Update Battleground.cpp

* fix build

* Update src/server/game/Chat/Chat.h
2024-08-10 11:39:46 -03:00
Kitzunu
793f87fd61
fix(Core/GameObject): Use correct spell at meeting stone (#19311)
* fix(Core/GameObject): Use correct spell at meeting stone

* cleanup
2024-07-09 19:39:58 -03:00
Mykhailo Redko
33f951d742
fix(Core/Spells): Fixed work of sobering spells and other improvements for drunk system (#18390)
* fix(Core/Spells): Fix sobering spells and possible uint8 overflow/underflow in SPELL_EFFECT_INEBRIATE handler.

* fix(Core/Spells): Improvements for SPELL_AURA_MOD_FAKE_INEBRIATE handling
2024-03-20 01:45:01 -03:00
Nathan Handley
df33a57b78
feat(Core/Unit): New helper IsClass and script hook OnPlayerIsClass (#18243)
* Class Comparison Logic Encapsulation - Parity

* Add Context to IsClass

* Add Unit IsClass script hook

* Replace additional getClass with IsClass

* Update CanUseItem to replace getClass with IsClass

* Add separate context for pet vs ability

* Change Create to Init since not all referenced contexts are creation

* Align spacing in ClassContext

* Drop context on LFGManager max power

* Update IsClass context that wraps around Missle Barrage

* Rename context for swapping weapons

* Be more specific than CLASS_CONTEXT_TALENT

* Remove duplicate context

* Moved IsClass Hook to Player

* Removed unused parameter in virtual base function

* Added maybe_unused to IsClass virtual in order to compile

To match the override signature, the virtual base needs to include the parameter in question, so using [maybe_unused] to signal to the compiler to allow it

* Remove extra blank line

* Add ABILITY_REACTIVE context

* Add context for PET_CHARM

* Remove explicit nullopt check per review

* Code Readability - Change if to if else in pet

Due to the return pattern, this doesn't change functionality in any way

* Add OnPlayer to disambiguate

---------

Co-authored-by: NathanHandley <nathanhandley@protonmail.com>
2024-02-10 12:25:00 -03:00
Nathan Handley
425a490a7b
feat(Core/Unit): New helper HasActivePowerType and script hook OnPlayerHasActivePowerType (#18293)
* Create HasActivePower for script intercept

* Replace relevant player-related getPowerType() comparators with HasActivePowerType

* Change OnPlayerHasActivePowerType to regular bool instead of optional

---------

Co-authored-by: NathanHandley <nathanhandley@protonmail.com>
2024-02-09 06:27:02 -03:00
Kitzunu
7a859da266
fix(Script/Spell): Vanish Purge behavior (#18127) 2024-01-07 12:03:53 -03:00
Alethrion
b2fcc1babf
fix(Core/Unit): Remove delay for Conflagrate aura state (#18068)
Removes ConflagrateAuraStateDelayEvent

Cherry-picked from: e27c385b48

Co-authored-by: Ariel Silva <ariel-@users.noreply.github.com>
2024-01-01 07:59:23 -03:00
Tristan 'Natrist' Cormier
ac676f87ab
chore(Core/Player): remove unused AnticheatSetSkipOnePacketForASH() function (#17947) 2023-12-09 01:09:52 +01:00
Andrew
5a4fdc7de4
fix(Core/Spells): Banish should only be dispelled by Mass Dispel (#17703)
* fix(Core/Spells): Banish should only be dispelled by Mass Dispel

* Update Unit.cpp

* Update Unit.cpp
2023-11-14 16:27:37 +01:00
Kitzunu
bbadc32bea
Revert Visibility Notifier changes (#17682)
* Revert "fix(Core/Grid): Implement missing GridUnload setting (#17569)"

This reverts commit 79b39f9655.

* Revert "fix(Core/Grid): Address bugs and performance issues introduced by visibility notifier implementation (#17480)"

This reverts commit 60e27511c5.

* Revert "fix(Core): GridCleanUpDelay Log (#17436)"

This reverts commit 90b16ca065.

* Revert "feat(Core/Grids): Implement visibility notifier (#15919)"

This reverts commit 2779833768.
2023-11-12 00:48:49 +01:00