Octgn.Play.Card.Untarget C# (CSharp) Method

Untarget() public method

public Untarget ( bool isScriptChange ) : void
isScriptChange bool
return 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

Esempio n. 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;
            });
        }