public void Crash(Character character, int damage = 0) { PathFollower.Initiate(character, true); Task.Delay(3000).ContinueWith((t) => { if (!Active || StopController) { return; } if (damage > 0) { Damage.Area(damage, Damage.Types.KAMIKAZE, 500); } Destruction.Kill(); Exit(); OnPetDestruction(); }); }
public override void Effect() { Damage.Area(Spacemap, Position, 1000, 25, Damage.Types.MINE, DamageType.PERCENTAGE); Task.Delay(5000).ContinueWith(t => Respawn()); }
public override void Effect() { Damage.Area(Spacemap, Position, 1000, 20, Damage.Types.MINE, DamageType.PERCENTAGE); }