Пример #1
0
 public void Block_WhenEffectOn(AEffect eff)
 {
     if (Catch_WhenEffectOn.Count > 0)
     {
         for (int i = 0; i < Catch_WhenEffectOn.Count; i++)
         {
             Catch_WhenEffectOn[i](eff);
         }
     }
 }
Пример #2
0
 public override bool Trigger_WhenEffectOn(AEffect eff)
 {
     Player.MainPlaceInfo.Block_WhenEffectOn(eff);
     if (eff.WhenEffectOn_BeBlocked)
     {
         return(true);
     }
     else
     {
         eff.effect();
         return(false);
     }
 }
Пример #3
0
 //-------------------------------------
 public override bool Trigger_WhenEffectBlocked(AEffect eff, ICatcher_WhenEffectOn catcher)
 {
     Player.MainPlaceInfo.Block_WhenEffectBlocked(this);
     if (eff.WhenEffectBlocked_BeBlocked)
     {
         eff.WhenEffectBlocked_BeBlocked = false;
         return(true);
     }
     else
     {
         eff.Catcher_WhenEffectOn   = catcher;
         eff.WhenEffectOn_BeBlocked = true;
         EffectBlocked(eff);
         return(false);
     }
 }
        public Mon_jimolenghuakai()
        {
            PitGoToGrave     = new List <Card>(5);
            base.Name        = "寂寞冷花开【光】";
            base.Att         = base.Att_Set = 800;
            base.Def         = base.Def_Set = 1200;
            base.Level       = base.Level_Set = 4;
            base.Description = "【魔法师族·效果】\r\n" +
                               "①:每回合的准备阶段,可以选择并查看对方魔法陷阱区域的1张里侧表示的卡," +
                               "选择的卡是陷阱卡的场合,那张卡被破坏。②:这张卡因为战斗被破坏时,选择1张因为效果" +
                               "①的效果被送入对手墓地中的陷阱卡加入自己的手卡。\r\n" +
                               "——“我看到你把它藏起来啦!”";
            base.FrontImage = Image.Load(".\\pic\\mon_jimolenghuakai.png");

            effect1               = new AEffect(this, "①:每回合的准备阶段,可以选择并查看对方魔法陷阱区域的1张里侧表示的卡,选择的卡是陷阱卡的场合,那张卡被破坏。");
            effect1.effect        = Effect1;
            effect1.effectBlocked = base.EffectBlocked;
            effect2               = new AEffect(this, "②:这张卡因为战斗被破坏时,选择1张因为效果" +
                                                "①的效果被送入对手墓地中的陷阱卡加入自己的手卡。");
            effect2.effect        = Effect2;
            effect2.effectBlocked = base.EffectBlocked;
            EffectListToShow.Add(effect1);
        }
Пример #5
0
 protected virtual void EffectBlocked(AEffect eff)
 {
 }
Пример #6
0
 /// <summary>
 /// 效果被抹除打断时
 /// </summary>
 public virtual bool Trigger_WhenEffectBlocked(AEffect eff, ICatcher_WhenEffectOn catcher)
 {
     return(false);
 }
Пример #7
0
 /// <summary>
 /// 发动效果时
 /// </summary>
 public virtual bool Trigger_WhenEffectOn(AEffect eff)
 {
     return(false);
 }
Пример #8
0
 protected override void EffectBlocked(AEffect eff)
 {
     //Player.MainPlaceInfo.MainFightPlace.textBox3.Text = "【" + eff.Card.Player.Name + "   " + eff.Card.Name + "】效果被【"
     //+ eff.Catcher_WhenEffectOn.Player.Name + "    " + eff.Catcher_WhenEffectOn.Name + "】无效化";
 }