Example #1
0
 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);
 }