Commit Graph

2141 Commits

Author SHA1 Message Date
Skjalf
b0decf9ce4 feat(Core/AI): Update the BossAI scheduler in the parent class (#14952) 2023-02-11 19:17:01 -03:00
Pedro Antonio
2e6c28c4d8 feat(Core/Pet): DK Petname generation locale (#14059) 2023-02-11 18:21:43 -03:00
Skjalf
76c9eb9159 feat(Core/AI): Implement delay option to the Talk() function (#14950) 2023-02-11 17:23:57 -03:00
UltraNix
f496535cc8 fix(Core/AI): Fixed mobs attacking in defensive state. (#14947) 2023-02-11 12:06:17 -03:00
UltraNix
4f2aa6eb1f fix(Core/Vehicles): Crashfix. (#14941) 2023-02-11 09:50:56 +01:00
UltraNix
da70db415b fix(Core/Config): Added new config to make pet's health be modified b… (#14051) 2023-02-11 00:08:28 -03:00
55Honey
a1fb48391b feat(Core/Scripting): Implement OnBeforeSetBossState (#14891) 2023-02-07 13:15:17 -03:00
Maelthyr
32587b7659 feat(Core/Unit): Combat pulse (#14792)
Co-authored-by: Treeston <treeston@users.noreply.github.com>
2023-02-05 17:19:10 -03:00
Kitzunu
409c7356ea refactor(Core/ObjectMgr): Load Creatures.CustomIDs into stores (#14835) 2023-02-05 09:32:41 -03:00
Skjalf
dba8c49bce chore(Core/Object): Rename GetGOData() to GetGameObjectData() (#14875) 2023-02-05 08:35:52 -03:00
UltraNix
61dec3f143 fix(Core/Socket): CMSG_WARDEN_DATA should not reset idle connections. (#14865) 2023-02-05 11:47:59 +01:00
Angelo Venturini
0ed7813e84 refactor(Core/Instance): make SetBossState void (#13412) 2023-02-05 00:05:20 +01:00
UltraNix
b1bc1c24e4 feat(Core/Scripting): Added new hook: OnInstanceIdRemoved. (#14670)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: 55Honey <71938210+55Honey@users.noreply.github.com>
2023-02-04 19:56:20 -03:00
Skjalf
8aa331b432 fix(Core/Creature): Fix bosses with hard reset flag not respawning an… (#14862) 2023-02-04 15:35:53 -03:00
Kitzunu
b94d5b94ae fix(Core/Calendar): Correct calculation of reset time (#14834) 2023-02-01 06:18:13 -03:00
UltraNix
579a1c0fa4 fix(Scripts/Spells): Nether Portal - Perseverence should not increase… (#13951) 2023-01-31 22:54:23 +01:00
Maelthyr
6bd7843363 refactor(Core/AuctionHouse): Remove Hungarian notation (#14097) 2023-01-31 22:52:56 +01:00
Skjalf
1fc1e1d5b7 feat(Core/SmartAI): Implement SMART_EVENT_SUMMONED_UNIT and SMART_EVE… (#14811)
Co-authored-by: jackpoz <giacomopoz@gmail.com>
2023-01-31 22:50:34 +01:00
UltraNix
8981f58682 fix(Core/Spells): Cleasing, Healing Stream Mana Tide totems should ig… (#14679) 2023-01-31 10:53:17 -03:00
AnchyDev
50e2eb8593 fix(Core/SmartAI) Fix null reference when summoning (#14812) 2023-01-31 09:18:39 -03:00
Skjalf
c12d56f2d1 feat(Core/ObjectAccessor): Helper to access creature/object by DB GUID (#14802) 2023-01-31 06:21:50 -03:00
Skjalf
2aeeee9c83 fix(Core/Spells): Remove all hardcoded restrictions for pick pocket sp… (#14788)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-01-29 12:12:21 -03:00
Skjalf
bf30c66ba4 feat(Core/GameObject): Expand IsSummonedBy() to GameObjects (#14789)
Co-authored-by: jackpoz <giacomopoz@gmail.com>
2023-01-29 09:44:33 -03:00
Skjalf
f59ee4ef7c feat(Core/Creature): Actually despawn creatures on evade with Despawn… (#14786) 2023-01-28 18:47:15 -03:00
Skjalf
b4e3f1310b feat(Core/Unit): Add KillSelf overload (#14785)
Co-authored-by: jackpoz <giacomopoz@gmail.com>
2023-01-28 17:57:23 -03:00
UltraNix
9ce8b8cf29 fix(Core/Players): Fixed sending power regen update to nearby players. (#14043) 2023-01-28 11:03:56 +01:00
UltraNix
1441ae7d7c fix(Scripts/Command): Command gm visible on should not mark you wit… (#14057) 2023-01-28 11:03:46 +01:00
Maelthyr
6d5cc744aa refactor(Core/World): Remove Hungarian notation (#14095)
Co-authored-by: Syllox <AmanThul-Project@proton.me>
2023-01-28 11:03:22 +01:00
UltraNix
7f7a2f5a92 fix(Core/Creatures): Critters should start fleeing upon entering comb… (#14253) 2023-01-28 11:01:43 +01:00
UltraNix
131e69d691 fix(Core/Maps): Increased visibility distance inside Ahn'Qiraj Temple… (#14271) 2023-01-28 11:01:30 +01:00
Benjamin Jackson
fafeacbcad fix(Core/PlayerQuest): Get base skill value for quest prereqs. (#14393) 2023-01-28 11:00:18 +01:00
Benjamin Jackson
c8bbea9e1b fix(Core/GameObject): Make fishing bobber finish a channeled spell rather than interrupt in all cases. (#14422) 2023-01-28 11:00:07 +01:00
UltraNix
9b59f35cb8 fix(Core/Spells): Fixed Master of Elements not refunding mana. (#14665) 2023-01-28 10:59:25 +01:00
UltraNix
7d65250414 fix(Core): Crashfix. (#14667) 2023-01-28 10:58:58 +01:00
UltraNix
d25ca1f963 fix(Core/Battlegrounds): When team loses the base in EotS, dead playe… (#14668) 2023-01-28 10:58:41 +01:00
UltraNix
7241e48a9a fix(Core): Crashfix. (#14680) 2023-01-28 10:58:06 +01:00
UltraNix
4e01b95777 fix(Core/Combat): Pets should put their owners in combat only on init… (#14682) 2023-01-28 10:57:52 +01:00
UltraNix
44226e4754 fix(Core/Spells): Update crit chance on shapeshifting to/from feral f… (#14683) 2023-01-28 10:57:38 +01:00
NinjaPleezAC
716a822b48 fix(Core/Unit): Petrified Lichen Guard effect (#14436)
Co-authored-by: NinjaSoftworks <121171014+NinjaSoftworks@users.noreply.github.com>
2023-01-26 14:58:12 -05:00
Skjalf
aeed96f3b7 feat(Core/AI): Move TaskScheduler to BossAI class (#14757) 2023-01-26 13:46:30 -03:00
Benjamin Jackson
916d4f50da chore(Core/ObjectMgr): Adjust a few comments/logs to reflect recent changes with stat handling. (#14759) 2023-01-26 05:29:44 -03:00
UltraNix
3fee40be7d fix(Core/Creatures): Spells casted by player should tap the creature … (#14725)
…only if in combat with it.
2023-01-26 04:38:16 -03:00
UltraNix
ff8374ac98 fix(DB/SAI): Caretaker Smither. (#14445)
Fixes #14384
Author: @Gultask 

<!-- First of all, THANK YOU for your contribution. -->

## Issues Addressed:
<!-- If your fix has a relating issue, link it below -->
- Closes #14384

## Tests Performed:
<!-- Does it build without errors? Did you test in-game? What did you
test? On which OS did you test? Describe any other tests performed -->
- Tested ingame.

## How to Test the Changes:
<!-- Describe in a detailed step-by-step order how to test the changes
-->
`.go c id 20363`

<!-- If you intend to contribute repeatedly to our project, it is a good
idea to join our discord channel. We set ranks for our contributors and
give them access to special resources or knowledge:
https://discord.com/invite/DasJqPba)
Do not remove the instructions below about testing, they will help users
to test your PR -->
## How to Test AzerothCore PRs
 
When a PR is ready to be tested, it will be marked as **[WAITING TO BE
TESTED]**.

You can help by testing PRs and writing your feedback here on the PR's
page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

**REMEMBER**: when testing a PR that changes something **generic** (i.e.
a part of code that handles more than one specific thing), the tester
should not only check that the PR does its job (e.g. fixing spell XXX)
but **especially** check that the PR does not cause any regression (i.e.
introducing new bugs).

**For example**: if a PR fixes spell X by changing a part of code that
handles spells X, Y, and Z, we should not only test X, but **we should
test Y and Z as well**.

Co-authored-by: Gultask <gultask@gmail.com>
2023-01-25 17:00:19 -03:00
Benjamin Jackson
4e2270c935 feat(Core/ObjectMgr): Add handling specific to heroic player level stats (DKs). (#14378) 2023-01-25 13:14:31 -03:00
M'Dic
437d93926f fix (core): macos12 depreciation workflow error / security CWE-120 (#14746)
* fix (core): macos12 depreciation workflow error

Fix workflow error message:
azerothcore-wotlk/src/common/Utilities/Util.cpp:558:9: fatal error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(buffer, "%02X", bytes[i]);

* Update BattlegroundAV.cpp

* more macos12 fixit

* Update spell_generic.cpp
2023-01-23 06:13:27 -05:00
Axel Cocat
513dab0740 feat(Core/Mail): call CanSendMail() even if no items are sent (#14435)
* feat(Core/Mail): call CanSendMail() even if no items are sent

* Update src/server/game/Handlers/MailHandler.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2023-01-22 20:15:34 +01:00
UltraNix
1de52e5570 fix(Core/Formations): Implemented new creature formation flag: GROUP_… (#14537)
fix(Core/Formations): Implemented new creature formation flag: GROUP_AI_FLAG_ACQUIRE_NEW_TARGET_ON_EVADE.

Fixes #14494
2023-01-19 20:08:51 +01:00
55Honey
e9b040e3d2 feat: getter for the used instance IDs (#14677)
* feat: getter for the used instance IDs

* doxygen
2023-01-15 15:47:49 +01:00
Kitzunu
12f4a28b01 fix(Core/Characters): Correctly update char count on realm selection (#14685) 2023-01-15 15:44:17 +01:00
天鹿
14885e3e96 fix(core/packets): reduce sending unnecessary packets (#13198)
Co-authored-by: Dehravor <dehravor@gmail.com>
2023-01-15 15:31:00 +01:00