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
edd7e10dfc
fix(Core/Spells): Resolve a case of triggered spells prolonging combat. ( #19819 )
...
* Init.
* Expand trigger info check.
* Enclose evaluation in parentheses.
Maybe workflow will be happy?
2024-09-11 11:52:15 -03:00
Stefano Borzì
a971f373a0
fix: default bgarenas visibility distance default value ( #19938 )
...
* fix: default bgarenas visibility distance default value
* chore: update worldserver.conf.dist
2024-09-11 11:50:45 -03:00
Grimdhex
56d2cc7b4c
refactor(Cote/Unit): cleanup - part2 ( #19821 )
...
* fix(Core/AI): remove an unused variable
* Move variables at the end of each sections
* reorder several methods
* remove few inline defintions
* few codestyle fixes
2024-09-11 11:50:24 -03: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
00e35a201e
fix(Core/AI): Reduce movement leash extension interval. ( #19923 )
...
* Init.
* Use GetGameTime() instead of system call.
Co-Authored-By: Anton Popovichenko <walkline.ua@gmail.com >
* Update leash timer if rooted.
* Remove unnecessary checks, add extension for fanning.
More parity with VMaNGOS implementation.
---------
Co-authored-by: Anton Popovichenko <walkline.ua@gmail.com >
2024-09-11 03:25:32 -03:00
Benjamin Jackson
cdc00b42bd
fix(Core/AI): Add back leash update. ( #19916 )
...
Init.
2024-09-08 20:49:28 +02:00
天鹿
e7448f2986
fix(Scripts/Commands): .gps formatting transport offset ( #19890 )
...
* Update cs_misc.cpp
* Update PlayerUpdates.cpp
2024-09-07 01:03:41 -03:00
天鹿
dd2167b00b
fix(Core/AI): Creature SetInCombatState Leashing. ( #19889 )
...
* Update Unit.cpp
* Update pit_of_saron.cpp
* Update Unit.cpp
2024-09-07 01:03:19 -03:00
Benjamin Jackson
632d7f5f9e
fix(Core/Unit): Add leash extension with damage dealt. ( #19880 )
...
Init.
2024-09-06 17:02:53 -03:00
天鹿
9dae87595d
fix(Core/Creature): Creature Scale. ( #19722 )
...
Update Creature.cpp
2024-09-05 11:56:17 -03:00
Benjamin Jackson
bf18b9bdfb
fix(Core/AI): Improve creature leashing behavior. ( #19751 )
...
* Init.
https: //github.com/vmangos/core/commit/7d2f1e2923734ea1b983eeaa0208cfd158d4af02
Co-Authored-By: ratkosrb <35845488+ratkosrb@users.noreply.github.com >
* Hackfix for pets.
* Whoops.
* Correct evade uses.
* Conflict.
* Actually fix grace timer.
* Add visibility distance check.
Creatures should always fail combat checks in the open world if they're outside of visibility distance, might not be the case for worldbosses.
---------
Co-authored-by: ratkosrb <35845488+ratkosrb@users.noreply.github.com >
2024-09-03 21:08:56 +02: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
Anton Popovichenko
9999a80c96
feat(Core/Achievements): Add possibility to complete achievements and update achievement criteria for offline players. ( #19851 )
2024-09-03 13:05:23 -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
Andrew
0954e314a0
fix(Scripts/BlackTemple): Fix Zerevor not casting Dampen Magic OOC ( #19768 )
...
* fix(Scripts/BlackTemple): Fix Zerevor not casting Dampen Magic OOC
* Update boss_illidari_council.cpp
* recast every 1min
* implement the recast checks
* Update CreatureAI.h
* Update boss_illidari_council.cpp
* Update boss_illidari_council.cpp
* fix ooc cast
* Update boss_illidari_council.cpp
* always respect the 60s lock
* Update boss_illidari_council.cpp
* Update boss_illidari_council.cpp
2024-09-02 20:44:34 -03:00
Jelle Meeus
0504c7f9de
fix(Core/GameObject): fixup allow use of Mage portal if caster is offline and still in group ( #19853 )
...
* fix portals
* fixup! fix portals
* fixup! fixup! fix portals
2024-09-02 14:00:15 -03:00
Jelle Meeus
5d4c85143c
fix(Core/GameObject): Allow use of Mage portal if caster is offline and still in group ( #19797 )
...
search group of user for ownerGUID
2024-09-01 20:56:05 -03:00
Kitzunu
5d31b9f98f
refactor(Core/Item): Add helpers ( #19828 )
2024-08-31 19:38:50 -03:00
Benjamin Jackson
f88812443d
refactor(Core): Correct typo. ( #19830 )
...
Init.
2024-08-31 17:38:03 -03:00
Walter Pagani
3b45e90e41
fix(Scripts/ICC): NPC Muradin Dialogues ( #18931 )
...
Co-authored-by: Meji <alvaro.megias@outlook.com >
Co-authored-by: 天鹿 <18535853+PkllonG@users.noreply.github.com >
2024-08-31 17:34:56 -03:00
Benjamin Jackson
8874953862
fix(Core/CharmInfo): Respect charm spell indices when adding to action bar. ( #19811 )
...
Init.
2024-08-31 10:36:57 -03:00
ianmeesters
a83cd03bfb
feat(Core/Player): add OnCalculateTalentsPoints hook ( #19749 )
...
* playerTalentsHook
* oeps :#
* :#
* does this work?
* make reference
---------
Co-authored-by: Amy Fang <amy@cavemail.ddns.net >
2024-08-30 09:06:07 -03:00
Grimdhex
2f85097413
docs(Core): improve several functions documentation ( #19677 )
...
* initial release
* fix reviews
* fix some typo and add new documetations for MotionMaster
* new update and fix the cli-codestyle
* fix typo
* fix reviews
2024-08-28 08:17:24 -03:00
Benjamin Jackson
5ffbfdd5d6
fix(Core/Creature): Fix grace period for can attack check. ( #19763 )
...
Init.
2024-08-28 08:13:06 -03:00
Tereneckla
f2ed6f791b
fix (Core/Unit): add AutoRpeatSpell delay to Auto Shot as well ( #19603 )
...
Update Unit.cpp
2024-08-26 07:20:23 -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
Andrew
c0b6eae0e1
fix(Core/Spells): Fix movement impairment auras not being removed ( #19684 )
2024-08-22 15:09:43 -03:00
Saqra1
087acc58bf
fix(Core/PetHandler): Allow PetAI to handle flags ( #19446 )
...
When a pet ability was cast, PetHandler reset all CharmInfo flags before
calling PetAI methods, setting the attack flag to true every time.
This commands the pet to go and chase the target which is not correct
when the state is COMMAND_STAY.
PetAI already handles the scenario, it just wasn't getting the actual
pet attack state.
2024-08-19 13:15:39 -03:00
Kitzunu
337135bf9e
refactor(Core/Misc): Use NpcFlag helpers ( #19676 )
...
* chore(Core/Misc): Use HasNpcFlag instead of HasFlag
* extend to all npcflag helpers
2024-08-19 10:17:02 +02:00
Kitzunu
e33a56d89b
fix(Core/Creature): Nullcheck for questgreeting greeting ( #19669 )
...
* fix(Core/Creature): Nullcheck for questgreeting greeting
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/19659
* Update GossipDef.cpp
2024-08-18 06:41:18 -03:00
Grimdhex
5cbe485785
fix(Core/PlayerUpdates): incorrect backslash in a debug_log ( #19630 )
2024-08-15 18:44:07 -03:00
Grimdhex
9dc20bc261
fix(Core/Entities): crash fix cause by a pointer change in #19622 ( #19633 )
...
* fix(Core/Entities): crash fix cause by a pointer change in #19622
* fix blank space for codestyle check
2024-08-15 16:28:50 -03:00
Grimdhex
7457aef78d
refactor(Core/Entities): Cleanup Unit header file ( #19622 )
...
* move several enum definitions in a new files
* move more things
* remove the include comment
* move the related code to CharmInfo in this own file
*original idea of Ovahlord
Co-Authored-By: Ovahlord <18347559+Ovahlord@users.noreply.github.com >
* fix clang build errors and few blank lines
* missing forward declaration
* new tentative to fix gcc/clang build
* add several include could be necessary for gcc/clang compilation
* .
* revert some include since the last AC update
* fix some loop inconsistencies
* align all enums in UnitDefine.h
---------
Co-authored-by: Ovahlord <18347559+Ovahlord@users.noreply.github.com >
2024-08-15 05:12:44 -03:00
Kitzunu
2e02c76399
fix(Core/Creature): quest_greeting_locale ( #19615 )
...
* fix(Core/Creature): quest_greeting_locale
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/14845
2024-08-13 21:09:36 +02: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
Saqra1
ed824de7b8
fix(Core): Ritual animations ( #19602 )
...
Channel the same spell as the original caster when clicking on a ritual
portal, but ignore the effects of the spell.
Co-authored-by: killerwife <killerwife@gmail.com >
2024-08-13 11:54:17 -03:00
Benjamin Jackson
3b2b8406a8
fix(Core/Entities): Only add use to spell caster objects if cast succeeds. ( #19601 )
...
Init.
2024-08-12 08:46:20 -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
Francesco Borzì
02a05fbd4c
refactor(src/common): remove unused imports ( #19506 )
...
* refactor(src/common): remove unused imports
* fix: build
* chore: fix build
* chore: size_t -> std::size_t
* chore: fix fuckup from previous commit
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build with std::size_t
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
2024-07-30 20:06:46 -03:00
Francesco Borzì
54fadbda67
refactor(src/server/game/Entities): remove unused imports ( #19507 )
2024-07-28 16:39:39 -03:00
avarishd
3c9dc6ed78
fix(Core/Unit): Split Damage auras should ignore LOS ( #19357 )
2024-07-27 07:31:22 -03:00
Kitzunu
3fbded8f6b
refactor(Core/Chat): PSendSysMessage to fmt ( #19449 )
...
* refactor(Core/Chat): PSendSysMessage to `fmt`
2024-07-23 23:48:46 +02:00
avarishd
618f97bee6
feat(Core/Unit): Enable/Disable Daze config ( #19454 )
...
* daze
* bruh
* bruhx2
2024-07-20 15:53:00 -03:00
Kitzunu
21f86d1c3c
chore(Core/Misc): Remove deprecated code ( #19413 )
...
* Config - Deprecated for 3 years
* ChatCommand - Deprecated for 2 years
* getLevel() - Deprecated for 2 years
* SendGlobalText - Deprecated for 8 years +
2024-07-20 09:11:01 +03:30
Benjamin Jackson
94d3caaf1b
fix(Core): Further adjust packet structure for attack stop opcode. ( #19438 )
...
* Init.
* Fixy fix.
2024-07-19 06:58:58 -03:00
Benjamin Jackson
295e4dd3c6
fix(Core): Correct packet structure for combat stop messages. ( #19434 )
...
* Init.
* Reviewed changes.
2024-07-18 21:19:36 -03:00
Jelle Meeus
9f5b01ab37
fix(Core/Unit): add melee spell breaking for spells with cast time ( #19376 )
...
melee spells breaking
2024-07-17 12:49:43 +02:00
Saqra1
a950a7f44e
fix(Core/Pets): Add option to revive pets with full mana ( #19383 )
...
* fix(Scripts/Spells): Revive pets with full mana in bgs
* Pets were incorrectly revived without restoring its mana
* Closes #15894
* ready for merge
---------
Co-authored-by: Saqra1 <>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
2024-07-17 12:38:10 +02:00