RekkasGit / E3Next

13 stars 21 forks source link

Add exclusion for selos song #63

Closed Lyricalpanda closed 1 year ago

Lyricalpanda commented 1 year ago

When using melodyIf such as:

MelodyIf=Base/Ifs|NoCombat

And we have a travel melody setup such as [travel Melody] Song=Selo's Song of Travel/gem|4

And trying to have your bard cast Selos Song of Travel, you currently aren't able to do that. If you do the following commands: /playmelody stop /playmelody travel

What will happen is the bard tries to cast Selo's Song of Travel, but upon getting to the end, we will queue up the base melody. Then the bard will start playing the songs from base melody upon casting Selo's Song of Travel. The problem is it takes Selo's Song of Travel a little bit of time to make the bard invis. Since the bard isn't invis immediately, the bard will start playing the next song, which will take him out of invisibility.

Trying to do /playmelody stop will also just have the bard automatically find the melody to play... making it so you can't do Selo's Song of Travel unless you stop e3.

Idea here is to check the melody we're currently playing. If it has selos in the melody at all, then don't automatically switch melodies.