Commit graph

469 commits

Author SHA1 Message Date
Christian M
d2fb893f87
feat(Core/Player): Allow spell validation to be skipped at server owner's risk (#22521)
Co-authored-by: Tereneckla <Tereneckla@pm.me>
2025-07-26 19:26:00 -03:00
Tereneckla
a96c7e85c5
fix(Core/Player): Only mark spells as invalid when none of the Skills match (#22537) 2025-07-23 12:49:29 -03:00
Kitzunu
cbd8596184
fix(Core/Player): Unlearn invalid spells for race/class on login (#22370)
Co-authored-by: Andrew <47818697+Nyeriah@users.noreply.github.com>
2025-07-19 11:35:26 +02:00
Jelle Meeus
578fabfc7f
fix(Core/Player): implement Character flag CHARACTER_FLAG_RESTING (#22499) 2025-07-18 11:14:27 +02:00
Takenbacon
fd262c3ab1
feat(Core/Config): Improvements to config caching (#21647) 2025-06-30 17:14:12 +02:00
Hyjarion
969e0275a9
fix(Core/Player): Mutilate + Cold Blood crit fix (#22308) 2025-06-28 10:58:45 -03:00
Kitzunu
5311717a89
fix(Player/Skills): Improve skill validation and logging in Player::_… (#22369) 2025-06-27 09:14:04 -03:00
Jelle Meeus
0f26b634e3
refactor(Core/Player): revert equip item aura duration core fix with a spell correction (#22167) 2025-06-05 17:08:38 -03:00
Benjamin Jackson
b73bdb3adc
chore(Core): Remove unused and inaccurate comment headers for various script-related files. (#22263) 2025-06-05 15:49:20 -03:00
Benjamin Jackson
f710fb8d9f
refactor(Core/Worldstate): Remove redundant worldstate usage. (#22126)
Co-authored-by: Jelle Meeus <sogladev@gmail.com>
2025-05-23 18:23:34 +02:00
Jelle Meeus
22b1d072c2
fix(Core/Player): aura removal logic to equipped "Use" items (#22164)
Co-authored-by: itslovelol <robin.schriever.hude@web.de>
Co-authored-by: VladimirMangos <vladimir@getmangos.com>
2025-05-21 19:26:28 -03:00
Benjamin Jackson
52799d76f6
refactor(Core): Add definition file for area table entries. (#22054) 2025-05-09 15:48:02 +02:00
Jelle Meeus
297f16820e
fix(Core/Player): smooth energy regeneration with SPELL_AURA_MOD_POWER_REGEN_PERCENT mods (#22041)
Co-authored-by: r4dish <ovitnez@gmail.com>
2025-05-04 13:20:59 +01:00
Jelle Meeus
8358e17ac1
Revert "Fix(Core/Player): Energy regen rate bonuses (#20321)" (#22032) 2025-04-30 20:54:37 -03:00
Jelle Meeus
775b9ff29a
fix(Core/Player): correct SpellPriority logic (#21052)
Co-authored-by: killerwife <killerwife@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2025-04-30 02:09:20 +01:00
Tereneckla
7503a24266
fix(Core/Player) internally handle expertise as float (#21967)
The core will no longer truncated the expertise (from float to int) value on the server side.
2025-04-26 19:37:05 +01:00
Benjamin Jackson
da55f05cfc
refactor(Core/WorldState): Initial addition of world state definition file. (#21875)
Many world states had their enums from script's header and hardcoded values to their respective header file (WorldStateDefines.h)
Co-authored-by: Jelle Meeus <sogladev@gmail.com>
2025-04-26 19:31:30 +01:00
Jelle Meeus
4b64c4ed25
fix(Core/Player): Force UpdateZone on resurrect to apply Zone auras (#21888) 2025-04-12 13:38:32 -03:00
Vincent Vanclef
ffe03f6e14
feat(Core/Entities): add OnPlayerCanGiveLevel script hook (#21666) 2025-03-10 08:44:33 +01:00
p-tkachuk
544878c048
fix (Core/Wintergrasp) Fix map and battle icon (#21622) 2025-03-02 05:46:49 +01:00
Jelle Meeus
4c4b04f07b
refactor(Core/Packet): use WorldPackets::WorldState::InitWorldStates definition (#20475)
Co-authored-by: ccrs <ccrs@users.noreply.github.com>
2025-02-19 07:55:09 -03: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
Takenbacon
edcfaeb845
refactor(Core/World): Create WorldSessionMgr to split session logic out of World (#21400) 2025-02-13 07:04:38 +01:00
Anton Popovichenko
f6a0433297
feat(Core/Arena): Add support for arena seasons completion with progression in runtime. (#19858)
Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com>
2025-02-12 07:09:31 -03:00
Andrew
79cbb00075
feat(Core/Creature): Implement HasFlagsExtra() helper to creature (#21362) 2025-02-08 14:07:04 -03:00
iThorgrim
c53112d820
Feat(Core/Scripting): Add new hook CanPlayerResurrect to simplify HardCore mod etc. (#21272) 2025-02-03 18:28:19 +01:00
Kitzunu
17412174be
feat(Core/SAI): implement SMART_ACTION_DISABLE_REWARD (#21105) 2025-02-01 22:49:41 +01:00
Kitzunu
47c5ff904f
refactor(Core/Disables): Convert from Namespace to Class Structure (#21109) 2025-02-01 22:48:52 +01:00
Jelle Meeus
00b8a3f419
feat(Core/WorldState): implement Battle for Sun's Reach Event (#21219)
Co-authored-by: killerwife <killerwife@gmail.com>
Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>
Co-authored-by: MantisLord <sabinprosper@gmail.com>
2025-01-31 13:19:12 +01:00
Kitzunu
0733c30471
refactor(Core/Player): Improve Channel.RestrictedLfg handling (#21145) 2025-01-21 19:09:31 +01:00
Kitzunu
847d2156fc
refactor(Core/Loot): Simplify GetFishLoot with for loop and merge Get… (#21217) 2025-01-20 14:09:27 +01:00
Kitzunu
bff594c4f5
feat(Unit/Misc): HasAnyAuras() HasAllAuras() HasAuras() (#21040) 2024-12-26 05:51:54 -03:00
Exitare
98b426bf3a
feat(Core/Player) Option to adjust max rest bonus via config (#20836) 2024-12-14 20:51:28 +01:00
Jelle Meeus
993bdcb84e
feat(Core/Player): implement Spell Queue (#20797) 2024-12-12 11:59:52 +01:00
IntelligentQuantum
9f37794f5c
Fix(Core/Player): Energy regen rate bonuses (#20321) 2024-12-12 06:53:39 +01:00
Tereneckla
8e080f1e60
fix(Core/Pet): Remove unnecessary Pet Class reassignments (#20614)
remove unnecessary class assignment
2024-12-01 17:16:13 -03:00
gontrannopier
cf7959238a
fix(Core/Players): don't set full heath/mana/rage while Dead (#20723)
fix level up while dead -> check if player is not dead, then update health/mana/rage/..

Co-authored-by: gontrannopier <gontrannopier@gontrannopier.com>
2024-12-01 17:09:26 -03:00
Kitzunu
ed008a8780
refactor(Core/Spells): Add helpers for HasAuraType (#20802) 2024-12-01 08:50:59 -03:00
FingerKnoten
593ca4dae1
fix(Core/Player): properly update m_usedTalentCount (#20232) 2024-11-16 22:31:24 +01:00
silviu20092
87fbdb7967
feat(Core/Scripting): Add hook for applying weapon damage (#20350)
Add hook for applying weapon damage
2024-11-14 05:35:26 -03:00
manstfu
21c5575d1a
fix(Core/Player): Nerfing Heirloom Weapons Damage (#20357)
Fixing heirloom damage

Co-authored-by: ariel- <ariel-@users.noreply.github.com>
2024-11-13 21:53:03 +01:00
Jelle Meeus
3565e4a9eb
feat(Core/WorldState): improved WorldState scripting (#20141)
* implement world state script

based on
0b87ca9d9e

Co-authored-by: killerwife <killerwife@gmail.com>

* refactor to use onleave and onenter instead of spell_area

allows players to right click remove adal's buff

* add MapMgr.h

* refactor: use condition enum instead of uint32, prefix WORLD_STATE where needed

* remove lock from WorldState::Update

sWorldState->Update() is only called from World::Update

* remove unsafe SmartAI action of setWorldState

---------

Co-authored-by: killerwife <killerwife@gmail.com>
2024-11-12 12:15:27 -03:00
Angelo Venturini
47c61b2576
fix(Core/BG): Fix double method call on removing a player (#20156) 2024-10-24 09:12:29 -03:00
Stefano Borzì
f6de601ddd
new BattlegroundDesertionTypes for hook OnBattlegroundDesertion (#20039)
* new BattlegroundDesertionTypes for hook OnBattlegroundDesertion

* chore: minor improvements

---------

Co-authored-by: laasker <79991768+laasker@users.noreply.github.com>
2024-09-27 22:19:56 +02:00
IntelligentQuantum
985410f184
feat(Core/Items): Delete old item id from recovery item (#18332) 2024-09-22 08:32:16 +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
Jelle Meeus
8d7463c670
fix(Core/PlayerStorage): Equip OH, 2H, Titan's Grip weapon swapping (#19884)
titan's grip, unequip with full bags
2024-09-13 16:15:25 -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
Grimdhex
221dbd3fdb
chore(Apps/Codestyle): add new codestyle checks for pointers and range loops (#19841)
* chore(Apps/Codestyle): add new codestyle checks for pointers and range loops

* revert a typo
2024-09-03 13:02:38 -03:00
Kitzunu
9af86553c5
chore(Core/Misc): update floor and ceil to std (#19837) 2024-09-03 08:01:00 -03:00