Commit Graph

5172 Commits

Author SHA1 Message Date
Andrew d4f9b6bf7f fix(Scripts/BlackTemple): Prevent Illidan transformation during cutscene (#20271)
* fix(Scripts/BlackTemple): Prevent Illidan transformation during cutscene

* Update boss_illidan.cpp
2024-10-24 07:24:08 -03:00
@cgrahamseven 1c1a281eda fix(Core/SAI): rooted check blocks vehicles from casting quest credit (#20283)
spell

The quest SteamTank Surprise has a SmartAI entry in the db that causes
the tank to cast the kill credit spell on the player when they
successfully destroy a plague wagon. Currently, this spell cast is being
blocked by the rooted check handler for SMART_ACTION_CAST. The change
proposes that this rooted check should not apply to vehicles.

Closes AzerothCore issue #20237

Co-authored-by: cgrahamseven <chris.graham@protonmail.com>
2024-10-24 06:57:52 -03:00
Andrew 121d35b155 fix(Scripts/BlackTemple): Apply Shadow Prison spell immunities (#20272)
* fix(Scripts/BlackTemple): Apply Shadow Prison spell immunities

* Delete rev_1729660470785757300.sql
2024-10-24 11:41:48 +02:00
Andrew c91148fd11 fix(Scripts/BlackTemple): Reset Illidan combat movement (#20276) 2024-10-23 18:45:12 +02:00
Grimdhex 261ca4408f refactor(Core/Unit): cleanup header file - part 3 (#20072)
* refactor: cleanup unit header file - part3

* Update Unit.h

* Update Unit.h

* fnish to reorder the header file

* Update Unit.h
2024-10-23 12:54:03 -03:00
Dan Costinas 87aeaf10fd fix(Core/SmartAI) : use explicit stack DS for ProcessAction instead of recursion (#16739)
* Use dequeue instead of recursion

* Remove to do comments

* Fix formatting

* Fix more formatting :(

* Use references instead of copies in the stack to correctly update event state

* formatting

* Revert FindLinkedEvent parameter name change and check for event type

* Fix event processing in SmartScript::UpdateTimer

* Use struct for defining SmartScriptFrame instead of tuple

* Fix emplace_back not working on default constructor on clang 15

* Fix const placement
2024-10-22 17:31:45 +02:00
Benjamin Jackson bb40bf7727 fix(Scripts/BlackTemple): Properly randomize Illidan initial Eye Beam and order. (#20264)
Init.
2024-10-21 23:00:15 -03:00
Benjamin Jackson faab07f08a fix(Scripts/BlackTemple): Randomize Eye Beam target position. (#20262)
* Init.

* Cast enum to int.

Apparently I don't have eyes.
2024-10-21 20:38:54 -03:00
Andrew 034ebb3cdd Revert "fix(Core/Spells): SPELL_ATTR1_IMMUNITY_PURGES_EFFECT should not remov…" (#20245)
This reverts commit 572be7d69f.
2024-10-19 20:53:24 +02:00
Benjamin Jackson 7abbca0f5b fix(Core/CharmInfo): Adjust how spells are given to charmed creatures. (#20227)
Init.
2024-10-18 17:42:21 -03:00
Andrew 572be7d69f fix(Core/Spells): SPELL_ATTR1_IMMUNITY_PURGES_EFFECT should not remov… (#20032)
fix(Core/Spells): SPELL_ATTR1_IMMUNITY_PURGES_EFFECT should not remove spells with no immunities
2024-10-18 08:43:51 -03:00
Benjamin Jackson 4ad9d68f42 chore(Core): Correct typo of Suppress. (#20229)
* Init.

* Adjust spacing.
2024-10-17 22:09:53 +02:00
Anton Popovichenko cb241a35e7 fix(Core/Items): Don't remove all owned auras on removing enchantments. (#20220) 2024-10-16 06:14:09 -03:00
Andrew 92d73c6da7 fix(Scripts/BlackTemple): Clear events on evade (so he doesnt move wh… (#20199)
fix(Scripts/BlackTemple): Clear events on evade (so he doesnt move while dead/despawned)
2024-10-13 23:53:17 -03:00
Andrew 84e70c5cd8 fix(Scripts/BlackTemple): Fix Gathios not recasting Consecration (#20200) 2024-10-13 23:53:02 -03:00
Benjamin Jackson 4bdd818db4 fix(Scripts/BlackTemple): Grant proper encounter credit for Illidari Council. (#20201)
Init.
2024-10-13 23:52:48 -03:00
Rorschach91 91a5c49943 Fix(DB/Script): Phase change for DK starter area Eye of Acherus and npcs. (#20170)
* fix(Script/Mother Shahraz) Increase min teleport range and add new teleport points.

This fix increase minimum teleport range for Fatal Attraction and It adds 5 new teleport points if the boss is near the platform.

* Update boss_mother_shahraz.cpp

* fix(DB/Creature): Phase change for DK starter area npcs.

This fix change the phases when some npcs can be viewed.

* Update dk_phases_fix

* Update dk_phases_fix

* Create DK_NPC_Phases_Fix.sql

* Delete data/sql/updates/pending_db_world/dk_phases_fix

* Update DK_NPC_Phases_Fix.sql

* Update DK_NPC_Phases_Fix.sql

* Update DK_NPC_Phases_Fix.sql

* Update DK_NPC_Phases_Fix.sql

* Update SpellInfoCorrections.cpp

Eye of Acherus in Phase 2

* Update SpellInfoCorrections.cpp

Eye of Acherus ApplySpellFix removed (Eye of Acherus is in phase 2 now).

* Update DK_NPC_Phases_Fix.sql

Adding Npcs inside Acherus in phase 2.
2024-10-13 20:53:09 +02:00
Andrew 96082065f6 refactor(Scripts/ZulAman): Move Hexlord adds to SAI (#20185) 2024-10-13 07:47:05 -03:00
ConorB 1d99440f74 fix(cpp/db): how to win friends and infleunce enemies missing dialogue (#20132)
* fix(cpp/db): Quest how to win friends and infleunce enemies missing dialogue during torture

Scarlet Crusader (id: 28940), Scarlet Marksman (id: 28610), Scarlet Preacher (id: 28939) and
Scarlet Commander (id: 28936) were missing some dialog in the database and script
npc_crusade_persuaded always succeeded when the spell on Keleseth's Persuader (item id: 39371
and spell id: 52781) procced. It now only succeeds thirty percent of the time. Increased ppmRate for spell to 8.
Finally removed aggro when scarlet was 'persuaded'

closes Azerothcore issue #20110

* fix(cpp): trailing white space

* fix(db): error in text

* fix(db): syntax error

* fix(cpp/db): using urand and removed db name from insert

* fix(db): remove broadcast text and missing creature text

* fix(DB): change sql queries to comply with rules

Added a delete query before insert and backticks to column and table names

* add empty newline at the end

---------

Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2024-10-12 13:06:42 +02:00
Jelle Meeus e0f08bbfb6 fix(Core/Spells): supress caster procs for Siphon Life heal (#20175)
supress caster procs for Siphon Life heal
2024-10-12 13:05:44 +02:00
Andrew cfaa0a9a6c fix(Scripts/BlackTemple): Ensure root state is cleared on wipes (#20183) 2024-10-12 05:58:12 -03:00
Andrew 3b09b21f6e fix(Scripts/BlackTemple): Flames should not charge players within 25y… (#20182)
* fix(Scripts/BlackTemple): Flames should not charge players within 25y of blade

* Update boss_illidan.cpp

---------

Co-authored-by: Keader <keader.android@gmail.com>
2024-10-12 05:58:01 -03:00
Rorschach91 84646a7955 fix(Script/DeathKnight): A Special Surprise Npcs issues. (#20178) 2024-10-11 23:52:06 -03:00
Benjamin Jackson 94a03c629b fix(Scripts/BlackTemple): Remove Naj'entus Spines from players on engage. (#20176) 2024-10-11 09:29:00 -03:00
Benjamin Jackson a9080bef60 fix(Scripts/BlackTemple): Adjust cast behavior for Supremus's charge. (#20173)
Init.
2024-10-11 09:10:04 -03:00
Angelo Venturini fede17f782 fix(Core/Spells): Fix crash (#20179)
Co-authored-by: Ariel Silva <ariel-@users.noreply.github.com>
2024-10-11 08:15:02 -03:00
Benjamin Jackson c3ee737c80 fix(Core/SpellInfoCorrections): Add Arcane Missiles spell info correction. (#20165)
Init.

Co-authored-by: Ernesto Gonzalez <80600689+ernesto-glz@users.noreply.github.com>
2024-10-11 11:51:29 +02:00
kissingers 0cb6081bc7 fix(Scripts/ZulAman): Nalorakk can't able to trigger instance events when death (#19895)
* ignore .vs path

* Fix Nalorakk not able to trigger instance events when death

* Revert "ignore .vs path"

This reverts commit 81e949727645d0356eb8bb9490152971dbb9b09b.

* Remove instance null check

* Remove instance null check

* Revert "Remove instance null check"

This reverts commit b97b45284edb3166bc3c253adf1773b031bb1507.
2024-10-11 08:06:28 +02:00
Jelle Meeus 859a42a41e fix(Core/Vehicles): feat vehicle seat addon, vehicle enter/exit positions (#20082)
* implement initial vehicle_seat_addon

Co-authored-by: Ovah <dreadkiller@gmx.de>

* add more vehicle_seat_addon data

* make exiting passenger visible

fixes "immediate despawn" of travelers mammoth

* style, update comments

* remove hacked pos relocate

* remove sending MSG_MOVE_ROOT/UNROOT on Ack

* set and unset UNIT_NPC_FLAG_PLAYER_VEHICLE on init/entry

* ulduar demolisher: remove flag correction and no longer needed usableseat

* fixup! implement initial vehicle_seat_addon

* fixup! fixup! implement initial vehicle_seat_addon

* re-add AddPassenger Flame Leviathan hack

was commented by mistake

* Update rev_1725993194571320983.sql

add missing ticks

---------

Co-authored-by: Ovah <dreadkiller@gmx.de>
2024-10-11 07:08:14 +02:00
Walter Pagani e43b760c08 fix(Core/QuestHandler): Question marks not being shown (#20099) 2024-10-10 18:10:55 -03:00
Angelo Venturini 9487b30ad7 refactor(Core/Misc): Use emplace_back instead of push_back to avoid extra copy/m… (#20114)
refactor: Use emplace_back instead of push_back to avoid extra copy/move operations
2024-10-10 21:55:58 +02:00
Benjamin Jackson 2a48a14908 fix(Scripts/BlackTemple): Add resets for enrage events with death. (#20174)
Init.
2024-10-10 12:59:33 -03:00
Benjamin Jackson eebb5596bf fix(Scripts/BlackTemple): Adjust caster of Blaze spell. (#20172)
* Init.

* Account for nullptr victim.
2024-10-10 12:27:28 -03:00
ConorB 6ef16f18bb fix(Script): Fix npc following player after starting duel (#20161)
* fix(Script): Changed npc move script

Death Knight Initiate (id: 28406) was not turning to face the player
after they engaged a duel instead the npc followed the player
wherever they went. Change was to remove script line for follow
and replace with SetFacingToObject and specify the player
as the object.

Closes AzerothCore issue #20108

* fix(script): Fix npc following player whitespace issue

Attempt to fix code styling fail on whtiespace

* fix(script): Fix npc following player another whitespace issue

Found more whitespace that was made by the fix to previous whitespace
2024-10-10 14:43:57 +02:00
Andrew 31cb7579e0 fix(Core/Scripts): Further improve the ScheduleHealthCheck() function (#20163) 2024-10-09 08:08:37 -03:00
Benjamin Jackson fd6d2efccb fix(Core/Unit): Add mana drain effect to Black Bow of the Betrayer. (#20155)
* Init.

Co-authored by: stfxpi (stfx)
Original CMaNGOS commit: https://github.com/cmangos/mangos-tbc/commit/c750533b5ec7f688d7f026b18edd19acccd68f2f

* Add/adjust comments.
2024-10-09 06:00:20 -03:00
Jelle Meeus a8d970caa7 fix(Core/Unit): add rage gain when attack is fully blocked, dodged or parried (#19377)
* generate rage if victim fully block, dodge, parry

* update rage calculation

* calc pct at the end

* update comment to link to Rage formulae and mention Bornak's bluepost

archived link to Bornak's bluepost
https://web.archive.org/web/20090604123729/http://forums.worldofwarcraft.com/thread.html?topicId=17367760070&pageNo=13#02500
2024-10-08 21:44:32 +02:00
Rorschach91 d5d5df67ba fix(Script/Mother Shahraz) Add new teleport points. (#20137)
* fix(Script/Mother Shahraz) Increase min teleport range and add new teleport points.

This fix increase minimum teleport range for Fatal Attraction and It adds 5 new teleport points if the boss is near the platform.

* Update boss_mother_shahraz.cpp
2024-10-08 11:53:42 +02:00
Benjamin Jackson cc5c582b4d fix(Core/Spell): Include damaging spells for starting combat. (#20154)
Init.
2024-10-07 08:55:28 -03:00
Benjamin Jackson a57d8db81a fix(Core/CharmInfo): Add exception for Kil'jaeden dragon charm spells. (#20150)
Init.
2024-10-07 08:55:00 -03:00
Andrew d340ae029b fix(Scripts/Dragonblight): Fix Torturer Leclaft spamming abilities (#20130)
fix(Scripts/Dragonblight): Fix Toturer Leclaft spamming abilities
2024-10-05 11:02:31 +02:00
Grimdhex 508b7369c7 fix(Scripts/BlackTemple): exclude off tank of the Azzinoth Flame's charge (#20133)
* fix(Scripts/BlackTemple): exclude off tank of the Azzinoth Flame's charge

* remove an unecessary elseif

* Update boss_illidan.cpp
2024-10-05 11:02:06 +02:00
Jelle Meeus 01b86ec7a6 fix(Core/Unit): update death state before handling RemoveAllAurasOnDeath() (#20124)
fix setDeathState

[PATCH] Don't allow units to enter combat upon death
https://github.com/TrinityCore/TrinityCore/commit/91ebea4a77e1db10cea85ff8e891a2ea3f3587ab.patch
Co-authored-by: trickerer <onlysuffering@gmail.com>
2024-10-04 11:01:36 -03:00
Anton Popovichenko 9f58d55a1d fix(Core/Items): Fix exploit where multiple auras could be applied from a single enchantment. (#20128) 2024-10-04 06:32:42 -03:00
Benjamin Jackson cc37941ef5 fix(Scripts/BlackTemple): Reset Illidan threat with phase four. (#20125)
Init.
2024-10-03 14:32:52 -03:00
Dan 82797a4501 fix(Scripts/TheBlackTemple): remove gossip option on Akama when Illidan is dead (#20118) 2024-10-02 16:54:58 -03:00
Jelle Meeus 9a1f27121a fix(Core/Unit): Flight Form riding crop, vehicle speed auras (#20079)
* vehicle aura stacking

Rename flight speed related auras
Co-authored-by: Laise <fenrisse@gmail.com>

* rename to better match existing flight auras
2024-10-01 21:39:42 +02:00
Dan 3636d7f0e4 fix(Scripts/TheBlackTemple): resetting behaviour in p1 for Shade of Akama (#20076)
* init

* Update boss_shade_of_akama.cpp

* Update boss_shade_of_akama.cpp

* Update boss_shade_of_akama.cpp

* update factions

bench with the faction sniffs

Co-Authored-By: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>

* set spawned creatures in combat again

Co-Authored-By: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>

* wip change faction to defender

* Update boss_shade_of_akama.cpp

* Update boss_shade_of_akama.cpp

* set hostiles in combat

* Akama shade reset test (#12)

compilation of commits with fixes and debugging

* Update boss_shade_of_akama.cpp

* Update factions_shade.sql

* Update factions_shade.sql

* Update factions_shade.sql

* Update factions_shade.sql

* 5s instead of 5ms

* change faction enum names

* revert faction change on player death

* unused import

* Update boss_shade_of_akama.cpp

* unsummon all non-defenders

* clear summons on all players dead

* blank space

* make creatures not stop spawning on player wipe

* oops

---------

Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>
2024-10-01 19:05:11 +02:00
Andrew ee870ff3b3 fix(Core/Spells): Restricted aura application prevention when immune to banish effects (e.g cyclone) (#20060) 2024-10-01 11:47:44 +02:00
Francesco Borzì ae30489b23 refactor(src/server/game/Globals): remove unused imports (#20088) 2024-10-01 08:06:06 +02:00