Exemple #1
0
 @Override
 public boolean validate(Stat2 stat, IStatFunction statFunction) {
   return conditions != null ? conditions.validate(stat, statFunction) : true;
 }
Exemple #2
0
 /** Check all conditions before using skill */
 private boolean preUsageCheck() {
   Conditions skillConditions = skillTemplate.getUseconditions();
   return skillConditions != null ? skillConditions.validate(this) : true;
 }
Exemple #3
0
 /** Check all conditions after using skill */
 private boolean endCondCheck() {
   Conditions skillConditions = skillTemplate.getEndConditions();
   return skillConditions != null ? skillConditions.validate(this) : true;
 }
Exemple #4
0
 /** Check all conditions before starting cast */
 protected boolean preCastCheck() {
   Conditions skillConditions = skillTemplate.getStartconditions();
   return skillConditions != null ? skillConditions.validate(this) : true;
 }