fix case analysis in permanents method, should check for group sn instead of pn
parent
8b16b17568
commit
08b3d80df0
|
@ -141,7 +141,7 @@ public class ARG {
|
|||
public static List<MagicPermanent> permanents(final MagicEvent event, final Matcher m, final MagicTargetFilter<MagicPermanent> filter) {
|
||||
if (m.group("rn") != null) {
|
||||
return Collections.singletonList(event.getRefPermanent());
|
||||
} else if (m.group("pn") != null) {
|
||||
} else if (m.group("sn") != null) {
|
||||
return Collections.singletonList(event.getPermanent());
|
||||
} else {
|
||||
return filter.filter(event);
|
||||
|
|
Loading…
Reference in New Issue