Skip to content

Commit

Permalink
Merge pull request #66 from League-of-Foundry-Developers/multitrigger
Browse files Browse the repository at this point in the history
fix for @trigger[capture move] etc
  • Loading branch information
p4535992 authored Dec 1, 2021
2 parents 559cdfa + dfa515d commit 7f861fc
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,14 +410,16 @@ export class TriggerHappy {
}
}
} else if(entity === TRIGGER_ENTITY_TYPES.TRIGGER){
let eventLink = this._manageTriggerEvent(triggerJournal, entity, id, label, filterTags);
if(!eventLink){
break;
}
if(eventLink instanceof String){
eventLink = eventLink.toLowerCase(); // force lowercase for avoid miss typing from the user
let ids = id.split(" ");
for (let id1 of ids) {
let eventLink = this._manageTriggerEvent(triggerJournal, entity, id1, label, filterTags);
if(eventLink){
if(eventLink instanceof String){
eventLink = eventLink.toLowerCase(); // force lowercase for avoid miss typing from the user
}
options.push(eventLink);
}
}
options.push(eventLink);
} else {
let effect = this._manageTriggerEvent(triggerJournal, entity, id, label, filterTags);
if(!effect){
Expand Down

0 comments on commit 7f861fc

Please sign in to comment.