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); }
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); }
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); }