Commit Graph

91 Commits

Author SHA1 Message Date
Kargatum
26f2abaaa9 feat(Core/Authserver): TOTP rewrite (#5620) 2021-05-12 18:57:10 -06:00
Silker
534ec53bb0 fix(Core/Scripts): Convert Galen's Escape to SAI (#5683) 2021-05-09 14:20:32 -06:00
UltraNix
44babc3c3a fix(Core/Pooling): Fixed less and less objects from pools being spawned the longer the server is running (#5572) 2021-05-08 12:39:09 -06:00
Emir
0b87bb0ddf fix(Script/Instance) [Deadmines] Smite Slam (#5373) 2021-04-29 20:59:09 -04:00
UltraNix
f4c226423d feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885) 2021-04-25 22:18:03 +02:00
v.tihomirov
620eb8e9f3 fix(DB): Scholomance Occultists behavior (#5314) 2021-04-25 21:02:52 +02:00
v.tihomirov
2e8ef021b6 Adjust Scholomance Kirtonos boss fight (#5313) 2021-04-25 00:57:37 -04:00
v.tihomirov
d624baba2a Fix Scholomance Gandling encounter (#5245) 2021-04-18 11:45:54 -04:00
Kargatum
4af4cbd3d9 feat(Core/Logging): rework logging (#4692)
* feat(Core/Logging): rework logging

* correct level for sql.sql

* del unused config options

* Correct build

* correct after merge

* whitespace

20:29:37 1. 'Player.cpp'. Replace (1)
20:29:37 2. 'ObjectMgr.cpp'. Replace (3)

* 1

* correct logging

* correct affter merge

* 1

* 2

* LOG_LEVEL_WARN

* #include "AppenderDB.h"

* 3

* 4

* 5

* 1. 'WorldSocket.cpp'. Replace (1)

* 6

* 1
2021-04-17 11:20:07 +02:00
Kitzunu
33aeadf8b6 refactor(Core/Misc): Define & Rename Attributes and flags (#5193) 2021-04-15 14:16:39 +02:00
Footman
c32cd06a78 fix(Core/Movement): fix multiple creature movement issues (#5097) 2021-04-09 20:56:19 +02:00
Kitzunu
f9d708b450 feat(Core/Instance): Add instance validation for creature scripts (#4596) 2021-04-05 15:34:26 +02:00
Francesco Borzì
f6a17164be fix(Core/License): issue with old files license (#4762) 2021-03-17 09:46:01 -06:00
Kitzunu
28f1dc5c0c refactor(Core): replace NULL with nullptr (#4593) 2021-03-02 01:34:20 +01:00
Stifler82
8195708962 fix(DB/Core/Creatures/SAI): Pyrewood Ambush Quest (#4649) 2021-02-28 14:27:07 +01:00
Kitzunu
dbc0ff6554 refactor(Core): sort #includes alphabetically (#4579) 2021-02-24 22:34:42 +01:00
T1ti
ccca2dedfa fix(Scripts/MoltenCore): Garr abilities timers (#4568) 2021-02-19 19:27:51 +01:00
Vox
0a5262a73e fix(core/Scripts): 'The Attack!' Quest Improvements/NPC Spawn Adjust (#4577) 2021-02-16 13:14:43 -05:00
Kitzunu
1a137dadde fix(Core/Script): Startup error in spell_bwl_shadowflame (#4474) 2021-02-10 17:53:30 -05:00
Kitzunu
bfcc3c6f87 refactor(Core/Spell): Move some SpellImmune from script to db (#4381)
* refactor(Core/Spell): Move some SpellImmune from script to db
2021-02-05 18:57:51 -05:00
Peter
f65cfb6f20 fix(DB/Creature): Convert npc_anchorite_truuen to sai (#4324)
* fix(DB/Core): Anchorite Truuen

Anchorote Truuen is escorted in quest Tomb of the Lightbringer, but he's
too fast and doesn't aggro on anything.

* Updated using suggestions from @pklloveyou

Co-authored-by: Zoidwaffle <zoidwaffle@gmail.com>
2021-02-02 00:13:01 +01:00
Kitzunu
0d52b4ca4a feat(Core/Spell): Implement ValidateSpellInfo (#4323)
* feat(Core/Spell): Implement ValidateSpellInfo

* cherry-pick from 2b5d7eef3a & a0a158b5b8

* sLog->outError

* cleanup

* convert to ValidateSpellInfo

* fix error log

* improve sLog->outError

* remove non related spells stuff from Validate

* remove the last

* build

* build x2
2021-02-01 18:57:25 +01:00
Yehonal
c8f43d8584 feat(Core/Movement): Improved pathfinding, collisions and movements (#4220)
Npc positioning
Implemented slope check to avoid unwanted climbing for some kind of movements (backwards, repositioning etc.)
Implemented backwards movement
Re-implemented circle repositioning algorithm (smartest than retail, but with the same feeling)
Fixed random position of summoned minions
Improved pet following movement. Also, they attack NPC from behind now. Thanks to @Footman

Swimming creatures
Fixed max_z coordinate for swimming creatures. Now only part of their body is allowed to be out of the water level
Fixed pathfinder for swimming creatures creating shortcuts for specific segments, now they swim underwater to reach the seashore instead of flying above the water level.
Creatures with water InhabitType but no swimming flag now, when not in combat, will walk on water depth instead of swimming. Thanks @jackpoz for the original code
UNIT_FLAG_SWIMMING in UpdateEnvironmentIfNeeded to show the swimming animation correctly when underwater
Implemented HasEnoughWater check to avoid swimming creatures to go where the water level is too low but also to properly enable swimming animation only when a creature has enough water to swim.

Walking creatures
Extended the DetourNavMeshQuery adding area cost based on walkability (slope angle + source height) to find better paths at runtime instead of completely remove them from mmaps
improve Z height in certain conditions (see #4205, #4203, #4247 )

Flying creatures
Rewriting of the hover system
Removed hacks and improved the UpdateEnvironmentIfNeeded. Now creatures can properly switch from flying to walk etc.
Spells
LOS on spell effect must be calculated on CollisionHeight and HitSpherePoint instead of position coords.
Improved position for object/creature spawned via spells
Improved checks for Fleeing movements (fear spells)

Other improvements
Implemented method to calculate the CollisionWidth from dbc (used by repositioning algorithm etc.)
Improved raycast and collision checks

Co-authored-by: Footman <p.alexej@freenet.de>
Co-authored-by: Helias <stefanoborzi32@gmail.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-02-01 01:34:27 +01:00
FALL1N1
6ef7341313 fix(Core/Scripts): Blackwing Lair overhaul (#3673)
* [Core/Scripts] BWL - Make Razorgore talk, script blackwing mage, make his spell break eggs

* more to vaelastrasz

* accidentally removed some of the waypoints, fuck me

* Broodlord Lashlayer overhaul + supressors

* Formations, waypoints for Ebonroc and roaming Flamegor (might be non-blizzlike)

* complete overhaul for the basic scripts, merge with TC

* last for today, door cleanup and nefarian refactor (from TC)

* Doors are now working, hooraay!

* Fix the boss gossip that we broke... non-intentionally lolz

* Vaelstraz intro - done

* small corrections to the timers, they are not blizzlike since we got no sniffs.. :^)

* nefarian checked, everything seems to be fine... let the cleanup begin now

* SQL seems fine as well, let's gooo

* Partially Revert "SQL seems fine as well, let's gooo"

This partially reverts commit b1750da58d169e9ed916eb6a6a95da93caeb0ff8.

* idk why mine's called wander_distance

* wtb new eyes

* lost an override @ flamegor

* more junk to fix the compile

* anything else? whining shit..

* SpellScript header..

* how about now?

* hopefully this does the trick, the condition in general works just fine, the spell is targeting the boss

* Update 0000_00_00_00.sql

fuck. you.

* Cleanup SQL, temp comment out code for creature relations so they don't pull several rooms at once

* Move the file with proper revision and location

* Remove the creature_relations *fix* until there's a proper core-side fix for it.

* spawndist > wander_distance

* compile fix

* lost a bracket in the merge

* *sigh*

* add new line at the end

* Nefarian's whitespaces

* Vael's whitespaces

* Razorgore good to go as well

* Header as well

* finale
2021-01-31 01:38:00 +01:00
Kitzunu
b0aff365a9 chore(core): Remove malformed whitespace (#4248) 2021-01-10 18:20:45 +01:00
Kitzunu
da4edd547d chore(core): remove malformed whitespaces (#4244)
* from https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk/issues?category=Style&groupId=838&lang=5&page=75
2021-01-10 14:27:55 +01:00
Kargatum
ea93a5c1a1 feat(CI/Codestyle): added codestyle check (#3668) 2021-01-09 11:59:50 +01:00
Silker
3654c18784 fix(scripts/Felmyst): Adjust beam target (#4055) 2020-12-26 12:56:21 -06:00
Walter Pagani
6a95e61801 refactor(scripts/BlackrockMountain): Remove commented NPC scripts (#3229) 2020-12-24 20:21:46 +00:00
Francesco Borzì
d4a58700d4 refactor(Core): apply clang-tidy modernize-use-override (#3817) 2020-12-06 18:04:55 +01:00
Andrius Peleckas
ab5933effa fix(Core/Util): EventMap::RepeatEvent when eventId is retrieved by ExecuteEvent() call (#3426) 2020-10-17 14:59:22 +02:00
Kargatum
5e20b46812 refactor(Core/Scripts): restyle scripts lib with astyle (#3467) 2020-10-11 10:35:34 +02:00
Francesco Borzì
b61ae8abcd fix(Core/Misc): all GCC warnings (#3457) 2020-09-14 17:31:12 +02:00
Francesco Borzì
b95c14f91a refactor(Scripts/Stratholme): fix warnings and made code more readable (#3433) 2020-09-06 17:07:36 +02:00
imxari
60e8ec0575 fix(Core/Quest): Death Comes From On High (#2939)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2020-09-01 21:46:45 +02:00
Kitzunu
1f89282b22 refactor(Core): NULL -> nullptr (#3275)
* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2020-08-31 11:55:09 +02:00
Francesco Borzì
d2cc3fcbc2 feat(Docker): update to Ubuntu 20.04 + more improvements (#3277) 2020-08-13 00:25:20 +02:00
gengarshadowball
e949ab27b7 fix(Core/Script): Remove hardcoded Loch Modan texts (#3111) 2020-08-02 21:45:16 +02:00
gengarshadowball
56b88502fe fix(Core/Creature): Lady Katrana hardcoded text (#3110) 2020-07-30 23:18:42 +02:00
h0lysp4nk
60b0c4201a fix(Core/Script): Felmyst (#2965)
Co-authored-by: Barbz <BarbzYHOOL@users.noreply.github.com>
2020-05-30 11:09:40 +02:00
Alan
e72371ee4a fix: Zul'Aman raid improvements (#2654) 2020-03-09 22:54:18 +01:00
Kaev
2fa9f5c249 fix(Core): potential crashes/bugs reported by static analysis #2 (#2622) 2020-02-03 07:52:27 +01:00
Skxawng-cu
70170f0bbd fix(Core/CreatureScript): Fix dk quest 12701 #2557 (#2559) 2020-01-16 08:24:10 +01:00
Finn Michael Halvorsen
dc14094e28 fix(Core/Intance): Fixed group spawn UBRS Rend (#2499) 2019-12-23 08:33:50 +01:00
Bogir[rus]
b05739455d fix(Core/Raid): Save correct data to DB after killing Ragnaros (issue #2464) (#2476) 2019-12-14 08:58:00 +01:00
Viste
e22d78ecd6 refactor(Core): rename namespaces and macros to acore (#2454) 2019-12-01 13:13:31 +01:00
Dresmyr
51a72c8a46 fix(Core/CreatureScript): Fix Ragnaros magma blast (#2394) 2019-11-29 10:06:32 +01:00
Stoabrogga
4e6a8a2756 fix(Core/Quest): The Lich, Ras Frostwhisper (#2373) 2019-11-11 09:18:15 +01:00
Viste
d202aea16d fix(Scripts/Karazhan): Cleanup in opera event (#2163) 2019-08-07 21:25:20 +02:00
Stoabrogga
62a5e95d8c fix(DB/Core): "Battle for the Undercity" buffs (#1986)
- Cast the buffs from Thrall and Wrynn on themselves instead of the player. This prevents interrupting spellcasting of the player during battle.
- Override "EnterEvadeMode" for Thrall and Wrynn AI in order to prevent removing their auras on evade.
- Remove the spell script "spell_undercity_buffs" as it is not needed anymore (the players only get the aura when near Thrall or Wrynn)
2019-06-25 20:17:23 +02:00