Skip to content

Spells/Scripts: Implement Leech Stat and SPELL_AURA_MOD_LEECH #30385

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

aquadeus
Copy link
Contributor

Changes proposed:

  • Implement Leech Stat and SPELL_AURA_MOD_LEECH

Tests performed:

Tested in-game


ApplyPct(amount, tmpMod);

HealInfo healInfo(this, this, amount, leechSpell, leechSpell->GetSchoolMask());
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this take into account that only effective healing should leech?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

where it says is only effective heal?

Copy link
Contributor

@Nyr97 Nyr97 Oct 31, 2024

Choose a reason for hiding this comment

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

Because Leech only works on healing if it's effective healing, otherwise I can endlessly heal a target and get Leech value from it, which makes no sense:

If I were to heal a target that has 100k hp max., but the target is missing 20k (they're at 80k), and my healing spell is bound to heal 30k, that means I will only Leech from 20k, which is the effective healing of my cast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants