コード例 #1
0
 @Override
 public void unapplyOverride() {
   final FightPropertyType property = FightPropertyType.getPropertyFromId(this.m_value);
   if (property == null) {
     return;
   }
   this.m_target.removeProperty(property);
   super.unapplyOverride();
 }
コード例 #2
0
 @Override
 protected void executeOverride(final RunningEffect triggerRE, final boolean trigger) {
   if (this.m_target == null) {
     this.setNotified(true);
     return;
   }
   final FightPropertyType property = FightPropertyType.getPropertyFromId(this.m_value);
   if (property == null) {
     this.setNotified(true);
     return;
   }
   this.m_target.addProperty(property);
 }