Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct threat for more spells. #2188

Merged
merged 2 commits into from
Nov 15, 2023
Merged

Conversation

Daribon
Copy link
Contributor

@Daribon Daribon commented Sep 3, 2023

🍰 Pullrequest

This PR corrects threat to spells that I previously missed.

Proof

  • I've confirmed the threat values on PTR, by requesting threat from server with the following macro: /run local _,_,_,_,t=UnitDetailedThreatSituation("player","target") if t then DEFAULT_CHAT_FRAME:AddMessage(t) else DEFAULT_CHAT_FRAME:AddMessage("No threat") end

Currently this warning shows up while server is loading:
WindowsTerminal_knRbyQHQV4
However all the spells in that list do correct threat in game.

Issues

How2Test

  • pull any enemy mob and .cast any of the spells in the SQL.

Todo / Checklist

  • None


-- Remove Blessing of Wisdom
-- It had 0 threat value and should not exist in spell_threat
DELETE FROM `spell_threat` WHERE `entry`=19742;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

World of Warcraft Client Patch 1.9.0 (2006-01-03)
- Blessing of Wisdom - Mana regeneration over time will no longer
  generate threat.

Have you tested if it still generates threat pre 1.9 with this deletion? We should not impose the 1.12 state on previous patches.

Copy link
Contributor Author

@Daribon Daribon Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All I did was remove the 0 threat from entry 19742 which shouldn't have been there in the first place since it defaults to 0 threat if spell doesn't exist in spell_threat. With this PR and without this PR Blessing of Wisdom generates 0 threat when cast.

The patch note you mention is not currently implemented in vmangos, mp5 from Blessing of Wisdom is currently not able to cause threat in 1.8.4 or below. I tested this with no mana with Blessing of Wisdom applied to 100% mana and no threat was generated, even without this PR.

@ratkosrb ratkosrb merged commit 129d1c6 into vmangos:development Nov 15, 2023
1 check passed
Benjaminmnoer pushed a commit to Benjaminmnoer/vmangoscore that referenced this pull request Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐞 [Bug] Touch of Weakness incorrect threat.
2 participants