Commit Graph

121 Commits

Author SHA1 Message Date
Maelthyr
d928d8d96a refactor(Core/Unit): PC&NPC Immunity (#11986)
* initial

* refactor(Core/Unit): PC & NPC Immunities

Cherry-pick TC: 74af880217

Co-authored-by: Treeston <treeston.nmoc@gmail.com>

* fix builds error

Cherry-pick TC: 74af880217

Co-authored-by: Treeston <treeston.nmoc@gmail.com>

* Fix nef combat, and replace SetFlag by SetUnitFlag

* fix combat with jedoga

Co-authored-by: Treeston <treeston.nmoc@gmail.com>
2022-06-18 08:16:45 -04:00
avarishd
75858bd786 fix(Script/Instance): Ulduar - Fix Keeper's missing gossips and remove hardcode (#11831)
* Ulduar-Keepers-Gossip

* codestyle
2022-06-06 09:47:11 -03:00
avarishd
156b1eb969 fix(Script/Instance): Ulduar - Flame Leviathan Hardcore to DB (#11879)
* Hardcore removal and comment out RepairText for Players

* codestyle

* Remove (now) unused void Say
2022-06-06 09:05:59 -03:00
Maelthyr
dfc6adb081 refactor(Core/Combat): DeleteThreatLists() become ClearAllThreat() (#11824)
refactor(Chore/Combat): DeleteThreatLists() become ClearAllThreat()
2022-05-23 05:51:52 -03:00
avarishd
fbbb287c29 fix(Script/Ulduar): Mimiron - remove hardcode text and fix Computer broadcast. (#11725)
* Remove hardcode from Mimiron

And fix Computer broadcast text with the sql

* Remove unused ObjectAccessor

* Add plasma blast to creature_text (MK II)

And move all text into 1 enum

* cs
2022-05-21 23:26:35 +02:00
avarishd
75c65ce9b0 fix(Script/Ulduar): Thorim - misc fixes & hardcode removal (#11711)
* Remove unused SAY_SPECIAL from Thorim/Ulduar

Remove duplicates from creature_text for Thorim/Ulduar

* missing ;

* Fix chest rotation & set trigger creature flag to traps

* Change SAY_SPECIAL & start at 6/6 adds

* remove urand from KilledUnit

was there because TYPEID_PLAYER wasn't there, prior to now

* Update SQL comment

* Remove unnecessary GetInstanceScript
2022-05-21 23:25:37 +02:00
avarishd
d94f8b5970 fix(Script/Ulduar): Freya spawning multiple chests (#11794) 2022-05-19 10:59:48 -03:00
Maelthyr
c5368816fa Core/Combat: rename getThreatMgr() to GetThreatMgr() (#11758) 2022-05-18 05:36:57 -03:00
Maelthyr
5ede1177c5 refactor(Core/Combat): implement compatiblity layer for ResetAllThreat() (#11778)
* implement ResetAllThreat()

* .
2022-05-17 12:01:25 -03:00
UltraNix
c6b5700ef5 fix(Core): Crashfix. (#11740) 2022-05-17 06:38:13 +02:00
avarishd
edcb9ff3a9 fix(Script/Ulduar): Change the way Elders are despawned
Despawns the elders
2022-05-09 08:25:17 -03:00
avarishd
6e9d470876 fix(Scripts/Auriaya): Move hardcoded text/gossips to DB (#11658)
* auriaya

* Update boss_auriaya.cpp

* cs

* Update boss_auriaya.cpp
2022-05-09 01:52:22 +02:00
avarishd
9144cab27d fix(Scripts/Ignis): Move hardcoded text/gossips to DB (#11655)
* ignis

* cs

* revert victim
2022-05-08 23:15:41 +02:00
avarishd
7b01b27bb2 fix(Scripts/XT002): Move hardcoded text/gossips to DB (#11652)
* xt

* xt

* codestyle

im bad

* cs

* update
2022-05-08 23:14:57 +02:00
avarishd
8f485cb5d4 fix(Scripts/Freya): misc improvements (#11665) 2022-05-08 23:02:15 +02:00
avarishd
4df92b553c fix(Scripts/RazorScale): Move hardcoded text/gossips to DB and minor fixes (#11694)
* Update boss_razorscale.cpp

* cs

* questionable fix, but it works
2022-05-08 22:54:38 +02:00
avarishd
56955f792b refactor(Core/Creature): Move hardcoded text/gossips to DB - boss_general_vezax (#11649) 2022-05-06 10:21:14 -03:00
UltraNix
519fd3dfd2 fix(Scripts/Ulduar): Fixed console errors of uninstalling vehicles. (#11334)
Fixes #11314
2022-04-18 19:37:30 +02:00
IntelligentQuantum
ab4ee71762 feat(Core/Maps): AreaBoundary (#10525)
* cherry-picked commit (2da458c56d)
2022-04-15 14:10:41 +02:00
UltraNix
47790c9714 fix(Core/Vmaps): Stop M2s from occluding for spellcast LoS. Original autho… (#11341)
* Core/Vmaps: Stop M2s from occluding for spellcast LoS. Original authors: @Shauren & @HelloKitty

Fixes #11293

* buildfix.

Co-Authored-By: HelloKitty <5829095+HelloKitty@users.noreply.github.com>
2022-04-10 09:24:35 -03:00
UltraNix
8426da6e6b fix(Scripts/Ulduar): Sara's buffs should be casted randomly among the players. (#11255)
Fixes #11240
2022-04-05 09:12:54 -03:00
Kitzunu
b41967a067 feat(Core/GameObject): Gob flag helpers (#11287) 2022-04-05 13:52:58 +02:00
Kitzunu
edb7cac19b feat(Core/Unit): NPCFlags helpers (#11286)
* cherry-pick commit (TrinityCore/TrinityCore@d611925)
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
2022-04-05 13:52:42 +02:00
UltraNix
3255e1cdf7 fix(Scripts/Ulduar): Yogg-Saron portals should be interactable. (#11150)
* fix(Scripts/Ulduar): Yogg-Saron portals should be interactable.

Fixes #11140

* Update

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

Co-authored-by: Nefertumm <nefertum.dev@protonmail.com>
2022-04-01 07:07:37 -03:00
UltraNix
76227539dd fix(Scripts/Ulduar): Do not spawn Hodir chests if already defeated. (#11149)
Fixes #11139
2022-04-01 07:05:37 -03:00
Kitzunu
856aed6fc6 feat(Core/Unit): New helpers for UnitFlag and UnitFlag2 (#11227) 2022-03-30 07:59:42 -03:00
UltraNix
69616e5d6d fix(Scripts/Ulduar): Open the chamber door on Kologarn's death. (#11085) 2022-03-27 01:38:06 -03:00
UltraNix
5b50f04c5c fix(Scripts/Ulduar): The Flame Leviathan's main gate should be closed during the fight. (#11083) 2022-03-27 01:37:27 -03:00
UltraNix
df89bbafe4 fix(Scripts/Vehicles): The next player entering Salvaged Siege Engine… (#10987)
… should control turret if it's not occupied.
2022-03-27 01:16:12 -03:00
UltraNix
68891ccd74 fix(Core/Loot): Fixed some chests inside dungeons not being bound only to participants. (#10995) 2022-03-18 18:33:04 -03:00
UltraNix
d07430199d fix(Scripts/Ulduar): "I Could Say That This Cache Was Rare" achievement. (#10912) 2022-03-12 04:44:27 -03:00
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 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
IntelligentQuantum
93520f6466 feat(Core/Position): own file (#10505) 2022-02-08 05:12:42 -03:00
Kargatum
8b7df23f06 feat(Core/Time): Implement saparated manager for game time (#8630) 2022-01-24 17:55:00 +07:00
Kitzunu
d1cc65b1c7 refactor(Core/Misc): isEmpty to IsEmpty (#10011) 2022-01-13 21:43:15 -05:00
Kitzunu
cb7e355291 refactor(Core/Misc): sin() to std::sin() (#9795) 2022-01-06 19:29:40 +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
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
Kitzunu
de49c3bead chore(Script/Misc): Cleanup some JustDied hooks (#9669) 2021-12-18 08:26:43 -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
Kitzunu
24f9f993cc refactor(GameObjectAI): Change self-accessor to "me" (#9041) 2021-11-08 22:06:04 +01:00
Malcrom
f106de8788 refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708) 2021-11-01 17:04:32 +01: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