コード例 #1
0
 bool Condition(IDuel duel, Card card, BaseEffect e, Card targetCard)
 {
     if (duel.GetCurPhase() == ComVal.Phase_Battlephase)
     {
         if (duel.GetCurAttackEvent() != null && duel.GetCurAttackEvent().Attacker == card && duel.GetCurAttackEvent().Attacker != null)
         {
             return(true);
         }
     }
     return(false);
 }
コード例 #2
0
ファイル: C44178886.cs プロジェクト: a1069016595/CardGame
 public bool CheckLauch(IDuel duel, Card card, LauchEffect effect, Code code)
 {
     if (duel.GetCurPhase() == ComVal.Phase_Battlephase)
     {
         AttackEvent e = duel.GetCurAttackEvent();
         if (e != null && e.Attacker == card)
         {
             if (e.Attackeder != null && !e.Attackeder.IsAttack())
             {
                 return(true);
             }
         }
     }
     return(false);
 }
コード例 #3
0
ファイル: C37742478.cs プロジェクト: a1069016595/CardGame
 public bool CheckLauch(IDuel duel, Card card, LauchEffect effect, Code code)
 {
     if (duel.GetCurPhase() == ComVal.Phase_Battlephase)
     {
         AttackEvent e = duel.GetCurAttackEvent();
         if (e != null && !e.IsInvalid())
         {
             if (!e.IsDirectAttack())
             {
                 if (e.Attacker.controller == card.controller && e.Attacker.GetCurAttribute().IsBind(ComVal.CardAttr_Light))
                 {
                     return(true);
                 }
                 if (e.Attackeder.controller == card.controller && e.Attackeder.GetCurAttribute().IsBind(ComVal.CardAttr_Light))
                 {
                     return(true);
                 }
             }
         }
     }
     return(false);
 }