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

[3.3.5] Scripts/Spells: Life Tap #17559

Closed
ogeraisi opened this issue Jul 10, 2016 · 8 comments
Closed

[3.3.5] Scripts/Spells: Life Tap #17559

ogeraisi opened this issue Jul 10, 2016 · 8 comments

Comments

@ogeraisi
Copy link

Description: Life Tap HP requirement goes up the more spirit players have causing the players to not be able to use it at times when they should be able to.

Current behaviour: The more spirit the player has the more HP required for the player to use the item goes.

Expected behaviour: Spell shouldn't scale with spirit.

Steps to reproduce the problem:

  1. Take all gear off.
  2. Use Life Tap you'll notice that the spell will convert X HP to Y mana.
  3. Equip gear that gives extra spirit.
  4. Use Life Tap you'll notice that the spell description states that more HP is required to use the spell.
  5. Use Life Tap you'll notice that the spell will convert still convert X HP to Y mana (as it should).

Branch(es): 3.3.5

TC hash/commit: ebb33bb

TDB version: TDB_full_335.61_2016_04_11

Operating system: Windows 10 Pro x64

Additional note: The spell performs HP check based on HP percentage (not sure if that is how it should be).

@MrSmite
Copy link
Contributor

MrSmite commented Jul 29, 2016

Are you sure it's spirit that is scalig wrong and not spell power? If the item has INT on it then it would increase the spell power stat.

The mana returned is scaled based on spell power. Perhaps this is also being incorrectly applied to the health requirement.

@ogeraisi
Copy link
Author

ogeraisi commented Jul 30, 2016

Yes try equipping items that give you extra spirit and you'll see that the HP requirement will go up when it shouldn't whereas equipping items that give spell power doesn't affect it.

@ogeraisi
Copy link
Author

ogeraisi commented Sep 9, 2017

Problem is in spell_warl_life_tap class

In SpellCastResult CheckCast()

Line #824
if ((int32(GetCaster()->GetHealth()) > int32(GetSpellInfo()->Effects[EFFECT_0].CalcValue() + (6.3875 * GetSpellInfo()->BaseLevel))))

Needs to be changed to:
if (int32(GetCaster()->GetHealth()) > int32(GetSpellInfo()->Effects[EFFECT_0].CalcValue()))

Tooltip will still display wrong required HP value but the spell works as intended.

@Keader
Copy link
Member

Keader commented Sep 9, 2017

Looks like hack to me.
You tested without put items? just add some auras that change spirit or spell power and see what happens. Looks more logic if it is scaling with spell power..

@ogeraisi
Copy link
Author

ogeraisi commented Sep 9, 2017

The mana gained does scale with spell power as intended regardless of this fix, the spell power has no effect on the returned mana value.

HP value should not change regardless of spell power, it is a fixed value and only the gained mana should change. As of now HP taken is a fixed value as it should be regardless of spell power. Problem is that the required HP check scales the value (even though it should be a fixed value) based on the spirit stat of the player.

This commit fixes the HP check and keeps the static value without the spirit scaling.

If anything what is this 6.3875 * BaseLevel based on?

EDIT:
In patch 3.3.3 "Life Tap: This spell no longer scales with spirit, and instead scales with spell power." so I'm assuming that the tooltip error (scaling with spirit) is a residual error.

@ghost ghost changed the title [3.3.5][Spell]Life Tap [3.3.5] Scripts/Spells: Life Tap Oct 4, 2017
@ghost
Copy link

ghost commented Sep 19, 2018

Nope, this should scale with spirit. It is completely missing in the script. The hp lost should be like this: "base damage" + 1.5*Spirit

@Keader
Copy link
Member

Keader commented Sep 20, 2018

@d3tr0l

Wrath of the Lich King Patch 3.3.3 (2010-03-23): This spell no longer scales with spirit, and instead scales with spell power.

tooltip is wrong.

@Keader
Copy link
Member

Keader commented Nov 8, 2018

Just for references...
About #17559 (comment)
You can check in http://us.battle.net/wow/en/game/patch-notes/3-3-3

KNOWN ISSUES
Life Tap: The tooltip for this ability incorrectly states that the health lost is modified by spirit. Health loss is fixed and does not get increased by the Warlock’s spirit.

They are Lazy and dont fixed it in 3.3.5a too xD

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

No branches or pull requests

5 participants