Commit Graph

96 Commits

Author SHA1 Message Date
UltraNix
6c60dc3841 fix(Core/Spells): Kill credits given via spells should always be awarded to players 2022-03-15 15:55:55 +01:00
Nefertumm
707968ee95 fix(Scripts/BlackwingLair): Nefarian (#10536) 2022-03-09 13:32:09 -03:00
UltraNix
e4d3f57d7c fix(Scripts/Raids): some corrections to Broodlord Supression Room: (#10834)
Supression traps should always hit players.
Supression traps should not be disarmed after Broodlord defeat.
Supression traps should be visible after disarm.
Fixes #10768
2022-03-03 11:29:31 +01:00
acidmanifesto
69e2f2e3aa fix/feat: (Core/PacketIO): updated sound and creature addon (#10813)
* fix\feat: (Core/PacketIO): updated sound and creature addon

updated SMSG_PLAY_SOUND, SMSG_PLAY_MUSIC and SMSG_PLAY_OBJECT_SOUND via tc cherry pick
https://github.com/TrinityCore/TrinityCore/pull/2363 and 0f1f7ef401 by @joschiwald  and @ForesterDev
This so far a attempt to align atleast with sound with tc, and correct a potentional issue of hearing creature sounds that is not in visible range. I notice PlaySound was being defined in some weird dependency as it isnt with tc so I renamed it to Playsound. Notice a isLarge still being used in the creature addon when it was depreciated, so i removed that a that seem to of interfered with visibilitydistanceType.

Co-Authored-By: joschiwald <736792+joschiwald@users.noreply.github.com>
Co-Authored-By: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
2022-02-26 10:05:58 -05:00
Kitzunu
455899dc75 fix(Core/Misc): Change const to be after type name (#10591) 2022-02-14 16:05:45 -03:00
UltraNix
0b02ba87fc fix(Core/Reputations): Faction rep gained by killing mobs is now prop… (#9737)
* fix(Core/Reputations): Faction rep gained by killing mobs is now properly rounded up.

Do not increase reputation rank if exceeds max rank cap.
Fixes #8718
2022-02-05 07:37:00 -03:00
Kitzunu
8f249a3d84 fix(Core/Misc): Revert commits causing massive delays (#10408)
* this reverts commit (674b168add)

* this reverts commit (b085ee61eb)

* closes https://github.com/azerothcore/azerothcore-wotlk/issues/10407
2022-01-28 16:45:47 -05:00
acidmanifesto
b085ee61eb fix (core): EffectInstaKill Prevents spell animation fix (#10379)
* fix (core): EffectInstaKill Prevents spell animation before deal damage execution

This fixes the issue of spell animations of chain effects of a spell dealing with EffectInstaKill. This was identified as a issue in support of @malcrom 's current scripting efforts. We fix the issue by putting a half second delay and making the delay of a function possible and independent.

Co-Authored-By: Malcrom <malcromdev@gmail.com>

* Fix double to float

Co-Authored-By: Malcrom <malcromdev@gmail.com>

* Remove the STD

I put the STD in STUD and all I need is U

* Update src/server/game/Spells/SpellEffects.cpp

per @kitzunu the great

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

* Update src/server/game/Spells/SpellEffects.cpp

per @nefertumm the beast

Co-authored-by: Nefertumm <nefertum.dev@protonmail.com>

* Update src/server/game/Spells/SpellEffects.cpp

Co-authored-by: Kargatum <dowlandtop@yandex.com>

* Update src/server/game/Spells/SpellEffects.cpp

Co-authored-by: Kargatum <dowlandtop@yandex.com>

* Update src/server/game/Spells/SpellEffects.cpp

Co-authored-by: Kargatum <dowlandtop@yandex.com>

* Update src/server/game/Spells/SpellEffects.cpp

Co-authored-by: Kargatum <dowlandtop@yandex.com>

* Update src/server/game/Spells/SpellEffects.cpp

Co-authored-by: Kargatum <dowlandtop@yandex.com>

* Notes Added

Co-authored-by: Malcrom <malcromdev@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Nefertumm <nefertum.dev@protonmail.com>
Co-authored-by: Kargatum <dowlandtop@yandex.com>
2022-01-28 11:14:21 -05:00
Kargatum
5969df4e30 refactor(Core/Logging): switch to fmt style for LOG_ (#10366)
* feat(Core/Common): add support fmt style for ASSERT and ABORT

* correct CheckCompactArrayMaskOverflow

* 1

* Update src/server/game/Spells/Spell.cpp

* rework logging

* add fmt replace logs

* logging

* FMT_LOG_

* settings

* fix startup

* 1

* 2

* 3

* 4

* 5

* fmt::print

* to fmt
2022-01-27 16:44:41 +01:00
Kitzunu
1c0019ec18 fix(Scripts/Spell): properly script collapsing cave aura (#10092)
* cherry-pick commit (8d1a5fa126)

Co-authored-by: Sorikoff <46191832+Sorikoff@users.noreply.github.com>
2022-01-24 21:18:47 -03:00
Kargatum
8b7df23f06 feat(Core/Time): Implement saparated manager for game time (#8630) 2022-01-24 17:55:00 +07:00
UltraNix
1cbf52fb3d fix(Core/Spells): Fixed Revive Pet. (#10324)
Fixed #10267
2022-01-23 21:19:52 -03:00
Kargatum
c1ebda66ba fix(Core/Pets): fixed crash happening when current pet is forcibly removed (#10025) 2022-01-10 09:19:43 -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
UltraNix
f593f624b0 fix(Core/Spells): Add Target Processing (SMSG_SPELLLOGEXECUTE) to LAUNCH_TARGET phase. (#9765)
* Move EffectInterruptCast to LAUNCH_TARGET Phase.

* Source: TrinityCore.

* Fixes #8484
2022-01-04 13:49:15 +01: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
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
IntelligentQuantum
11a734bf2b refactor(Core/Scripts): Spell To Scripts (#9718) 2021-12-21 11:13:45 -03:00
Francesco Borzì
cbc7e5466a refactor(Core): remove unused imports (#9767) 2021-12-19 19:41:14 +01:00
Kitzunu
cbdc39ce1e fix(Core/Spells): Implement SPELL_EFFECT_FORCE_CAST_2 (#9613)
* cherry-pick commit (5cdc870acc)
2021-12-15 21:46:16 -03:00
UltraNix
d87d0a2ae8 fix(Core/Pets): Improved Revive Pet should affect dead despawned pet. (#9625)
* fix(Core/Pets): Improved Revive Pet should affect dead despawned pet.

Fixes #9589
2021-12-15 05:32:16 -03:00
UltraNix
52d4c43bcf fix(Core/Spells): Damage spell modifiers do not affect wands. (#9418)
Fixes #9130
2021-12-09 08:11:58 -03:00
IntelligentQuantum
1f645099b6 fix(Core/Spells): Steady Shot now deals the correct damage when using Heirloom Weapons. 2021-12-06 21:54:52 -03:00
Kargatum
51adbffae4 feat(Core/Modules): add separated lib for modules (#9281) 2021-12-02 20:28:58 +07:00
UltraNix
8d579b54ea fix(Core/Pets): Master Demonologist should not be removed on pet resummon. (#9317)
Fixes #8994
2021-11-30 07:03:04 -03:00
IntelligentQuantum
ab761c9865 fix(Core/Player): prevent crash exploit spam duel starting (#9226) 2021-11-28 16:42:53 -03:00
Kargatum
f62664c987 refactor(Core/Misc): headers cleanup (#9259) 2021-11-22 17:24:39 +07: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
Malcrom
f106de8788 refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708) 2021-11-01 17:04:32 +01:00
Skjalf
041b327c80 fix(Core/GameObject): Spawn linked traps when gameobjects are created (#8572) 2021-10-26 22:15:30 -03:00
UltraNix
c69e309681 fix(Core/Spells): Devastate vs Glyph of Sunder Armor. (#8705)
Fixes #8506
2021-10-24 23:31:19 -03:00
UltraNix
96441a91dc fix(Core/Spells): Auras triggered by talents/glyphs should be removed on respec. (#8671)
Fixes #8543
2021-10-24 01:23:04 -03:00
Kitzunu
bc82f36f1f refactor(Core/Unit): clean MonsterText methods (#6957) 2021-10-15 10:25:29 +02:00
UltraNix
4947887644 fix(Scripts/Brewfest): Rewritten Coren Direbrew's fight(#8040)
- Closes #7890
2021-10-08 21:03:38 +02: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
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
Kitzunu
6d83887abd refactor(Core/SpellEffects): Rework some of the null checks (#6987) 2021-09-29 22:03:57 +02: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
UltraNix
7406a01ac3 fix(Core/Spells): several improvements to cooldowns (#7559)
- Reworked spell category cooldowns.
- Implemented category cooldowns for pets.
- Properly shows pet spell cooldowns in player's UI.
- Corrected pet spell cooldowns with infinity duration.
- Do not add/remove infinity spell cooldown on aura apply/remove if casted by item.
- Closes #5263
2021-09-13 20:57:48 +02:00
lineagedr
1ae8e7eca5 fix(Core/Item): Luffa removing more than one bleed (#7752) 2021-09-12 19:28:23 +02:00
UltraNix
6b5c3ed04f fix(Core/Spells): Always melee attack target when charge is over. (#7316)
* fix(Core/Spells): Always melee attack target when charge is over.

Fixed #7266

* Update src/server/game/Movement/MovementGenerators/PointMovementGenerator.cpp
2021-08-17 20:36:30 +02:00
UltraNix
5b057798e7 fix(Core/Maps): Enabled dead players to be resurrected at the dungeon entrance if cannot enter it due to some reasons (#7236)
- Closes #6790
2021-08-07 16:10:07 +02:00
UltraNix
d356767432 fix(Core/Spells): do not attack focus target while charging (#7235)
- Closes #6721
2021-08-07 12:32:56 +02:00
UltraNix
d2e84eabb8 fix(Core/Items): Removed tradeable flag from items with temp enchants. (#7160)
Fixed #6325.

Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2021-08-05 18:37:10 +02:00
UltraNix
ffdd990aa4 fix(Core/Spells): Glyphs should send SMSG_LEARNED_SPELL/SMSG_REMOVED_… (#7161)
* fix(Core/Spells): Glyphs should send SMSG_LEARNED_SPELL/SMSG_REMOVED_SPELL packet in case of updating spell tooltips.

Fixed #6323

* chore(Core/CharacterHandler): improve comment

* chore(Core/SpellEffects): improve comment

Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2021-08-05 15:58:50 +02:00
UltraNix
36a1777b99 fix(Core/Movement): properly handle UNIT_STATE_CHARGING (#7152)
- Closes #6065
- Closes #6669
2021-08-05 13:55:11 +02:00
Kitzunu
4ace9f17de fix(Core/Spell): handle 5,000 Gold with SpellScript (#6996) 2021-07-24 00:40:20 +02:00
Kitzunu
9ab6ba9664 chore(Core/Misc): remove toxic language (#6988) 2021-07-21 23:57:20 +02:00
Kargatum
5787d00d54 chore(Core/Logging): replace most server loggers (#5726)
* chore(Core/Logging): replace most server loggers

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-06-21 03:07:12 +02:00
Francesco Borzì
23e9b85d0e refactor(Core): code cleanup (part 3) (#6380) 2021-06-19 01:25:29 +02:00