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

Sneak spell not replacing sneak buff #60

Closed
geekgirl101 opened this issue Aug 20, 2014 · 3 comments
Closed

Sneak spell not replacing sneak buff #60

geekgirl101 opened this issue Aug 20, 2014 · 3 comments

Comments

@geekgirl101
Copy link

When casting Sneak or Spectral Jig it does not replace the sneak buff if it's already active. I've added these lines in to remove the sneak buff before casting just before the End at the first If/End in the job_midcast function:

Jobs using WHM/SCH/RDM:

elseif spell.english == 'Sneak' and buffactive.sneak and spell.target.type == 'SELF' then
    send_command('cancel 71')
    cast_delay(0.3)

Jobs using DNC:

elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
    send_command('cancel 71')
@Kinematics
Copy link
Owner

That should already be handled globally in Mote-Globals, where the user_precast function calls the utility function cancel_conflicting_buffs. Do you have the cancel addon loaded? I also see that you're using numbers for the buff, so are perhaps using the plugin version; try using the addon version if so.

@Kinematics
Copy link
Owner

Ah, I thought I'd answered this just a bit ago. You also wrote the comment on the code checkin.

In any case, remove the code from the job files that you added, and if the cancel addon is properly loaded, add an add_to_chat line in the Mote-Globals function to make sure it's being called.

@geekgirl101
Copy link
Author

Yeah I was just using the plugin, I've tried the addon and it's now working. Thank you.

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

No branches or pull requests

2 participants