private void TeleportAbility() { CancelShooting(); teleporting = true; abilityTwoCooldown = abilityTwoMaxCooldown; ChangeAnimation(ref currentAnimation, teleportInAnimation); ChangeAnimation(ref currentHandAnimation, handTeleportInAnimation); UpdateSpriteEffect(); teleportOutAnimation.XIndex = 0; teleportInAnimation.XIndex = 0; abilityTwoCooldown = 6; HoTEffect hoTEffect = new HoTEffect(iceBlockHealAmount, 4, this); Vector2 teleportVelocity; teleportVelocity.Y = (float)(Math.Sin(aimDirection) * speed); teleportVelocity.X = (float)(Math.Cos(aimDirection) * speed); newPosition = Position + (teleportVelocity * 100); Ability ability = new TeleportAbility(this, newPosition, speed, direction); abilityBuffer.Add(ability); }
public void ApplyHoTEffect(HoTEffect effect) { hotEffects.AddLast(effect); }