* 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.