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