Commit Graph

252 Commits

Author SHA1 Message Date
UltraNix 37d92f8dc8 fix(Scripts/Ulduar): Fixed spawning Hodir chests. (#10844) 2022-03-09 05:26:25 -03:00
UltraNix 5e7166977e fix(Scripts/Ulduar): Fixed launching Leviathan's hard mode. (#10911)
Fixes #10877
2022-03-09 05:17:32 -03:00
avarishd a2b2b26056 fix(Scripts/Ulduar): Flame Leviathan first time engage (#10809) 2022-03-02 00:03: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 https://github.com/TrinityCore/TrinityCore/commit/0f1f7ef4017ac32df669ceee120489321da680aa 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
UltraNix 4509a36e91 fix(Core): Crashfix. (#10744)
Fixes #10601
Fixes #10733
2022-02-22 11:15:50 -05:00
Kitzunu 665919d010 refactor(Core/Misc): rename some variables that can be confusing (#10592) 2022-02-14 20:06:59 +01:00
Kitzunu 455899dc75 fix(Core/Misc): Change const to be after type name (#10591) 2022-02-14 16:05:45 -03:00
Kitzunu cf65cd6baf refactor(Core/Misc): sqrt/log/exp() to std::sqrt/log/exp() (#9792) 2022-02-09 11:59:30 +01:00
IntelligentQuantum 93520f6466 feat(Core/Position): own file (#10505) 2022-02-08 05:12:42 -03:00
Kitzunu 1c0019ec18 fix(Scripts/Spell): properly script collapsing cave aura (#10092)
* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/8d1a5fa1266dc98438cabfb1ced7891791245ff0)

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
Malcrom dfac47a562 feat(Core/Creature): Allow 3 ids per spawn point. TESTING (#10169)
* feat(Core/Creature): Allow 3 ids per spawn point.

* Move GetRandomId to a function

* Update id to id1

* Fixed some errors crashing core and text

* Set ids to lowercase for GetRandomId function

* Update src/server/database/Database/Implementation/WorldDatabase.cpp

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

Co-authored-by: acidmanifesto <joshua.lee.betts@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2022-01-14 19:21:50 -04:00
Kitzunu d1cc65b1c7 refactor(Core/Misc): isEmpty to IsEmpty (#10011) 2022-01-13 21:43:15 -05:00
Kitzunu 9d96adeb6b fix(Scripts/Icecrown Citadel): Ensure Deathbringer Saurfang casts Frenzy (#10048)
* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/a0a64b10b53e74c0cfaa518f196150c622e75bd2)

Co-Authored-By: Gildor <521036+Jildor@users.noreply.github.com>
2022-01-08 16:12:33 +01:00
Kitzunu cb7e355291 refactor(Core/Misc): sin() to std::sin() (#9795) 2022-01-06 19:29:40 +01:00
Francesco Borzì b748730bc8 refactor(Core): remove unused imports (#9969) 2022-01-02 20:22:09 +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
Kitzunu ac99eb48e1 refactor(Core/Misc): abs() to std::abs() (#9789) 2021-12-31 19:29:39 -03:00
Kitzunu 69683a3472 chore(Scripts/Misc): Cleanup some more JustDied hooks (#9768) 2021-12-31 12:00:40 -03:00
Kargatum c81891fc11 feat(Core/AI): convert SelectAggroTarget to enum class (#9893) 2021-12-28 19:13:12 -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
IntelligentQuantum 11a734bf2b refactor(Core/Scripts): Spell To Scripts (#9718) 2021-12-21 11:13:45 -03:00
Kitzunu 7617ae4645 refactor(Core/Misc): fmod() to std::fmod() (#9796)
- prefer std functions over C functions
2021-12-21 01:16:59 -03:00
Francesco Borzì cbc7e5466a refactor(Core): remove unused imports (#9767) 2021-12-19 19:41:14 +01:00
Kitzunu de49c3bead chore(Script/Misc): Cleanup some JustDied hooks (#9669) 2021-12-18 08:26:43 -03:00
Kitzunu 9be67e508b refactor(Scripts/Zone): move crystalsong_forest to new system (#9700) 2021-12-17 18:07:28 +01:00
Kitzunu 05a2d5baa8 refactor(Scripts/AhnKahet): new script system (#9040) 2021-11-28 04:23:19 -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
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
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 28a496bfa5 fix(Script/Spell): Dark Reckoning (#9024)
Co-Authored-By: Lucas Nascimento <keader.android@gmail.com>
2021-11-10 00:21:25 +01:00
Kitzunu 8b47540745 fix(Scripts/Misc): AhnKahet instance script typo (#9055) 2021-11-09 12:39:04 -03:00
Kitzunu 24f9f993cc refactor(GameObjectAI): Change self-accessor to "me" (#9041) 2021-11-08 22:06:04 +01:00
Kitzunu 430fa147fd feat(Scripts): Implement generic script loader and registry macros (#8976)
* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/fb87ac8e8da3d215d4988b8c2fa25d7a98cf9ee0)

* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/7d4fbf706ae19481468901ccd65c497fcabe56bf#diff-ea1c86c26019127a4e99686cd9029f9ec3e8193f2761b262c2475668edc06764)

* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/75a6a7a0ad48874e75dd71f766dad3707341bb32#diff-ea1c86c26019127a4e99686cd9029f9ec3e8193f2761b262c2475668edc06764)

Co-Authored-By: Treeston <14020072+Treeston@users.noreply.github.com>
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
Co-authored-by: Treeston <14020072+Treeston@users.noreply.github.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-11-07 02:21:00 -03:00
Skjalf d35c6b6022 feat(Core/Scripts): implemented a guid map in InstanceScript, this wa… (#8781)
Co-authored-by: joschiwald <joschiwald.trinity@gmail.com>
2021-11-02 19:55:50 +01:00
Malcrom f106de8788 refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708) 2021-11-01 17:04:32 +01:00
Malcrom b6ad5bf8ad fix(Scripts/Northrend): Last Rites [Quest 12019] (#8691) 2021-10-31 16:41:21 +01:00
Malcrom c0b52da890 fix(Core/Script) Quest 11590: Abduction (#8668)
Rewrote quest from sniff to be more like official.  MoveInLineOfSight still not working posting this here looking for help with it.
2021-10-24 00:26:46 -03:00
Malcrom 3f729f3c48 fix(Core/Script) Quest 11794: "The Hunt is on" (#8650)
Move Gossip to database and cleanup code.
2021-10-24 00:08:15 -03:00
Malcrom 15494554bc refactor(Script/SAI): Move Corastrasza script to SAI (#8616)
* Core/SAI Corastrasza

Moved core script to SAI. There is a core issue with SAI cast on envoker being cast on the npc and not the player. Do not push until core issue is fixed.

* Update rev_1634483390934220500.sql

* Update rev_1634483390934220500.sql

* Update rev_1634483390934220500.sql

Spells now work properly
2021-10-19 23:05:30 +02:00
Petric e8a6c4fa75 feat(Scripts/SAI): Ported Riding the Red Rocket Quest script from TCO (#3704)
* feat(CORE/Script): Ported Riding the Red Rocket Quest script from TCO

Taken from https://github.com/TrinityCore/TrinityCore/commit/20b3feb5594b1047303509defb8f0aa9df6a0ab9
2021-10-18 21:10:26 +02:00
SKingOWN 12185d8f03 fix(Core/Script): Valithria Dreamwalker event reset over 75% heal. (#8286) 2021-10-17 01:15:24 +02:00
Kitzunu bc82f36f1f refactor(Core/Unit): clean MonsterText methods (#6957) 2021-10-15 10:25:29 +02: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
Ragelezz c8ff0bcc4a fix:(Core\Scripts):Krikthir the Gatewatcher minions position (#8120) 2021-10-12 14:51:30 -03:00
Skjalf 1e57b6fb99 fix(Core/Spells): add several missing null checks for the DamageInfo struct to fix a crash (#8322) 2021-10-10 16:07:14 +02:00
UltraNix 66809383d1 fix(Core/Spells): add several missing null checks for the DamageInfo struct to fix a crash - Part II. (#8376) 2021-10-10 15:56:42 +02:00
UltraNix 80570efc29 fix(Scripts/Instances): fix some bosses flying animations (#7851)
- Closes #4900
2021-10-10 00:58:19 +02:00