Yunfan Li
418afce6d7
Merge branch 'master' into Playerbot
2024-10-10 23:13:20 +08:00
Benjamin Jackson
fd6d2efccb
fix(Core/Unit): Add mana drain effect to Black Bow of the Betrayer. ( #20155 )
...
* Init.
Co-authored by: stfxpi (stfx)
Original CMaNGOS commit: c750533b5e
* Add/adjust comments.
2024-10-09 06:00:20 -03:00
Jelle Meeus
a8d970caa7
fix(Core/Unit): add rage gain when attack is fully blocked, dodged or parried ( #19377 )
...
* generate rage if victim fully block, dodge, parry
* update rage calculation
* calc pct at the end
* update comment to link to Rage formulae and mention Bornak's bluepost
archived link to Bornak's bluepost
https://web.archive.org/web/20090604123729/http://forums.worldofwarcraft.com/thread.html?topicId=17367760070&pageNo=13#02500
2024-10-08 21:44:32 +02:00
Jelle Meeus
01b86ec7a6
fix(Core/Unit): update death state before handling RemoveAllAurasOnDeath() ( #20124 )
...
fix setDeathState
[PATCH] Don't allow units to enter combat upon death
91ebea4a77 .patch
Co-authored-by: trickerer <onlysuffering@gmail.com >
2024-10-04 11:01:36 -03:00
Yunfan Li
6eb5070cbc
Merge branch 'master' into Playerbot
2024-10-04 21:57:35 +08:00
Anton Popovichenko
9f58d55a1d
fix(Core/Items): Fix exploit where multiple auras could be applied from a single enchantment. ( #20128 )
2024-10-04 06:32:42 -03:00
Jelle Meeus
9a1f27121a
fix(Core/Unit): Flight Form riding crop, vehicle speed auras ( #20079 )
...
* vehicle aura stacking
Rename flight speed related auras
Co-authored-by: Laise <fenrisse@gmail.com >
* rename to better match existing flight auras
2024-10-01 21:39:42 +02:00
Francesco Borzì
784e80668d
refactor(src/server/game/Entities): remove unused imports ( #20096 )
2024-09-29 20:19:02 +02:00
Yunfan Li
9ebdbd8459
Merge branch 'master' into Playerbot
2024-09-29 23:22:47 +08:00
Jelle Meeus
6e4a9bbb14
fix(Core/Unit): fix Dual Wield for more creatures, CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK, creature disarm damage ( #20015 )
...
* enable CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK
* sql set CREATURE_FLAG_EXTRA_USE_OFFHAND
* use new HasOffHandWeaponForAttack instead of haveOffhandWeapon
no longer requires m_CanDualwield set to use Offhand attack
requires non-disarmed weapon in Offhand OR creature_flag_extra enabled
Co-authored-by: Ovah <dreadkiller@gmx.de >
Co-authored-by: Warlockbugs <warlockbugs@outlook.com >
* Make shapeshift forms which dont override attack speed use weapon damage
Co-authored-by: killerwife <killerwife@gmail.com >
* SetEquipmentSlots turning off damage update when using template default
Co-authored-by: killerwife <killerwife@gmail.com >
* Setup DualWield & Damage On Equipment Updates, implement Set and GetVirtualItem
Co-authored-by: Yatzii <47720837+Yatzii93@users.noreply.github.com >
* creature disarm damage
set disarm to reduce minmax damage by 50% instead of setting to 0
Co-authored-by: Warlockbugs <warlockbugs@outlook.com >
---------
Co-authored-by: Ovah <dreadkiller@gmx.de >
Co-authored-by: Warlockbugs <warlockbugs@outlook.com >
Co-authored-by: killerwife <killerwife@gmail.com >
Co-authored-by: Yatzii <47720837+Yatzii93@users.noreply.github.com >
2024-09-25 16:53:39 +02:00
Yunfan Li
66c55bc450
Merge branch 'master' into Playerbot
2024-09-22 21:56:15 +08: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
Benjamin Jackson
a0057b9e90
fix(Core/Spells): Resolve a case of triggered spells prolonging combat. ( #19991 )
...
* Revert "fix(Core/Spells): Revert triggered spell logic change. (#19983 )"
This reverts commit 3bb5ec779d .
* Add aura effect check.
Co-Authored-By: Anton Popovichenko <walkline.ua@gmail.com >
* Add comment, use target instead of owner.
* Adjust comment terminology.
---------
Co-authored-by: Anton Popovichenko <walkline.ua@gmail.com >
2024-09-19 09:49:56 -03:00
Yunfan Li
9780dbab7e
Merge branch 'master' into Playerbot
2024-09-17 23:15:28 +08:00
Yunfan Li
910848c51b
Revert "Revert "Merge branch 'master' into Playerbot""
...
This reverts commit 2358b256f2 .
2024-09-17 23:14:42 +08:00
Benjamin Jackson
3bb5ec779d
fix(Core/Spells): Revert triggered spell logic change. ( #19983 )
...
Revert "fix(Core/Spells): Resolve a case of triggered spells prolonging comba…"
This reverts commit edd7e10dfc .
2024-09-16 11:15:50 -03:00
Anton Popovichenko
92ec34753f
fix(Core/Creature): Add support for CREATURE_FLAG_EXTRA_NO_PARRY_HAST… ( #19927 )
2024-09-13 16:23:05 -03:00
Yunfan Li
2358b256f2
Revert "Merge branch 'master' into Playerbot"
...
This reverts commit 9973151927 , reversing
changes made to 6f5b504e4c .
2024-09-13 17:13:32 +08:00
Yunfan Li
9973151927
Merge branch 'master' into Playerbot
2024-09-12 22:49:08 +08: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
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
Benjamin Jackson
cdc00b42bd
fix(Core/AI): Add back leash update. ( #19916 )
...
Init.
2024-09-08 20:49:28 +02:00
Yunfan Li
6f5b504e4c
Merge branch 'master' into Playerbot
2024-09-07 14:27:11 +08: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
Yunfan Li
414805e692
Merge branch 'master' into Playerbot
2024-09-04 23:46:34 +08: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
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
Benjamin Jackson
f88812443d
refactor(Core): Correct typo. ( #19830 )
...
Init.
2024-08-31 17:38:03 -03:00
Yunfan Li
f8a28b6883
Merge branch 'master' into Playerbot
2024-08-30 22:38:08 +08: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
Yunfan Li
a642358a43
Merge branch 'master' into Playerbot
2024-08-26 22:29:54 +08: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
Yunfan Li
27b243e7b2
Merge branch 'master' into Playerbot
2024-08-18 23:02:22 +08: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
Yunfan Li
f5e44cd8a6
Merge branch 'master' into Playerbot
2024-08-01 15:41:23 +08: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
Yunfan Li
172f54b49a
Merge branch 'master' into Playerbot
2024-07-29 15:40:17 +08: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
Yunfan Li
c72188467a
Merge branch 'master' into Playerbot
2024-07-23 18:23:10 +08:00
avarishd
618f97bee6
feat(Core/Unit): Enable/Disable Daze config ( #19454 )
...
* daze
* bruh
* bruhx2
2024-07-20 15:53:00 -03:00
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
Yunfan Li
22132addce
Merge branch 'master' into Playerbot
2024-07-19 17:25:43 +08:00