Esempio n. 1
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;
     }
     this.m_BattleComponent.ApplyDamage(1, CEnum.EElementType.Pure);
     this.SetOwner(attacker.GetController() as CObjectController);
 }
 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);
         }
     }
 }