Skip to content

Conversation

@UndoUreche
Copy link
Contributor

Changes Proposed:

This PR proposes changes to:

  • Core (units, players, creatures, game systems).
  • Scripts (bosses, spell scripts, creature scripts).
  • Database (SAI, creatures, etc).

Issues Addressed:

SOURCE:

The changes have been validated through:

  • Live research (checked on live servers, e.g Classic WotLK, Retail, etc.)
  • Sniffs (remember to share them with the open source community!)
  • Video evidence, knowledge databases or other public sources (e.g forums, Wowhead, etc.)
  • The changes promoted by this pull request come partially or entirely from another project (cherry-pick). Cherry-picks must be committed using the proper --author tag in order to be accepted, thus crediting the original authors, unless otherwise unable to be found

Tests Performed:

This PR has been:

  • Tested in-game by the author.
  • Tested in-game by other community members/someone else other than the author/has been live on production servers.
  • This pull request requires further testing and may have edge cases to be tested.

How to Test the Changes:

  • This pull request can be tested by following the reproduction steps provided in the linked issue
  • This pull request requires further testing. Provide steps to test your changes. If it requires any specific setup e.g multiple players please specify it as well.
  1. Create a feral druid character
  2. Invest into survival of the fittest (0, 1, 2, 3 points) and/or add extra defense rating
  3. Allow mobs up to 3 levels above you to attack you
  4. At 3 points, defense cap, or a combination of points and defense rating, the player should no longer be dazed

Known Issues and TODO List:

How to Test AzerothCore PRs

When a PR is ready to be tested, it will be marked as [WAITING TO BE TESTED].

You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

REMEMBER: when testing a PR that changes something generic (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but especially check that the PR does not cause any regression (i.e. introducing new bugs).

For example: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but we should test Y and Z as well.

@github-actions github-actions bot added CORE Related to the core file-cpp Used to trigger the matrix build labels Oct 29, 2025
@UndoUreche
Copy link
Contributor Author

The probability numbers I've chosen for every rank of the talent match the probability to be dazed by a creature 3 levels higher than the player (3 levels, such that it matches boss levels and defense caps):

  • 7.38f = 1/3 of the total chance
  • 14.761f = 2/3 of the total chance
  • 22.142f = 3/3 of the total chance

decreasing the probability like this, rather than denying the spell allows higher level creatures to still daze the player in spite of the talent (like they would in spite of the def cap) and allows the player to mix in defense to complement the talent points invested

@Tereneckla
Copy link
Contributor

I'd say it's more likely the daze chance should be modified in relation to the total SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_CHANCE AuraEffect amount

Druid is the only class that can get crit immune with that so they are the only one that was noticed on

@UndoUreche
Copy link
Contributor Author

I'd say it's more likely the daze chance should be modified in relation to the total SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_CHANCE AuraEffect amount

Druid is the only class that can get crit immune with that so they are the only one that was noticed on

Yeah, a solution that ties the chance to be dazed to the chance to be crit would be better. I'm not familiar with this enum (assuming that's what it is). Are there any docs for it I could look up?

@Tereneckla
Copy link
Contributor

There is a reference for auras that have MiscValues to affect their meaning (this one is not one of them)
https://www.azerothcore.org/wiki/spell-aura-reference

In this case you just need to call victim->GetTotalAuraModifier(SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_CHANCE); to get the crit chance modification ( a negative value)

@UndoUreche
Copy link
Contributor Author

There is a reference for auras that have MiscValues to affect their meaning (this one is not one of them) https://www.azerothcore.org/wiki/spell-aura-reference

In this case you just need to call victim->GetTotalAuraModifier(SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_CHANCE); to get the crit chance modification ( a negative value)

ended up using GetUnitCriticalChance to avoid duplicating the code for that calculation

@Tereneckla
Copy link
Contributor

That function includes many other modifiers. One of which, resilience rating, definitely does not affect the chance to be dazed

@UndoUreche
Copy link
Contributor Author

