The-Cataclysm-Preservation-Project / TrinityCore

Archived repository for WoW 4.3.4.15595. The project will be reworked for Cataclysm Classic as an official new branch of TrinityCore at https://github.com/TrinityCore/TrinityCore
GNU General Public License v2.0
237 stars 97 forks source link

Fix Warrior Enraged Regeneration spell #343

Closed AGandrup closed 2 years ago

AGandrup commented 2 years ago

Changes proposed:

Tests performed:

Known issues and TODO list:

Ovahlord commented 2 years ago

You will be surprised but there already is AURA_STATE_ENRAGE which is the requirement for enrage based spells to be casted. So checking for the aura state is the way to go here. Also usually stuff like this belongs into spell scripts

AGandrup commented 2 years ago

Oh okay, excellent. I will have to look into this some more then. Is AURA_STATE_ENRAGE something that can be used for conditions as well or is that only related to spell scripts?

Ovahlord commented 2 years ago

I's only available for spell scripts and that's fine because stuff like this usually belongs into spell scripts at least for class scripts

AGandrup commented 2 years ago

Right, that makes sense. Was just wondering

Ovahlord commented 2 years ago

So from what I read on the webs, Enraged Regeneration does not block the cast of these effects, instead it just renders you immune to any other spell that uses MECHANIC_ENRAGE. So that one is easy to fix

AGandrup commented 2 years ago

So what that means is, if Enraged Regeneration is active then Berserker Rage and Deathwish can still be used but wont do anything? So you would basically just waste your cooldown and rage on nothing? Seems odd if thats the case...

Edit: There is this following patch note from WotLK: Patch 3.1.0 (14-Apr-2009): While this is active, the warrior is blocked from using abilities that trigger being enraged (which would do nothing and waste the cooldowns). Source: https://wowwiki-archive.fandom.com/wiki/Patch_3.1.0

So I guess it should waste the cooldown. The phrasing is kinda bad/confusing to me because it also states that the warrior is "blocked from using abilities that trigger being enraged", so ye idk.

Ovahlord commented 2 years ago

Looks like it. The only difference between the WotLK and Cata version is that the Cataclysm version no longer consumes enrage effects but otherwise, their functionality is identical and based on that, the WotLK also applied the enrage immunity which, weirdly enough, is no longer in the Cataclysm dbc entry for it.

Ovahlord commented 2 years ago

f94ce7954377e4486dae2c2603c0898dc12b2a49 there we go

AGandrup commented 2 years ago

f94ce79 there we go

Alright, going with that solution then. Awesome 👍