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

forsaken skills #2799

Merged
merged 5 commits into from
Oct 14, 2024
Merged

Conversation

Gamemechanicwow
Copy link
Contributor

🍰 Pullrequest

Allows spell 7054 forsaken-skills to proc 7053 forsaken-skill-shadow

Proof

  • From the comments following the code, it looks like 7053 was mistaken for 7052
  • I have verified that all 15 spells exist in the clients from 1.2.4 to 1.12.1 - and spell 7052 exists in none of them

Issues

A different approach of fixing this, could be by using PickRandomValue().

How2Test

  • None

Todo / Checklist

  • None

@ratkosrb
Copy link
Contributor

Why is there a log statement in this function?

@Gamemechanicwow
Copy link
Contributor Author

For no apparent reason. Let's get rid of it.

@ratkosrb
Copy link
Contributor

Same spell is used in Aura::TriggerSpell btw.

@ratkosrb
Copy link
Contributor

ratkosrb commented Oct 14, 2024

Can you move the variable declaration to the proper scope btw, no idea why its declared outside the switch case.

@0blu
Copy link
Collaborator

0blu commented Oct 14, 2024

Maybe adding a comment to those ifs, so it the future someone still knows why this spellid is not valid and why we need to skip this number.

@ratkosrb ratkosrb merged commit d7e0c6e into vmangos:development Oct 14, 2024
3 checks passed
@Gamemechanicwow Gamemechanicwow deleted the forsaken-skills branch October 18, 2024 20:16
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.

3 participants