That function includes many other modifiers. One of which, resilience rating, definitely does not affect the chance to be dazed

hmmm, you're right, that would be a stretch. Fixing this right away

…r modifiers taking part. Added aura-based crit chance reduction by converting it back to def
@UndoUreche
Copy link
Contributor Author

Right, this should do

@heyitsbench heyitsbench merged commit 158ef9c into azerothcore:master Nov 12, 2025
17 checks passed
nl-saw pushed a commit to mod-playerbots/azerothcore-wotlk that referenced this pull request Nov 23, 2025
* fix(DB/SmartAI): improve Harry surrendering during quest 'Gambling Debt' (azerothcore#23598)

* fix(DB/Quest): The Kalu'ak dailies reward 500 rep (azerothcore#23600)

* chore(DB): import pending files

Referenced commit(s): fb03f41

* fix(DB/GameEvent): Remove midsummer pole in K3 (azerothcore#23614)

* chore(DB): import pending files

Referenced commit(s): 7b0000d

* fix(DB/SmartAI): increase reliability of quest event Foolish Endeavors (azerothcore#23612)

* chore(DB): import pending files

Referenced commit(s): 86f219a

* fix(Scripts/AreaTrigger): players become stuck after Last Rites (azerothcore#23613)

* chore(DB): import pending files

Referenced commit(s): c1a8047

* fix(Core/Vmaps): Fix inconsistency of hitInstance and hitModel to cause wrong area ids (azerothcore#23233)

Co-authored-by: ModoX <[email protected]>
Co-authored-by: Shauren <[email protected]>
Co-authored-by: Grimdhex <[email protected]>
Co-authored-by: sudlud <[email protected]>

* fix(DB/Gameobject): Sniffed Values for 'Wild Mustard' spawns (azerothcore#23608)

* fix(DB/SmartAI): remove large combat distance of Frostbrood Sentry (azerothcore#23607)

* chore(DB): import pending files

Referenced commit(s): 41d40b2

* fix(DB/ReputationRewardRate): Patch 3.0.0 gain for Northrend factions (azerothcore#23597)

* chore(DB): import pending files

Referenced commit(s): 067a898

* fix(Core/Map): It should be ensured that the instance is unloaded only after the Creature Respawn. (azerothcore#23103)

* fix(Scripts/Northrend): Sniffing Out The Perpetrator horde (azerothcore#23620)

* fix(Scripts/Northrend): ensure Drakuru stays in place during Betrayal (azerothcore#23619)

* chore(DB): import pending files

Referenced commit(s): 928e145

* fix(DB/SmartAI): quest 'Reconnaissance Flight' (azerothcore#23628)

Co-authored-by: dr-j <[email protected]>
Co-authored-by: Killyana <[email protected]>

* fix(DB/QuestOfferReward): remove mention of a beta recipe in text (azerothcore#23629)

* fix(DB/Conditions): update quest conditions to drop chokers (azerothcore#23610)

* chore(DB): import pending files

Referenced commit(s): bca8f7c

* refactor(Core/PlayerScript): Delete OnPlayerChat, use OnPlayerCanUseChat (azerothcore#23617)

* fix(Core/SmartAI): startup warnings unused params (azerothcore#23551)

* fix(Core/Unit): Druid Talent Survival of the Fittest lacking immunity to creature daze (azerothcore#23471)

* fix(DB/SAI): Fix Fizzcrank Paradrop teleporters (azerothcore#23633)

* chore(DB): import pending files

Referenced commit(s): 94ba1c2

* fix(Core): Fix waterwalking after dying in instance (azerothcore#23593)

* fix(DB/SAI): don't remove all auras when mounting flamebringer (azerothcore#23640)

* chore(DB): import pending files

Referenced commit(s): 22f91f3

* fix(DB/SAI): Emerald Lasher goes out of the terrain when aggroed. (azerothcore#23642)

* chore(DB): import pending files

Referenced commit(s): f9d6fe4

* fix(DB/SAI): Burning Depths Necromancer no longer stays in place. (azerothcore#23641)

* chore(DB): import pending files

Referenced commit(s): 1037471

* fix(DB/SAI): Remove SmartAI from Valkyrion Harpoon Gun. (azerothcore#23646)

* chore(DB): import pending files

Referenced commit(s): 8e3a7e6

* fix(DB/Creature): Fix Weakened Reanimated Frost Wyrm inhabit type (azerothcore#23645)

* chore(DB): import pending files

Referenced commit(s): 3baa18e

* fix(DB/Spell): Infectious Bites should stack from different casters (azerothcore#23647)

* chore(DB): import pending files

Referenced commit(s): 5aede41

* fix(DB/SAI): Solve various issues with It Goes to 11... quest. (azerothcore#23651)

* fix(DB/Loot): Fireproof Satchel will now always drop the Ritual of Torch  (azerothcore#23585)

* chore(DB): import pending files

Referenced commit(s): 1090c20

* fix(Scripts/Northrend): Betrayal quest (azerothcore#23650)

* fix(Script/BlackTemple): Reliquary of Souls will use 45 degree in front to set incombat (azerothcore#22938)

* fix(Scripts/Spell): Fix Animal Blood spawning when it shouldn't (azerothcore#23656)

* fix(Scripts/BoreanTundra): Script Bloodspore Haze/Psychosis (azerothcore#23657)

* chore(DB): import pending files

Referenced commit(s): baf7957

* fix(DB/SAI): Sibling Rivalry quest credit if mounted (azerothcore#23659)

* chore(DB): import pending files

Referenced commit(s): 6919cc6

* fix(docs/license): use GPLv2 as MaNGOS-based project (azerothcore#23655)

* fix(Core/Achievements): a character can only have 1 race realm first (azerothcore#23626)

* chore: fix leftover license header (azerothcore#23678)

* fix(Scripts/HoL): Update Loken script (azerothcore#23587)

* fix(Scripts/DTK): Update King Dred script (azerothcore#23572)

* fix(DB/SAI): Bitter Departure quest credit (azerothcore#23658)

* chore(DB): import pending files

Referenced commit(s): e595425

* fix(DB/Conditions): Ice Shard require Icy Imprisonment (azerothcore#23661)

* chore(DB): import pending files

Referenced commit(s): 8294652

* fix(DB/Loot): add Scourge Curio drop to Lost Shandaral Spirit (azerothcore#23686)

* chore(DB): import pending files

Referenced commit(s): b6ed434

* fix(DB/Gameobject): fix spell focus location for 'Will of the Titans' (azerothcore#23683)

* chore(DB): import pending files

Referenced commit(s): 388f188

* fix(DB/Creature): update IOC Demolisher spells (azerothcore#23685)

* chore(DB): import pending files

Referenced commit(s): cdfa50c

* fix(Scripts/Northrend): IOC boss cast ability Mortal Strike (azerothcore#23684)

* fix(Scripts/BoreanTundra): Fix Beryl Sorcerer engaging mobs (azerothcore#23690)

* fix(Core/Entities): Improve interactions between taxis and players regarding PvP flag. (azerothcore#23681)

* fix(DB/Creature): Peon Gakra should be an innkeeper (azerothcore#23699)

* chore(DB): import pending files

Referenced commit(s): 6abff4a

* fix(Scripts/SholazarBasin): Fix Song of Wind and Water double credit (azerothcore#23707)

* fix(DB/SAI): Reanimated Frost Wyrm engage after being hit by quest spell (azerothcore#23697)

* fix(DB/SAI): Timely respawn Nesingwary Trappers (azerothcore#23703)

* fix(DB/Creature): Fix Fjord Hawk Matriarch unit flags (azerothcore#23696)

* fix(DB/Conditions): Fix Fordragon Resolve target conditions (azerothcore#23701)

* chore(DB): import pending files

Referenced commit(s): 2942d63

* fix(DB/Script): Move Tailhorn Stag and Amberpine Woodsman behavior into SmartAI. (azerothcore#23708)

* fix(DB/Creature): Set Trigger flag on Steam Vent. (azerothcore#23710)

* chore(DB): import pending files

Referenced commit(s): 435ca30

* fix(DB/SAI): To Stars' Rest! taxi flight (azerothcore#23712)

* chore(DB): import pending files

Referenced commit(s): ab4d59a

* fix (DB/Creature): Set Surveyor Orlond flags. (azerothcore#23714)

* chore(DB): import pending files

Referenced commit(s): e8ec77d

* fix(DB/Loot): Fix Master Summoner Staff drop chance (azerothcore#23717)

* chore(DB): import pending files

Referenced commit(s): 182c055

* fix(Scripts/DTK): Fix Oh Novos! achievement (azerothcore#23539) (azerothcore#23718)

* fix(Core/Spells): Remove King Mrgl-Mrgl costume on spell casting (azerothcore#23713)

* chore(DB): import pending files

Referenced commit(s): 8c963a1

* fix(DB/Reputation): Utigarde Pinnacle normal reputation (azerothcore#23719)

* chore(DB): import pending files

Referenced commit(s): 88ed7d6

* fix(Scripts/HoS): Clean up faction update hacks (azerothcore#23720)

* fix(DB/Reputation): Lower reputation according to rates handling (azerothcore#23722)

* fix(DB/Reputation): Oculus normal & UP correction (azerothcore#23723)

* chore(DB): import pending files

Referenced commit(s): abc2cf3

* fix(Scripts/Oculus): Implement crossfaction support for drakes (azerothcore#23704)

* fix(DB/Quest): Correct prerequisite for Reclaimed Ration (azerothcore#23736)

Co-authored-by: blinkysc <[email protected]>

* fix(DB/Quest): Correct prerequisite for Salvaging Life's Strength (azerothcore#23734)

Co-authored-by: blinkysc <[email protected]>

* chore(DB): import pending files

Referenced commit(s): afd8197

* fix(Core/Movement): Fix SummonMovementInform for summons (azerothcore#23725)

* refactor(Core/Movement): Fix Build (azerothcore#23739)

* fix(DB/SAI): Update Iron Rune Construct SAI to use DO_ACTION instead … (azerothcore#23716)

* chore(DB): import pending files

Referenced commit(s): 7cc39f7

* fix(DB/SAI): Fix Flamebringer gossip interaction (azerothcore#23740)

* chore(DB): import pending files

Referenced commit(s): 9cb683c

* fix(DB/SAI): Nerub'ar member packs now attack together. (azerothcore#23727)

* chore(DB): import pending files

Referenced commit(s): 6f5a1b7

* fix(DB/SAI): Remove Harrison Johnes quest flag on escort accept (azerothcore#23700)

* chore(DB): import pending files

Referenced commit(s): bacf15d

* Update crash issue template with log submission guidelines (azerothcore#23754)

* Merge

* Updated OnPlayerChat method name to OnPlayerCanUseChat

---------

Co-authored-by: sogladev <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: 天鹭 <[email protected]>
Co-authored-by: ModoX <[email protected]>
Co-authored-by: Shauren <[email protected]>
Co-authored-by: Grimdhex <[email protected]>
Co-authored-by: sudlud <[email protected]>
Co-authored-by: dr-j <[email protected]>
Co-authored-by: Killyana <[email protected]>
Co-authored-by: Undo <[email protected]>
Co-authored-by: Andrew <[email protected]>
Co-authored-by: killerwife <[email protected]>
Co-authored-by: Tereneckla <[email protected]>
Co-authored-by: Rocco Silipo <[email protected]>
Co-authored-by: Ryan Turner <[email protected]>
Co-authored-by: blinkysc <[email protected]>
Co-authored-by: Francesco Borzì <[email protected]>
Co-authored-by: Benjamin Jackson <[email protected]>
Co-authored-by: Traesh <[email protected]>
Co-authored-by: blinkysc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE Related to the core file-cpp Used to trigger the matrix build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants