Commit Graph

83 Commits

Author SHA1 Message Date
Skjalf 08580defd0 refactor(Scripts/Onyxia): Update Onyxia's script (#9371) 2021-11-27 13:33:50 -03:00
Skjalf 8fd713ac52 chore(Scripts/OnyxiasLair): Fix broken code style (#9367) 2021-11-26 12:47:22 -03:00
Kargatum f62664c987 refactor(Core/Misc): headers cleanup (#9259) 2021-11-22 17:24:39 +07:00
Kitzunu 6a430cd2f9 fix(Scripts/Misc): Replace some AddItem/CreateItem with spells (#9006)
Co-authored-by: offl <11556157+offl@users.noreply.github.com>
2021-11-20 09:59:52 -03:00
patou01 adbad6fb19 fix(Scripts/DireMaul): immolthar and adds are now immune to combat until the pylons are activated (#9007)
Co-authored-by: Patou01 <youdontneed@this.com>
2021-11-12 01:02:01 +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 https://github.com/TrinityCore/TrinityCore/commit/2585e799f95f259dd4b422daf15ef7963173c408
2021-11-10 23:43:00 +01:00
Kitzunu 24f9f993cc refactor(GameObjectAI): Change self-accessor to "me" (#9041) 2021-11-08 22:06:04 +01:00
Malcrom 5236223154 fix(DB/Gossip): go_wind_stone to use db gossip and conditions (#8953) 2021-11-05 22:44:18 -03:00
Ragelezz 10ec5a802d fix(DB/SAI):Twilight Discipline and Twilight Thug scripts(talks an… (#8023)
Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
2021-11-05 01:51:13 -03:00
Malcrom f106de8788 refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708) 2021-11-01 17:04:32 +01:00
v.tihomirov 12b195e116 fix(Core/QuestNpc): Rework/fix the Stave of Ancients script (#7929)
* WIP Artorius the amiable

* Add Artorius sql update

* Splited npc script to stave of ancients script

  * Move reveal form to npcstaveqai
  * Change enum constant names
  * Refactor DoAction
  * Refactor feign death reset
2021-10-28 13:08:19 -03:00
Malcrom 26456132c7 fix(SAI/Script) Quest 8304 Dearest Natalia (#8717)
Redid quest to have proper gossip and use proper db gossip system.
2021-10-26 17:39:25 -03:00
Malcrom 6c4b8215fa fix(Core/DB) Quest 925 Cairne's Hoofprint (#8721)
Fixed to use proper gossip from db.
2021-10-26 05:35:45 -03:00
Kitzunu bc82f36f1f refactor(Core/Unit): clean MonsterText methods (#6957) 2021-10-15 10:25:29 +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 0cd88d026a fix(Script/Quest): move Shay Leafrunner's script from DB to C++ (#7801)
- Closes #1535
- Closes  #6722
2021-09-23 15:19:31 +02:00
UltraNix 048025ceba fix(Scripts/ZulFarrak): Moved Sergeant Bly's script from DB to C++ (#7855) 2021-09-21 04:36:51 -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
IntelligentQuantum bb343b482e fix(Scripts/DB): Quest OOX 09 - 17 - 2FE (#7792) 2021-09-13 16:06:49 +02:00
Francesco Borzì 7bddd69c95 refactor(Scripts/Kalimdor): code cleanup (part 10) (#7065)
* refactor(Scripts/Kalimdor): code cleanup (part 10)

* chore(Core/zone_mulgore): delete file

* chore(Core/zone_teldrassil): remove file

* chore(Core/kalimdor_script_loader): remove mulgore and teldrassil zone

Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2021-08-06 15:45:17 +02:00
Kitzunu fa03541563 chore(Script/Misc): add comments to some scripts (#7011) 2021-07-24 19:37:45 +02:00
Francesco Borzì 4103fca5a4 fix(Core/ObjectGuid): prevent creating copies when looping objects (#6852) 2021-07-10 15:54:16 +02:00
Shiroe f8c8e98a0a feat(Core): port aggro distance from vMaNGOS (#6214)
Read detection_range values from creature_template
2021-07-08 18:01:27 +02:00
Kargatum 5991b2769a feat(Core/Scripts): split the huge scriptloader into smaller pieces (#5346)
* feat(Core/Scripts): split the huge scriptloader into smaller pieces

* AddSC_swamp_of_sorrows del

* 1

* add mod info

* 1

* 039f0e0faa

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-06-22 23:19:02 +02:00
Kargatum 9ac6fddcae feat(Core/Database): port TrinityCore database API (#5611) 2021-06-22 06:21:07 +02:00
Cláudio Costa 07861d0548 fix(Core/DB): Brewspewer hardcoded conditions (#6301) 2021-06-18 17:04:41 +02:00
Raelorasz c485bab6ee fix(Scripts/DB): Improve Demon Portals and convert to SAI (#6140) 2021-06-05 00:13:19 +02:00
Kitzunu 7152ddc82c refactor(Core/Grids): Ported cmangos/mangos-wotlk@ea99457 (#6113)
* refactor(Core/Grids): Ported cmangos/mangos-wotlk@ea99457

(cherry picked from commit https://github.com/TrinityCore/TrinityCore/commit/d6201e5dbb7fa7ca8b47ffa6c0d30fa38dceada5)
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
Co-Authored-By: SilverIce <slifeleaf@gmail.com>

* Update CellImpl.h

* w

* more more brackets

* ew

* fix build
2021-06-03 05:27:51 +02:00
Kitzunu 897a02bb75 refactor(Core/Misc): acore to Acore (#6043) 2021-05-31 14:21:54 +02:00
Emir 0527c17d5f fix(Scripts/Quest): A Cry For Help (#5720) 2021-05-22 21:53:45 +02:00
Silker b14ffdb8b9 fix(Scripts/DB/SAI): Return to Vahlarriel (#5712) 2021-05-12 22:21:46 -06:00
Raelorasz 9398f9bfcc fix(Core/DB): Adjust Kodo Roundup quest mob behavior (#5665) 2021-05-09 11:36:05 -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
UltraNix f4c226423d feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885) 2021-04-25 22:18:03 +02:00
HelloKitty 7297561088 Scripts/RazorfenDowns: Fix Belnistrasz Incorrect Usage of GOSSIP_OPTION_QUESTGIVER (#5285)
* NPC was using GOSSIP_OPTION_QUESTGIVER as a UNIT_NPC_FLAGS when it should have been using UNIT_NPC_FLAG_QUESTGIVER.

* Behavior shouldn't change though as they both coincidentally were 2.
2021-04-19 22:12:05 +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
Kargatum c053e111d3 fix(Scripts/Commands): correct reloading creature_template table (#5020) 2021-03-30 09:55:05 +07:00
Francesco Borzì f6a17164be fix(Core/License): issue with old files license (#4762) 2021-03-17 09:46:01 -06:00
Stifler82 30b3d74f01 fix(DB/CreatureSAI): Ruul-Snowhoof (#4786) 2021-03-11 18:37:37 +01:00
LannyE 1e90722a15 fix(Core/DB): Missing Diplomat Quests Part 11,14,16 and Minor Guard Tower Fixes (#4719) 2021-03-07 13:35:41 +01:00
Kitzunu 28f1dc5c0c refactor(Core): replace NULL with nullptr (#4593) 2021-03-02 01:34:20 +01:00
Kitzunu dbc0ff6554 refactor(Core): sort #includes alphabetically (#4579) 2021-02-24 22:34:42 +01:00
Kitzunu 0d52b4ca4a feat(Core/Spell): Implement ValidateSpellInfo (#4323)
* feat(Core/Spell): Implement ValidateSpellInfo

* cherry-pick from https://github.com/TrinityCore/TrinityCore/commit/2b5d7eef3a091e67c27e853d43ac0bebbfa67531 & https://github.com/TrinityCore/TrinityCore/commit/a0a158b5b851db7e2c16819ec89e913d914a3aba

* 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
WiZZy 42244612ff fix(DB/Creature): Gyromasts Revenge (#4115) 2021-01-19 22:04:49 +01:00
lineagedr 943c1e7ae7 fix(Scripts/DB/Creature): Set PvP flag for some creatures (#4270) 2021-01-14 19:15:55 +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