Exemple #1
0
        public virtual void LinkToCaptureBuff(NewBuff b)
        {
            if (b != null)
            {
                InteractionBuff captureBuff = (InteractionBuff)b;
                captureBuff.SetObject(this);
            }

            else
            {
                CapturingPlayer = null;
            }
        }
Exemple #2
0
        public override void LinkToCaptureBuff(NewBuff b)
        {
            if (b != null)
            {
                if (!_interactors.Contains((Player)b.Caster))
                {
                    InteractionBuff captureBuff = (InteractionBuff)b;
                    captureBuff.SetObject(this);
                    _interactors.Add((Player)b.Caster);
                    _interactionBuffs.Add(captureBuff);
                }

                else
                {
                    b.BuffHasExpired = true;
                }
            }
        }