Commit Graph

192 Commits

Author SHA1 Message Date
IntelligentQuantum
725b1266b4 refactor(Core/Packet): Chat (#9509)
* Chat

* .

* Update GameObject.cpp

* Update Object.cpp

* Update Player.cpp
2022-01-08 07:11:06 -03:00
UltraNix
2c6a692000 fix(Core/Entities): extend combo point system to all Units (#9816)
- Closes #1140
2022-01-07 11:18:03 +01:00
Kitzunu
cb7e355291 refactor(Core/Misc): sin() to std::sin() (#9795) 2022-01-06 19:29:40 +01:00
acidmanifesto
2d4e17fd16 refactor(Core/Creature): Remove Inhabit Type (#9272)
This is in reference to issue: https://github.com/azerothcore/azerothcore-wotlk/issues/4361
This is comprised of a cherry pick and partial tc cherry pick:
592516ae69
dbadb6369c
34cfa69efd
12de860b4a
a22bc236eb
2022-01-06 10:33:22 -03:00
acidmanifesto
d504a62293 fix(Core\OpCode): HandleFarSightOpcode (#9965)
* Change TO ThreadUNSAFE

This will process the far sight packet as a is not thread-safe - process it in World::UpdateSessions() compared to the former packet is thread-safe - process it in Map::Update().
This matches up with tc in everything we have with the HandleFarSightOpcode.

* Further Adjustments

* Move to Debug Loggin

TC has it as move to Debug Logging. Stating its a weird opcode handling issue which is not really known why.
2022-01-06 09:22:08 -03:00
Kitzunu
f04709a326 refactor(Core/Misc): ceil() to std::ceil() (#9791)
- prefer std functions over C functions
2022-01-03 10:11:39 -03:00
Skjalf
980f420746 fix(Core/Scripting): Solve issue with client crashes on login (#9971) 2022-01-02 12:36:14 -03:00
Skjalf
a5a66207c4 feat(Core/Scripting): OnBuildValuesUpdate hook (#9961) 2022-01-01 23:37:04 -03:00
Kitzunu
913e65f97f refactor(Core/Misc): fabs() to std::fabs() (#9790)
- prefer std functions over C functions
2021-12-31 20:41:00 -03:00
Kitzunu
69683a3472 chore(Scripts/Misc): Cleanup some more JustDied hooks (#9768) 2021-12-31 12:00:40 -03:00
Kargatum
e12494d993 feat(Core/Pets): Management refactoring (#9712)
* feat(Core/Pets): rework managment

* 1

* 2

* 3

* 4

* 5

* cs pet

* check before ressurect

* pet DECLINED_NAMES

* display

- https://github.com/azerothcore/azerothcore-wotlk/issues/9297

* ArenaSpectator

* 1
2021-12-30 18:45:13 -03:00
UltraNix
a54c84f349 fix(Core/Players): Removed old and invalid Player::SetInWater funct… (#9739)
* fix(Core/Players): Removed old and invalid `Player::SetInWater` function.

Updates #8729

* buildfix.
2021-12-28 09:34:45 -03:00
UltraNix
d0f8cf3dd4 fix(Core/Loot): Proeprly handle UNIT_DYNFLAG_LOOTABLE flag. (#9761)
Fixes #9741
2021-12-24 06:04:43 -03:00
UltraNix
07c93c2dfa fix(Core/Movement): Fixed adding wrong flag on root. (#9803)
* fix(Core/Movement): Fixed addind wrong flag on root.

Fixes #5891
2021-12-22 13:54:23 -03:00
Francesco Borzì
cbc7e5466a refactor(Core): remove unused imports (#9767) 2021-12-19 19:41:14 +01:00
UltraNix
2feb26d828 fix(Core/Units): Modify health dependent aura states on update rather than immediately on death. (#9641) 2021-12-16 22:41:01 -03:00
Kitzunu
89a1b5c9f4 fix(Core/Spells): Implement SPELL_AURA_PERIODIC_TRIGGER_SPELL_FROM_CL… (#9615)
* fix(Core/Spells): Implement SPELL_AURA_PERIODIC_TRIGGER_SPELL_FROM_CLIENT

* cherry-pick commit (b3b7f0761d)

* fix build
2021-12-16 20:29:33 -03:00
Branel
cac265525c fix(Core/Player): Interrupt flag capturing even if damage is absorbed. (#9445) 2021-12-16 09:43:09 -03:00
UltraNix
1cc9ea83ab fix(Core/Spells): Mind Control can be dispelled from friendly target. (#9689)
Fixes #9629
2021-12-15 04:29:22 -03:00
UltraNix
b1303e0e96 fix(Core/Loot): Set skinnable flag only after all loot was taken. Source: TrinityCore. (#9573)
Fixes #9318
2021-12-12 10:31:00 -03:00
Skjalf
2d55974c0c Revert "fix(Core/Spells): Forward core changes (#8841)" (#9631)
This reverts commit 85d2c39a48.
2021-12-10 15:31:48 +01:00
UltraNix
52d8e1b68a fix(Core/Spells): Channeled destination spells should not interrupt flag capturing. (#9472)
Fixes #9225
2021-12-09 23:45:01 -03:00
acidmanifesto
85d2c39a48 fix(Core/Spells): Forward core changes (#8841) 2021-12-09 18:24:16 -03:00
Kargatum
51adbffae4 feat(Core/Modules): add separated lib for modules (#9281) 2021-12-02 20:28:58 +07:00
UltraNix
5d544f6001 fix(Core/Spells) T9 2p Hunter bonus vs Mortal Shots. (#9246)
Fixed getting bonus damage from critical strikes for melee/ranged DoT spells.
Fixes #8859
2021-11-29 13:46:49 -03:00
IntelligentQuantum
683b7ae1e2 fix(Core/Entities): add missing nul pointer checks in HandleProcTrigger Spell (#9303) 2021-11-29 13:20:40 -03:00
UltraNix
0b551a055c fix(Scripts/Spells): Mind Control should put both caster and target in combat. (#9301)
Fixes #8938
2021-11-29 12:09:39 -03:00
IntelligentQuantum
ab761c9865 fix(Core/Player): prevent crash exploit spam duel starting (#9226) 2021-11-28 16:42:53 -03:00
patou01
801a20fce2 refactor(Core): Clean-up after FD (#8586) 2021-11-28 03:04:14 -03:00
acidmanifesto
29f49108a5 chore(Core): Remove unnecessary slang Cosmetic (#9325)
* Remove unnecessary slang

Removes ZOMG! that is used in the src in logging and notes. Completely Unnecessary. Contributes to nothing useful. Inflates source. Not needed at all in any shape or form. Not Developer Lingo either.

* Further Clean Up

Removed Profanity

* sensible grammar correction

* More ZOMG! removal
2021-11-25 04:31:54 -03:00
UltraNix
647c91605c fix(Core/Spells): Autoshot should not interrupt Volley (#9202)
- Closes #8883
2021-11-23 20:13:06 +01:00
Kargatum
f62664c987 refactor(Core/Misc): headers cleanup (#9259) 2021-11-22 17:24:39 +07:00
Skjalf
731d256420 refactor(Core/Cache): move the GlobalPlayerCache to its own class (#9166) 2021-11-18 16:53:36 +01:00
UltraNix
70fbaefa8e fix(Core/Movement): creatures should not cast while moving (#9141)
- Closes #8843
2021-11-15 14:39:36 +01:00
UltraNix
c3ed68bb5e fix(Core/Spells): health-dependent reactive states should reset on death (#9134)
- Closes #8798
2021-11-14 21:22:50 +01:00
UltraNix
3c8bcf31ac fix(Core/Spells): Steady Shoot should not suspend ranged attack timer. (#9125)
Fixes #9107
2021-11-13 22:58:22 +01:00
sschepens
b7f8083915 feat(Core/Misc): change how Position struct is retrieved (#9017)
Update Position::GetPosition() and similar methods signatures to reflect 2a4c9bc changes by return a Position object instead of accepting a Position parameter by reference.

Cherry pick of 2585e799f9
2021-11-10 23:43:00 +01:00
UltraNix
9f0a78a0ca fix(Core/Spells): Slam should suspend attack timers (#8981)
- Closes #8723
2021-11-07 20:40:48 +01:00
UltraNix
1926027066 fix(Core/Pets): controllable guardians (including pets) should not set the combat with its target when commanded to attack it. (#8877) 2021-11-04 23:49:57 +01:00
patou01
ea2c880fc8 fix(Core/Unit): Reduce mobs speed when low on health (#7932) 2021-11-04 10:43:24 -03:00
Malcrom
f106de8788 refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708) 2021-11-01 17:04:32 +01:00
Kitzunu
7f69acd466 fix(Core/Unit): remove wrong CombatStop() when charming (#8733) 2021-10-29 15:33:14 +02:00
UltraNix
db0c27fe43 fix(Core/Combat): Removed some invalid code about auto-acquiring a nearby target if primary target is not detectable by creature. (#8624)
Spells with sanctuary always delete hostile references (if not during encounter).
Update visibility should be always forced in case of invisibility/stealth auras.
Restored old Shadowmeld code.
Fixes #4764
Fixes #7125
2021-10-21 15:54:36 -03:00
jestermaniac
8c126075ff fix(Core/Entities): fix contested flag timer when logging out and in (#8558) 2021-10-16 22:26:13 -03:00
Kitzunu
bc82f36f1f refactor(Core/Unit): clean MonsterText methods (#6957) 2021-10-15 10:25:29 +02:00
jestermaniac
5d36c94a2d fix(CORE/Unit): Fix controllable guardians evading when not posed to be (#7959) 2021-10-14 11:48:37 -03:00
UltraNix
cb71cc0131 fix(Core/Units): clear emote state on attack rather than on combat st… (#8170)
- Closes #6281
2021-10-14 16:18:51 +02:00
jestermaniac
da69fec345 fix(Core/Entities): contested guards attacking after bg/recent pvp (#7518)
* fix(Core/Entities): contested guards attacking after bg/recent pvp

* fix(Core/Entities): contested guards attacking after bg/recent pvp

* Update Unit.cpp

* fix(Core/Entities): contested guards attacking after bg/recent pvp

* fix(Core/Entities): contested guards attacking after bg/recent pvp

* Update Unit.cpp
2021-10-14 13:21:18 +02:00
Axel Cocat
57658d821d fix(Core/Unit): perform melee attack when unit has not enough power for melee spell (#7996) 2021-10-12 12:23:52 +02:00
UltraNix
0769212db5 fix(Core/Spells): Fixed absorb auras not working with spell damage. (#8427)
Fixes #8412
2021-10-11 18:19:22 +02:00