Octgn.Play.Card.Untarget C# (CSharp) 메소드

Untarget() 공개 메소드

public Untarget ( bool isScriptChange ) : void
isScriptChange bool
리턴 void
        public void Untarget(bool isScriptChange)
        {
            if (TargetedBy == null && !TargetsOtherCards) return;
            Program.Client.Rpc.UntargetReq(this, isScriptChange);
            new Target(Player.LocalPlayer, this, null, false, isScriptChange).Do();
        }

Usage Example

예제 #1
0
        public void CardTarget(int id, bool active)
        {
            Card c = Card.Find(id);

            QueueAction(() =>
            {
                //Program.GameEngine.EventProxy.MuteEvents = true;
                if (active)
                {
                    c.Target(true);
                }
                else
                {
                    c.Untarget(true);
                }
                //Program.GameEngine.EventProxy.MuteEvents = false;
            });
        }