* fix(Core): Correct Quest XP Display when modified by SPELL_AURA_MOD_XP_QUEST_PCT
The quest XP displayed on the gossip window was not modified for auras that increase quest XP gain (e.g. spell ID 57353). This commit corrects the quest XP display when accepting/returning quests.
* refactor(Entities/Player): Added a `CalculateQuestRewardXP()` function to reduce duplicated code
* cleanup(Entities/Creature): Removed now unused variable `playerLevel`
* Apply suggestions from code review
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
---------
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
fix(Core/Spells): Don't send SMSG_CAST_FAILED for interrupted spells after they were launched or channelling was started (this clears cooldown on client)
https: //github.com/TrinityCore/TrinityCore/commit/63bc405faeb7afcf99de6f7531e4ea59065165f4
Co-authored-by: Shauren <shauren.trinity@gmail.com>
fix(core/spell): Presence of Mind should not apply cooldown mods on category spells.
Mage T4 set 4 set bonus puts cooldown reduction on Presence of Mind which should not be passed down to category spells,
because in case of infinity cooldown on Arcane Power it does not get reset when you lose the Presence of Mind aura and Arcane Power stays forever in cooldown
or more specifically for 1 month(infinity cooldown).
Closes https://github.com/azerothcore/azerothcore-wotlk/issues/17800
Patch 3.0.9 https://wowpedia.fandom.com/wiki/Patch_3.0.9
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
* Add WPP SQL output.
* Uncomment all entries.
With one exception, one that does not exist in DB
* Sort all by template entry.
* Add reference names for templates.
* Distinguish summons from static spawns.
* Separate summons from static spawns in SQL parse.
* Add timestamps and spell casts for creatures.
* Init spawn query.
* Init script stuff.
* Init port work.
Co-Authored-By: Gustavo <sirikfoll@hotmail.com>
* Bad flag porting.
* Update stand states and unit flags properly.
* Adjust SQL.
* Add birth spell.
Properly shows the desired animation, to be verified through sniffs if he actually casts it.
* Update Frozen Core model data.
Collected from TC master branch. Will correct with proper data once sniff data becomes available.
* Elaborate rhyme aura text functions.
Co-Authored-By: sudlud <sudlud@users.noreply.github.com>
* Adjust for structure changes.
* Elaborate delete queries.
---------
Co-authored-by: Gustavo <sirikfoll@hotmail.com>
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
* Fix CanExecuteCommand only being executed on command failure.
* Updated for style guide.
* Removed pointless hook call.
* Modified the name of the hook to better reflect function and moved the call to trigger for non-existent commands.
* Updated to OnTryExecuteCommand because Foe has a special place in my heart.
* Forgot to change these 2 areas.
* dismiss summoned non-hunter pets by removing them
* store createdbyspellid
* Revert "dismiss summoned non-hunter pets by removing them"
This reverts commit eb539e841d882a6c90f743792c91304b0d365a5c.
* 1. Added Magistrate Barthilas escape event
2. Fighting the Magistrate Barthilas at the entrance will close the 2 gates leading to the plaza
3. A fight in the slaughterhouse will close the door to the side of the slaughterhouse and will not open until a fight with baron Rivendare
4. Associate some conversation text to Broad*castTextId
5. Added an action for the player to stand up - turn around - salute when the player approaches Aurius
6. Added combat AI to Aurius to prepare for the event where Aurius helps players kill baron Rivendare
* Error in SQL statements is fixed
* Fixed Magistrate Barthilas not turning into human form when he died. Transfiguration should be used on himself
* Fix a misspelling in a note
* fix error
* Save the status of the escape event to the database
* Remove spaces
* Modify the code formatting
* enum format restore
* Modify the enum
* Delete data/sql/updates/pending_db_world/斯坦索姆 fix.sql
Delete files that were accidentally pushed
* fix "Grand Crusader Dathrohan" Unable to speak when transforming and dying and the worldserver console error
* 1 waypoint 1 plus 1s suspension time.
2 Transmission data plus map number.
* The door to the slaughterhouse is opened when there is a player dying and all players in the party are not in combat
* Remove spaces and add comments
* Change as requested
* Update data/sql/updates/pending_db_world/rev_1699566747105058500.sql
Test if this button can be updated directly
Co-authored-by: KJack <kgithub@kellerg.com>
* Use the full sniffing path
* fix error
* edit
* Moved the escape time to smartscript
Delete the closed door
* Remove spaces
* Fixed where barthilas were not in the slaughterhouse after moving to near the slaughterhouse after the save location was restarted
* Delete unused classes
---------
Co-authored-by: KJack <kgithub@kellerg.com>
* init
* change logic
despawning of bosses is not really done the normal way, but it's forced with a set amount of guids. So we simply need to register the summons as guids as well
* small fixes
* Delete creature_scripts.sql
* Update boss_azgalor.cpp
* fix(Core/Mail): calculate unReadMails and m_nextMailDelivereTime using mail cache
- these values were grepped directly from DB before
-> this change was introduced with azerothcore/azerothcore-wotlk#3420
- the whole mailing system relies on the mails beeing cached in the core
-> these get stored in DB regularly or on specific events
- so apparently the DB is not always in sync with the current mail cache state of the core
-> so grepping data directly from DB is not a good idea at this point
* Update PlayerUpdates.cpp