public override void ApplyBuff(IBattlable buffer, int buff, CEnum.EStatusType statusType)
 {
     if (this.GetOtherInteractive() == false)
     {
         return;
     }
     base.ApplyBuff(buffer, buff, statusType);
 }
 public override void ApplyDamage(IBattlable attacker, int damage, CEnum.EElementType damageType)
 {
     if (this.GetOtherInteractive() == false)
     {
         return;
     }
     m_BattleComponent.ApplyDamage(1, CEnum.EElementType.Pure);
 }
 public override void ApplyDamage(IBattlable attacker, int damage, CEnum.EElementType damageType)
 {
     if (this.GetOtherInteractive() == false)
     {
         return;
     }
     this.m_BattleComponent.ApplyDamage(1, CEnum.EElementType.Pure);
     this.SetOwner(attacker.GetController() as CObjectController);
 }
Example #4
0
 public virtual void ApplyDamage(IBattlable attacker, int damage, CEnum.EElementType damageType)
 {
     m_BattleComponent.ApplyDamage(damage, damageType);
     if (attacker != null && attacker.GetController() != null)
     {
         var objController = attacker.GetController() as CObjectController;
         if (this.GetTargetInteract() == null)
         {
             this.SetTargetInteract(objController);
         }
     }
 }
 public override void ApplyDamage(IBattlable attacker, int damage, CEnum.EElementType damageType)
 {
     if (this.GetOtherInteractive() == false)
     {
         return;
     }
     base.ApplyDamage(attacker, damage, damageType);
     if (attacker != null)
     {
         if (this.GetTargetInteract() == null || this.GetTargetInteract().GetActive() == false)
         {
             this.SetTargetInteract(attacker.GetController() as CObjectController);
         }
     }
 }
Example #6
0
 public virtual void ApplyBuff(IBattlable buffer, int buff, CEnum.EStatusType statusType)
 {
     m_BattleComponent.ApplyBuff(buff, statusType);
 }
 public virtual void ApplyDamage(IBattlable attacker, int damage, CEnum.EElementType damageType)
 {
     m_BattleComponent.ApplyDamage(damage, damageType);
 }
Example #8
0
 public void Attack(IBattlable target)
 {
     throw new Exception("please don't used this method.");
 }