Skip to content

Scripts/Spells: Implement first aid related anti-venom item spells #30289

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 2 commits into
base: 3.3.5
Choose a base branch
from

Conversation

Odyssey
Copy link
Contributor

@Odyssey Odyssey commented Sep 30, 2024

Changes proposed:

Makes the following first aid related items work:

Note that WotlK era introduced a hard nerf to the anti-venom items, making them take in account the target's max level instead of the poison spell level, so players couldn't abuse the items to bypass higher level poison mechanics anymore. A conversation regarding this nerf and how the items behaved on higher level targets can be seen here. This is reflected in the spell script.

While the PR targets 3.3.5, if someone seeing this takes this code to the master branch, the scriptname should also be assigned to the spell ids 172368 and 307165, from future expansions.

Issues addressed:

Closes #21518

Tests performed:

Builds & works ingame. Tested against the example in #21518 with one and multiple poison effects present.

@Ovahlord
Copy link
Contributor

Ovahlord commented Oct 1, 2024

The question now is, if we want to go with the original balance of the game or if we really want to include classic changes

@Aokromes
Copy link
Member

Aokromes commented Oct 1, 2024

if it's wotlk classic it must target wotlk classic branch, oh wait :P

@Shauren
Copy link
Member

Shauren commented Oct 1, 2024

Comments say its already nerfed in 3.1.1 (the old wotlk, not classic) and the script should be checking level of the caster of each poison aura

@Odyssey
Copy link
Contributor Author

Odyssey commented Oct 1, 2024

Updated. Can quickly be tested engaging any hostile target and using .cast back 744 and .cast back 11918 or any other poison spells

@Odyssey
Copy link
Contributor Author

Odyssey commented Oct 1, 2024

the script should be checking level of the caster of each poison aura

I don't think that's true though? This mentions it not working against casters of level below 60.

From here

Now, it seems to check the level of the source target

the anti-venom won't work as long as the source target has higher level than 60

I think the source is clearly the anti-venom user, and the target is the player targetted by that anti-venom.

@Shauren
Copy link
Member

Shauren commented Oct 1, 2024

And to me "source" is poison source - clearly wording is ambiguous (and its a user comment, not some official blz statement)

@Odyssey
Copy link
Contributor Author

Odyssey commented Oct 1, 2024

Well, if the source is the poison source, the source target is still the player getting poisoned, which while not being an official statement, would line up with the guy saying it doesn't work in silithus against mobs under maxLevel.

@CraftedRO
Copy link
Contributor

CraftedRO commented Nov 3, 2024

Just tested this PR, it works as intended.
https://youtu.be/1MAL8mAQii8

@Aokromes
Copy link
Member

Aokromes commented Nov 3, 2024

Conflicting files
src/server/scripts/Spells/spell_item.cpp

@CraftedRO
Copy link
Contributor

Conflicting files src/server/scripts/Spells/spell_item.cpp

this is because in that place were merged the other titanium_seal_of_dalaran fix code.

@CraftedRO
Copy link
Contributor

why does this still have wip label ?

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.

5 participants