fix case analysis in permanents method, should check for group sn instead of pn

master
melvinzhang 2015-12-09 23:33:01 +08:00
parent 8b16b17568
commit 08b3d80df0
1 changed files with 1 additions and 1 deletions

View File

@ -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);