CharEffectList method getBuffs should return buff types.

This commit is contained in:
MobiusDev
2019-01-30 05:16:40 +00:00
parent b617e86b56
commit 893224a105
10 changed files with 10 additions and 10 deletions

View File

@@ -137,7 +137,7 @@ public final class CharEffectList
*/ */
public List<BuffInfo> getBuffs() public List<BuffInfo> getBuffs()
{ {
return _actives.stream().filter(b -> !b.getSkill().getBuffType().isBuff()).collect(Collectors.toList()); return _actives.stream().filter(b -> b.getSkill().getBuffType().isBuff()).collect(Collectors.toList());
} }
/** /**

View File

@@ -137,7 +137,7 @@ public final class CharEffectList
*/ */
public List<BuffInfo> getBuffs() public List<BuffInfo> getBuffs()
{ {
return _actives.stream().filter(b -> !b.getSkill().getBuffType().isBuff()).collect(Collectors.toList()); return _actives.stream().filter(b -> b.getSkill().getBuffType().isBuff()).collect(Collectors.toList());
} }
/** /**

View File

@@ -137,7 +137,7 @@ public final class CharEffectList
*/ */
public List<BuffInfo> getBuffs() public List<BuffInfo> getBuffs()
{ {
return _actives.stream().filter(b -> !b.getSkill().getBuffType().isBuff()).collect(Collectors.toList()); return _actives.stream().filter(b -> b.getSkill().getBuffType().isBuff()).collect(Collectors.toList());
} }
/** /**

View File

@@ -137,7 +137,7 @@ public final class CharEffectList
*/ */
public List<BuffInfo> getBuffs() public List<BuffInfo> getBuffs()
{ {
return _actives.stream().filter(b -> !b.getSkill().getBuffType().isBuff()).collect(Collectors.toList()); return _actives.stream().filter(b -> b.getSkill().getBuffType().isBuff()).collect(Collectors.toList());
} }
/** /**

View File

@@ -137,7 +137,7 @@ public final class CharEffectList
*/ */
public List<BuffInfo> getBuffs() public List<BuffInfo> getBuffs()
{ {
return _actives.stream().filter(b -> !b.getSkill().getBuffType().isBuff()).collect(Collectors.toList()); return _actives.stream().filter(b -> b.getSkill().getBuffType().isBuff()).collect(Collectors.toList());
} }
/** /**

View File

@@ -137,7 +137,7 @@ public final class CharEffectList
*/ */
public List<BuffInfo> getBuffs() public List<BuffInfo> getBuffs()
{ {
return _actives.stream().filter(b -> !b.getSkill().getBuffType().isBuff()).collect(Collectors.toList()); return _actives.stream().filter(b -> b.getSkill().getBuffType().isBuff()).collect(Collectors.toList());
} }
/** /**

View File

@@ -137,7 +137,7 @@ public final class CharEffectList
*/ */
public List<BuffInfo> getBuffs() public List<BuffInfo> getBuffs()
{ {
return _actives.stream().filter(b -> !b.getSkill().getBuffType().isBuff()).collect(Collectors.toList()); return _actives.stream().filter(b -> b.getSkill().getBuffType().isBuff()).collect(Collectors.toList());
} }
/** /**

View File

@@ -137,7 +137,7 @@ public final class CharEffectList
*/ */
public List<BuffInfo> getBuffs() public List<BuffInfo> getBuffs()
{ {
return _actives.stream().filter(b -> !b.getSkill().getBuffType().isBuff()).collect(Collectors.toList()); return _actives.stream().filter(b -> b.getSkill().getBuffType().isBuff()).collect(Collectors.toList());
} }
/** /**

View File

@@ -137,7 +137,7 @@ public final class CharEffectList
*/ */
public List<BuffInfo> getBuffs() public List<BuffInfo> getBuffs()
{ {
return _actives.stream().filter(b -> !b.getSkill().getBuffType().isBuff()).collect(Collectors.toList()); return _actives.stream().filter(b -> b.getSkill().getBuffType().isBuff()).collect(Collectors.toList());
} }
/** /**

View File

@@ -137,7 +137,7 @@ public final class CharEffectList
*/ */
public List<BuffInfo> getBuffs() public List<BuffInfo> getBuffs()
{ {
return _actives.stream().filter(b -> !b.getSkill().getBuffType().isBuff()).collect(Collectors.toList()); return _actives.stream().filter(b -> b.getSkill().getBuffType().isBuff()).collect(Collectors.toList());
} }
/** /**