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

Target() public method

public Target ( Card otherCard, bool isScriptChange ) : void
otherCard Card
isScriptChange bool
return void
        public void Target(Card otherCard, bool isScriptChange)
        {
            if (otherCard == null)
            {
                Target(isScriptChange);
                return;
            }
            Program.Client.Rpc.TargetArrowReq(this, otherCard, isScriptChange);
            new Target(Player.LocalPlayer, this, otherCard, true, isScriptChange).Do();
        }

Same methods

Card::Target ( bool isScriptChange ) : void

Usage Example

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