Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- id: 'Shiva Wyrmfang Init',
- regex: Regexes.gainsEffect({ effect: 'Wyrmfang' }),
- condition: function(data, matches) {
- // FIXME: temporary workaround for "gains the effect for 9999.00"
- // https://github.com/ravahn/FFXIV_ACT_Plugin/issues/223
- return matches.duration < 1000;
- },
- run: function(data, matches) {
- data.wyrmfangs = data.wyrmfangs || [null, null, null, null];
- let order = null;
- if (parseFloat(matches.duration) < 23)
- order = 0;
- else if (parseFloat(matches.duration) < 31)
- order = 1;
- else if (parseFloat(matches.duration) < 39)
- order = 2;
- else
- order = 3;
- // FIXME: temporary workaround for multiple gains effects messages.
- // https://github.com/ravahn/FFXIV_ACT_Plugin/issues/223#issuecomment-513486275
- if (order !== null && data.wyrmfangs[order] === null)
- data.wyrmfangs[order] = matches.target;
- },
- infoText: function(data) {
- return {
- en:
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement