Commit Graph

170 Commits

Author SHA1 Message Date
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
Skjalf
99cc428511 fix(Core/Spells): Improved Drain Soul triggering from every target … (#8144)
...that dies and not just the one affected by Drain Soul and move the Drain Soul code to spell scripts

- TC Ports: d9743c984f (diff-ea612aafadff90005e88b243eb000369be9e5cb6f8dc85a008d31e42b156e0ec) and  2b1b36f561 (diff-ea612aafadff90005e88b243eb000369be9e5cb6f8dc85a008d31e42b156e0ec)
2021-10-07 18:58:46 +02:00
UltraNix
0d411ec2c3 fix(Core/Crash): Evade after cleaning threat references. (#8160) 2021-10-06 01:26:03 -03:00
UltraNix
3223f90bcb feat(Core/Spells): add helper to get clean and unmitigated damage for pro… (#7244) 2021-10-05 23:59:57 +02:00
Skjalf
a61d7c2bc8 fix(Core/Spells): correct hunter's Lock and Load procs (#8177)
- Move related code to spell scripts
- Fixes it proc'ing when the target is immune to snares
- Partial port of 746b838870
2021-10-04 15:49:16 +02:00
UltraNix
0c8fb1ea73 fix(Core/Movement): Properly handled root movement acks. (#8019)
Fixes #7892
2021-10-01 10:41:31 +02:00
Kargatum
52aa0e9966 feat(License): add new headers information about license (#7941)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2021-09-30 13:40:52 +07:00
UltraNix
c3259dabcf fix(Core/Spells): Implemented PROC_EX_ONLY_FIRST_TICK (#7933) 2021-09-21 06:02:06 -06:00
UltraNix
1bf4f54b32 fix(Core/Combat): Creatures should evade if its only victim is teleporting to other map (#7975) 2021-09-20 16:05:45 -06:00
Kitzunu
b70083599b fix(Core/Unit): Improve check for players to automatically stand if a… (#7869)
* fix(Core/Unit): Improve check for players to automatically stand if attacked

* vicitm -> victim
2021-09-19 22:14:57 +02:00
patou01
10ad759653 fix(Core/Unit): Improve pets behavior (#7836) 2021-09-16 02:27:28 -06:00
Kitzunu
2f449326e0 refactor(Core): Rename ...Manager to ...Mgr (#6910)
* Rename MapManager.h to MapMgr.h

* Rename BanManager.h to BanMgr.h

* Rename MapManager.cpp to MapMgr.cpp

* Rename BanManager.cpp to BanMgr.cpp

* Rename MapRefManager.h to MapRefMgr.h

* Rename ThreatManager.h to ThreatMgr.h

* Rename GridRefManager.h to GridRefMgr.h

* Rename ThreatManager.cpp to ThreatMgr.cpp

* Rename GroupRefManager.h to GroupRefMgr.h

* Rename HostileRefManager.h to HostileRefMgr.h

* Rename HostileRefManager.cpp to HostileRefMgr.cpp

* Rename MMapManager.h to MMapMgr.h

* Rename FollowerRefManager.h to FollowerRefMgr.h

* Rename VMapManager2.h to VMapMgr2.h

* Rename IVMapManager.h to IVMapMgr.h

* Rename MMapManager.cpp to MMapMgr.cpp

* Rename VMapManager2.cpp to VMapMgr2.cpp

* Rename RefManager.h to RefMgr.h

* Rename WaypointManager.h to WaypointMgr.h

* Rename WaypointManager.cpp to WaypointMgr.cpp

* Rename MPQManager.h to MPQMgr.h

* Rename MPQManager.cpp to MPQMgr.cpp

* Rename IMMAPManager.h to IMMAPMgr.h

* fix build

* Update Main.cpp

* chore(Core/Misc): Remove toxic language

* Revert "chore(Core/Misc): Remove toxic language"

* fix build

* build
2021-09-15 17:50:28 +02:00
Viste
a9796af174 fix(Core/Misc): bunch of crashfixes (#7307) 2021-09-14 14:38:56 +02:00
UltraNix
132f6c3c19 fix(DB/Spells): define Dust Field as a positive spell (#7798)
- Closes #5392
- Closes #6285
2021-09-13 16:10:31 +02:00
Francesco Borzì
efdb64af07 Revert "fix(Core/Unit): NPC enters into EvadeMode, he loses all his Auras (#6379)" (#7793)
This reverts commit 569e3399c6.
2021-09-09 10:51:19 +02:00
Kitzunu
df6ad0db29 refactor(DBC/Misc): Redefine & Define FactionTemplateFlags (#7697) 2021-09-07 02:07:37 +02:00
UltraNix
50991bdce4 fix(Core/Creatures): Creatures' guardian should not despawn on summon… (#7607)
- Closes #6211
2021-09-05 01:34:52 +02:00
UltraNix
a8c0a2cc89 fix(Core/Movement): (#7008)
- Get zone/area IDs from vmap data in the liquid update
- Add new method Map::getFullVMapDataForPosition to get area info and liquid info in a single vmap lookup
- Adjust GetZoneId/GetAreaId on WorldObject to always return these cached fields.
- Clean up liquid state handling on Unit and Player
- Implemented getting area id from gameobject spawns.
- Removed old core related to getting movement flags dependent on environment.
- Movement flags are now processed more precisely and dynamically.

Original source: TrinityCore.

- Closes #5086
- Updates #2208.
2021-08-25 12:41:20 +02:00
UltraNix
1b7d3708a6 fix(Core/Loot): (#7452)
- Players that did not participate in killing dungeon boss are not eligible to get loot.
- Players that are too far away from the looted object are not eligible to get loot.
- Players that released spirit and were outside the dungeon when the loot has been released are eligible to get loot.
- Players that have pending bind are not eligible to get loot.
- Properly get loot recipient for some chests in dungeons.
- All above fixes should work in any loot mode (group loot, master loot, etc.)
- Closes #2104.
2021-08-24 23:48:22 +02:00
UltraNix
1becd73f09 fix(Core/Movement): Rewritten follow movement generator for pets (#7324)
- Closes #7296
2021-08-24 11:08:50 +02:00
UltraNix
bd9b02a3af fix(Core/Movement): Properly updates MOVE_WALK in case of slowing auras. (#7371)
fixed #7301
2021-08-18 11:59:13 +02:00
UltraNix
3fa1aa1c17 fix(Core/Pets): controllable guardians (including pets) should not set the combat with its target when commanded to attack it (#7315)
- Closes #7264
2021-08-16 17:43:56 +02:00
UltraNix
622c9bc0dd fix(Core/Visibility): notify AI of nearby creatures immediately if forced update object visibility is called (#7274)
- Closes #7126
2021-08-12 19:10:03 +02:00