Yunfan Li
13edac562c
Merge branch 'master' into Playerbot
2025-06-01 14:55:09 +08:00
Benjamin Jackson
e6a29d96c8
fix(Core/Creature): Use home position for leash distance check for creatures with no movement. ( #22245 )
2025-05-30 10:35:28 -03:00
Benjamin Jackson
93ac73a4d1
fix(Core/Creature): Leashing improvements. ( #22129 )
...
Co-authored-by: killerwife <killerwife@users.noreply.github.com >
Co-authored-by: 天鹭 <18535853+PkllonG@users.noreply.github.com >
2025-05-23 18:22:56 +02:00
Yunfan Li
ce9343d916
Merge branch 'master' into Playerbot
2025-05-02 16:50:45 +08:00
Benjamin Jackson
5686f1e87a
fix(Core/Creature): Implement respond to call for help faction flag. ( #21959 )
2025-04-30 02:19:58 +01:00
Yunfan Li
7d431dc796
Merge branch 'master' into Playerbot
2025-02-19 22:29:36 +08:00
天鹿
c78217baa2
fix(Core/Creature): Correctly get flag from cinfo in IsDungeonBoss & IsImmuneToKnockback ( #21456 )
2025-02-15 18:10:48 +01:00
Andrew
062f9c4341
fix(Core/Map): Dynamic respawns: preserve original respawn timer and skip rares ( #21440 )
2025-02-14 11:30:59 +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
Andrew
16fa25b7a9
feat(Core/Maps): Implement dynamic respawn rates ( #21417 )
...
Co-authored-by: r00ty-tc <r00ty-tc@users.noreply.github.com >
Co-authored-by: Jelle Meeus <sogladev@gmail.com >
Co-authored-by Treeston
This is a partial cherry-pick of: 59db2eeea0
2025-02-12 15:06:42 -03:00
Yunfan Li
41415bb3c3
Merge branch 'master' into Playerbot
2025-02-11 22:35:57 +08:00
Andrew
7e29e023e8
fix(Core/Creature): Allow temp summons to respawn when despawning on … ( #21363 )
2025-02-10 08:46:31 +01:00
Andrew
79cbb00075
feat(Core/Creature): Implement HasFlagsExtra() helper to creature ( #21362 )
2025-02-08 14:07:04 -03:00
Yunfan Li
de3c2b553e
Merge branch 'master' into Playerbot
2025-02-04 23:40:06 +08:00
Kitzunu
17412174be
feat(Core/SAI): implement SMART_ACTION_DISABLE_REWARD ( #21105 )
2025-02-01 22:49:41 +01:00
Yunfan Li
e5c67bd47d
Merge branch 'master' into Playerbot
2025-01-31 18:29:34 +08:00
Grimdhex
edf2959a26
feat(Core/Creatures): implement a sparring system ( #19824 )
2025-01-26 09:40:37 +01:00
Yunfan Li
889b509313
Merge branch 'master' into Playerbot
2024-12-05 00:08:25 +08:00
Kitzunu
ed008a8780
refactor(Core/Spells): Add helpers for HasAuraType ( #20802 )
2024-12-01 08:50:59 -03:00
Riley S.
e9137d4d4d
fix(Core/Spells): Resolve invalid spell casts on dead players when the cast is valid. ( #20712 )
...
* Initial fix for #20509
* small revert
* Two way visibility between ghosts.
* clean up temporary changes.
* clean up debug code.
* small typo
* revert .gitignore
* fix codestyle
* Add missing flag, resolve issue where cast was failing while alive.
* Update SpellInfo.cpp
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
---------
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
2024-11-30 20:18:32 +01:00
Yunfan Li
1294d79764
Merge branch 'master' into Playerbot
2024-11-25 23:22:31 +08:00
Jelle Meeus
4b03e97a63
fix(Core/Creature): Set RespawnTime before AI Reset ( #20684 )
...
fix(Core/Creature): Set RespawnTIme before AI Reset
2024-11-22 12:23:21 -03:00
Yunfan Li
abd9b4ebb8
Merge branch 'master' into Playerbot
2024-10-30 21:43:42 +08:00
Francesco Borzì
2ce2c8cf3a
refactor(src/server/game/*): remove unused imports (big part 3) ( #20315 )
2024-10-27 13:10:28 +01:00
Yunfan Li
418afce6d7
Merge branch 'master' into Playerbot
2024-10-10 23:13:20 +08: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
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
Yunfan Li
910848c51b
Revert "Revert "Merge branch 'master' into Playerbot""
...
This reverts commit 2358b256f2 .
2024-09-17 23:14:42 +08: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
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
Yunfan Li
6f5b504e4c
Merge branch 'master' into Playerbot
2024-09-07 14:27:11 +08:00
天鹿
9dae87595d
fix(Core/Creature): Creature Scale. ( #19722 )
...
Update Creature.cpp
2024-09-05 11:56:17 -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
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
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
Benjamin Jackson
5ffbfdd5d6
fix(Core/Creature): Fix grace period for can attack check. ( #19763 )
...
Init.
2024-08-28 08:13:06 -03:00
Yunfan Li
a642358a43
Merge branch 'master' into Playerbot
2024-08-26 22:29:54 +08:00
Grimdhex
643362d697
refactor(Core/Object): adds consistency in the use of type object check ( #19671 )
2024-08-25 09:57:37 -03:00
Yunfan Li
72725635ba
Merge branch 'master' into Playerbot
2024-06-19 14:32:16 +08:00
Benjamin Jackson
d6d49a9e45
refactor(Core/ObjectMgr): Implement display probabilities. ( #19068 )
...
* Init.
Cherry-picked from TC commits 9d210476e5 and c488fb219a
Co-Authored-By: Traesh <9392905+traesh@users.noreply.github.com >
Co-Authored-By: Shauren <shauren.trinity@gmail.com >
* Add brute data.
Needs validation against what existed before, i.e. Classic change prevention.
* Add validation info for brute data.
* Remove incomplete data queries.
* Requested changes.
* Whitespace.
* Requested change.
Table name.
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
* Requested change.
Table name.
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
* Resolve the funny merge conflicts.
I wonder why git blame doesn't work on a file with 20k lines in it that's odd huh champ.
* Remove unused parameter.
* Remove uses of unused parameter.
* Use unused parameter.
Hopefully?
* I will cry.
* Sobbing endlessly.
* Remove comment.
* Adjust table structure query.
Remove length parameters and allow null for build value.
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
* Adjust column datatype and add check constraint.
---------
Co-authored-by: Traesh <9392905+traesh@users.noreply.github.com >
Co-authored-by: Shauren <shauren.trinity@gmail.com >
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
2024-06-16 18:12:16 +02:00
Yunfan Li
51219291a3
Merge branch 'master' into Playerbot
2024-03-03 11:58:01 +08:00
Andrew
6df652a8dd
fix(Core/Creature): Prevent combat movement disabled creatures from r… ( #18428 )
...
* fix(Core/Creature): Prevent combat movement disabled creatures from repositioning if target moves within model boundary
* fixbuild
* Apply suggestions from code review
2024-02-27 10:11:39 -03:00
Yunfan Li
5699c97d8c
Merge branch 'master' into Playerbot
2024-02-11 23:45:22 +08:00