public void DeactivateAllLinks() { SmiteBullet link = this; do { link.BeginDeactivating(); link = link.Previous; } while (link != null); }
public void InitFromPreviousLink(SmiteBullet existingLink) { Previous = existingLink; Head = existingLink.Head; DamageOnHitAny = existingLink.DamageOnHitAny; DamageOnHitTarget = existingLink.DamageOnHitTarget; TargetEnemy.CloneFrom(existingLink.TargetEnemy); TargetPosition = existingLink.TargetPosition; if (!TargetEnemy.IsActive) { TargetPosition = TargetPosition.WithY(SpaceUtil.WorldMap.Top.y); } }