public virtual void LinkToCaptureBuff(NewBuff b) { if (b != null) { InteractionBuff captureBuff = (InteractionBuff)b; captureBuff.SetObject(this); } else { CapturingPlayer = null; } }
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; } } }