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][6.x][Core/Spell] Venomhide Poison - Enchant with wrong duration #15739

Closed
Rushor opened this issue Oct 19, 2015 · 11 comments
Closed

[3.3.5][6.x][Core/Spell] Venomhide Poison - Enchant with wrong duration #15739

Rushor opened this issue Oct 19, 2015 · 11 comments

Comments

@Rushor
Copy link
Contributor

Rushor commented Oct 19, 2015

rev: c6c3e72

Facts:
http://www.wowhead.com/spell=14792/venomhide-poison
You get this echantspell if you fight against http://www.wowhead.com/npc=6508/venomhide-ravasaur

Problem:
The duration of the enchant:
Enchant Held Item (OBSOLETE): Venomhide Poison (1003)
holds 9 HOURS

How it should be:
Enchant Held Item (OBSOLETE): Venomhide Poison (1003)
The duration should be 5 MINUTES.
The procchance and the procflags are all correct. it's only an issue with the duration of the enchant

Source:
Venomhide Poison is a temporary weapon enchantment that lasts for 5 minutes.
http://wowwiki.wikia.com/wiki/Venomhide_Poison

What i tried to fix the issue:
https://github.com/TrinityCore/TrinityCore/blob/6.x/src/server/game/Spells/SpellEffects.cpp#L2692
I added the spellinfo:

else if (m_spellInfo->Id == 14792)
        duration = 300;                                     // 5 mins

but this didn't changed anything. so i'm pretty lost here :D

sideproblem: many people abuse this enchant to deal further damage in raids

@digz6666
Copy link

Confirmed, it's on top damage of skill for paladin's in raid.

@Rushor
Copy link
Contributor Author

Rushor commented Oct 20, 2015

you can reduce the damage if you disable the sp scailing in spell_bonus_data
(that's a quick solution, but all we actually need is a fix for the duration)

@Shauren
Copy link
Member

Shauren commented Oct 20, 2015

The effect is EnchantHeldItem, not EnchantItemTemporary

@Rushor
Copy link
Contributor Author

Rushor commented Oct 20, 2015

then it's even more strange:
https://github.com/TrinityCore/TrinityCore/blob/6.x/src/server/game/Spells/SpellEffects.cpp#L4117
ID - 14792
Duration: ID (9) 30000, 0, 30000

@Shauren
Copy link
Member

Shauren commented Oct 20, 2015

Actually, its not. see here:
https://github.com/TrinityCore/TrinityCore/blob/6.x/src/server/game/Spells/SpellEffects.cpp#L4135
30s * 1000 -> 8 hours and 20 minutes (ingame 9 hours until it falls below 8 hours)
Yes, this is a bug.

@Rushor
Copy link
Contributor Author

Rushor commented Oct 20, 2015

there are only 3 spells which use this effect
ID - 53160 Dancing Rune Weapon Visual
ID - 19108 MHTest02
and the already known spell

would it be save to change the multiplier to 10 since 53160 has a unlimited duration and 19108 does not have a duration at all?

@Shauren
Copy link
Member

Shauren commented Oct 20, 2015

why any multiplier? spell in this issue clearly has a custom duration (5 minutes)

@Rushor
Copy link
Contributor Author

Rushor commented Oct 20, 2015

the duration is only 30 seconds (duration of the debuff) but it must be 5 minutes for the enchant, so * 10 is needed :/
where do you see the 5 minutes duration in 14792?

@Shauren
Copy link
Member

Shauren commented Oct 20, 2015

I do not. But duration of the debuff is not related in anyway to duration of the enchantment - just hardcode if (m_spellInfo->Id == 14792) duration=5 * MINUTES * IN_MILLISECONDS;

@Rushor
Copy link
Contributor Author

Rushor commented Oct 20, 2015

o7 kay

@Rushor
Copy link
Contributor Author

Rushor commented Oct 20, 2015

c04c409 thanks for all the help

@Rushor Rushor closed this as completed Oct 20, 2015
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

3 participants