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

apply effect fix #2598

Closed
3meraldK opened this issue Oct 26, 2019 · 5 comments
Closed

apply effect fix #2598

3meraldK opened this issue Oct 26, 2019 · 5 comments
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: low Issues that are not harmful to the experience but are related to useful changes or additions.

Comments

@3meraldK
Copy link
Contributor

Description

fix an apply effect because it adds additional time for effect but it should set time

@bluelhf
Copy link
Contributor

bluelhf commented Oct 26, 2019

Do you mean that apply effect should be instant? AFAIK that's a spigot limitation, will look into it.

E: Looked into it. Doesn't look like you can make it instant.

@TPGamesNL
Copy link
Member

Do you mean that apply effect should be instant? AFAIK that's a spigot limitation, will look into it.

E: Looked into it. Doesn't look like you can make it instant.

I think they mean that currently, when using the apply effect potion, it adds your chosen timespan to the duration of the effect (e.g. I already have 2 minutes of resistance, I use Skript to apply 1 minute, then I have 3 minutes of resistance). They probably don't want it to be added to the duration.

@bluelhf
Copy link
Contributor

bluelhf commented Oct 26, 2019

@TPGamesNL Could we not add a replacing existing effects part to the apply effect and remove the effect from the entity before adding it?

@TPGamesNL
Copy link
Member

TPGamesNL commented Oct 26, 2019

@TPGamesNL Could we not add a replacing existing effects part to the apply effect and remove the effect from the entity before adding it?

Yes that would probably be a good idea.
I just looked at the code for the effect, and apparently Skript does the adding of the duration manually: L35. But then they still make use of the force boolean...

@Wealthyturtle Wealthyturtle added enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: low Issues that are not harmful to the experience but are related to useful changes or additions. labels Oct 27, 2019
bensku pushed a commit that referenced this issue Feb 3, 2020
* Update EffPotion.java

Add replace existing effect

* Make Changes

* Fix issue with applying
@Wealthyturtle Wealthyturtle added the completed The issue has been fully resolved and the change will be in the next Skript update. label Feb 3, 2020
@ShaneBeee
Copy link
Contributor

Fixed in 2.5-alpha2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: low Issues that are not harmful to the experience but are related to useful changes or additions.
Projects
None yet
Development

No branches or pull requests

5 participants